summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2016-11-27 14:30:33 +0100
committeryushyin <yushyin@saga>2016-11-27 14:30:33 +0100
commit1e934844e94acfcba419f2f02d3b75ed50f763c3 (patch)
tree115571cb969c8282ea27a910d86e4bea6e38fb61
parent00b9334e50db865c4e9151870201554c55c71a69 (diff)
downloaddotfiles-master.tar.gz
dotfiles-master.tar.xz
Vim: Add vim-operator-surround pluginHEADmaster
-rw-r--r--vim/neobundle.toml10
-rw-r--r--vim/vimrc6
2 files changed, 16 insertions, 0 deletions
diff --git a/vim/neobundle.toml b/vim/neobundle.toml
index 68f7c87..c7aea3a 100644
--- a/vim/neobundle.toml
+++ b/vim/neobundle.toml
@@ -118,3 +118,13 @@ repository = 'junegunn/vim-easy-align'
lazy = 1
on_cmd = ['EasyAlign', 'LiveEasyAlign']
on_map = '<Plug>(EasyAlign)'
+
+[[plugins]]
+repository = 'kana/vim-operator-user'
+lazy = 1
+on_source = 'vim-operator-surround'
+
+[[plugins]]
+repository = 'rhysd/vim-operator-surround'
+lazy = 1
+on_map = ['n', '<Plug>']
diff --git a/vim/vimrc b/vim/vimrc
index 824498c..8c12bd5 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -82,6 +82,12 @@ if neobundle#tap('vim-easy-align')
nmap ga <Plug>(EasyAlign)
call neobundle#untap()
endif
+if neobundle#tap('vim-operator-surround')
+ nmap <silent>sa <Plug>(operator-surround-append)
+ nmap <silent>sd <Plug>(operator-surround-delete)
+ nmap <silent>sr <Plug>(operator-surround-replace)
+ call neobundle#untap()
+endif
if neobundle#tap('vim-addon-local-vimrc')
let g:local_vimrc = {'names':['.lvimrc'],'hash_fun':'LVRHashOfFile'}
call neobundle#untap()