aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-01-04 14:55:19 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-01-04 14:55:19 +1300
commit6ed48b12e451a0770d5a3f236e66e0e7e9a39c8d (patch)
treef63a011a642d8bdaa75aee6d87c17306784244bc /vim/plugin
parentMerge branch 'hotfix/v4.6.1' into develop (diff)
downloaddotfiles-6ed48b12e451a0770d5a3f236e66e0e7e9a39c8d.tar.gz
dotfiles-6ed48b12e451a0770d5a3f236e66e0e7e9a39c8d.zip
Add experimental delimit_operator.vim plugin
This is an attempt at a small subset of surround.vim's behaviour, hopefully drastically simplified. I'm not actually sure how useful or practical this is going to be yet.
Diffstat (limited to 'vim/plugin')
-rw-r--r--vim/plugin/delimit_operator.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/vim/plugin/delimit_operator.vim b/vim/plugin/delimit_operator.vim
new file mode 100644
index 00000000..0a3e62fc
--- /dev/null
+++ b/vim/plugin/delimit_operator.vim
@@ -0,0 +1,12 @@
+if exists('g:loaded_delimit_operator') || &compatible
+ finish
+endif
+if v:version < 700
+ finish
+endif
+let g:loaded_delimit_operator = 1
+
+nnoremap <expr> <Plug>(DelimitOperator)
+ \ delimit_operator#Map()
+xnoremap <expr> <Plug>(DelimitOperator)
+ \ delimit_operator#Map()