Update vimrc - tag local variables

This commit is contained in:
Michael Campagnaro 2019-03-28 15:06:53 -04:00
parent 821e1b56d1
commit 35f9d18f1d

3
vimrc
View File

@ -340,7 +340,8 @@ augroup campoCmds
autocmd BufWritePost vimrc.symlink so $MYVIMRC autocmd BufWritePost vimrc.symlink so $MYVIMRC
" Generate ctags " Generate ctags
au BufWritePost *.py,*.c,*.cpp,*.h silent! !eval 'ctags -R -o newtags; mv newtags tags' & " Include local variables for c languages.
au BufWritePost *.py,*.c,*.cpp,*.h silent! !eval 'ctags --c-types=+l --c++-types=+l -R -o newtags; mv newtags tags' &
" Remove trailing whitespace on save all files. " Remove trailing whitespace on save all files.
function! <SID>StripTrailingWhitespaces() function! <SID>StripTrailingWhitespaces()