ソースを参照

remove unnecessary autocmd

Gharbi Mohamed 5 年 前
コミット
4843a3bcd4
1 ファイル変更1 行追加3 行削除
  1. 1 3
      plug-config/vim-commentary.vim

+ 1 - 3
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()