From 4843a3bcd4d0851812923e3f85b0a1912211edf4 Mon Sep 17 00:00:00 2001 From: Gharbi Mohamed Date: Wed, 15 Jul 2020 08:42:33 +0100 Subject: remove unnecessary autocmd --- plug-config/vim-commentary.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plug-config/vim-commentary.vim') 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 / :call Comment() -autocmd filetype javascript.jsx setlocal commentstring={/*\ %s\ */} +vnoremap / :call Comment() -- cgit v1.2.3