Skip to content

Instantly share code, notes, and snippets.

View shapeoflambda's full-sized avatar

Harish shapeoflambda

  • Chennai, India
View GitHub Profile
function! GrepOperator(type, ...)
" We will select and yank to perform the operation.
" So, saving the previous selection and default register
" content, so that we can reset it after the operation is complete.
let sel_save = &selection
let &selection = "inclusive"
let reg_save = @@
if a:0 " Invoked from Visual mode, use gv command.
silent exe "normal! gvy"
@shapeoflambda
shapeoflambda / build.gradle
Last active March 24, 2019 17:51
Gradle plugin that takes argument
class GreetingPluginExtension {
String message
String greeter
}
class GreetingPlugin implements Plugin<Project> {
void apply(Project project) {
def extension = project.extensions.create('greeting', GreetingPluginExtension)
project.task('hello') {
doLast {