diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-24 15:01:34 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-24 15:01:34 +1200 |
commit | 5525627dd9727f2ee713e3a06145a145410bcd7c (patch) | |
tree | a9d8df829874a503a6726ccf6fda3db8e00f9d28 /plugin/colon_operator.vim | |
download | vim-colon-operator-5525627dd9727f2ee713e3a06145a145410bcd7c.tar.gz vim-colon-operator-5525627dd9727f2ee713e3a06145a145410bcd7c.zip |
First releasev0.1.0
Diffstat (limited to 'plugin/colon_operator.vim')
-rw-r--r-- | plugin/colon_operator.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugin/colon_operator.vim b/plugin/colon_operator.vim new file mode 100644 index 0000000..ea0cc46 --- /dev/null +++ b/plugin/colon_operator.vim @@ -0,0 +1,19 @@ +" +" colon_operator.vim: Select ranges and run colon commands on them, rather +" like the ! operator but for colon commands like :sort. +" +" Author: Tom Ryder <tom@sanctum.geek.nz> +" License: Same as Vim itself +" +if exists('g:loaded_colon_operator') || &compatible + finish +endif +if v:version < 700 + finish +endif +let g:loaded_colon_operator = 1 + +" Set up mapping +nnoremap <expr> <silent> <unique> + \ <Plug>(ColonOperator) + \ colon_operator#Map() |