This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { |