diff options
| author | Christian Chiarulli <[email protected]> | 2020-07-16 00:09:03 -0400 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-16 00:09:03 -0400 | 
| commit | b900635a06de0c8cf051e6a980db0882f4296261 (patch) | |
| tree | 1f9ac7ca03d8f198899591c8319d77233eeafe9e /plug-config/vim-commentary.vim | |
| parent | 337e7b55c8807e505ee9273467092d38bbe75a51 (diff) | |
| parent | 4843a3bcd4d0851812923e3f85b0a1912211edf4 (diff) | |
Merge pull request #38 from ghmhd/@ghmhd/feature/add-jsx-comment-support
add jsx comment support
Diffstat (limited to 'plug-config/vim-commentary.vim')
| -rw-r--r-- | plug-config/vim-commentary.vim | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/plug-config/vim-commentary.vim b/plug-config/vim-commentary.vim index f672715d..b6758b38 100644 --- a/plug-config/vim-commentary.vim +++ b/plug-config/vim-commentary.vim @@ -1,4 +1,3 @@ -" this function check whether vim is in normal mode or not and comment appropriately  function! Comment()    if (mode() == "n" )      execute "Commentary" @@ -6,5 +5,4 @@ function! Comment()      execute "'<,'>Commentary"    endif   endfunction -vnoremap <silent> <space>/ :call Comment()   -autocmd filetype javascript.jsx setlocal commentstring={/*\ %s\ */} +vnoremap <silent> <space>/ :call Comment() | 
