mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
10 lines
240 B
VimL
10 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\ */}
|