aboutsummaryrefslogtreecommitdiff
path: root/plugin/colon_operator.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/colon_operator.vim')
-rw-r--r--plugin/colon_operator.vim19
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()