LunarVim/plug-config/vim-commentary.vim
2020-07-15 08:46:28 +01:00

8 lines
172 B
VimL

function! Comment()
if (mode() == "n" )
execute "Commentary"
else
execute "'<,'>Commentary"
endif
endfunction
vnoremap <silent> <space>/ :call Comment()