LunarVim/plug-config/vim-commentary.vim

9 lines
172 B
VimL
Raw Normal View History

2020-07-15 03:59:35 +02:00
function! Comment()
if (mode() == "n" )
execute "Commentary"
else
execute "'<,'>Commentary"
endif
endfunction
2020-07-15 09:42:33 +02:00
vnoremap <silent> <space>/ :call Comment()