LunarVim/plug-config/vim-commentary.vim
2020-07-15 02:59:35 +01:00

9 lines
240 B
VimL

function! Comment()
if (mode() == "n" )
execute "Commentary"
else
execute "'<,'>Commentary"
endif
endfunction
vnoremap <silent> <space>/ :call Comment()
autocmd filetype javascript.jsx setlocal commentstring={/*\ %s\ */}