diff options
-rw-r--r-- | plugin/move.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/move.vim b/plugin/move.vim new file mode 100644 index 0000000..0ed2e7f --- /dev/null +++ b/plugin/move.vim @@ -0,0 +1,5 @@ +onoremap <silent> a% V<cmd>call search('{') <bar> normal! %<cr> +onoremap <silent> i% <cmd>call search('{') <bar> normal! v%<bs>o<space><cr> + +vnoremap <silent> a% <esc>V/{<cr>% +vnoremap <silent> i% <esc>/{<cr>v%<bs>o<space>o |