diff options
Diffstat (limited to 'plug-config/vim-commentary.vim')
-rw-r--r-- | plug-config/vim-commentary.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plug-config/vim-commentary.vim b/plug-config/vim-commentary.vim new file mode 100644 index 00000000..b6758b38 --- /dev/null +++ b/plug-config/vim-commentary.vim @@ -0,0 +1,8 @@ +function! Comment() + if (mode() == "n" ) + execute "Commentary" + else + execute "'<,'>Commentary" + endif + endfunction +vnoremap <silent> <space>/ :call Comment() |