From 35f9d18f1d636d8f13e2427e0837f3cc77ad5e8a Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Thu, 28 Mar 2019 15:06:53 -0400 Subject: [PATCH] Update vimrc - tag local variables --- vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index cdafd83..97cc7a2 100644 --- a/vimrc +++ b/vimrc @@ -340,7 +340,8 @@ augroup campoCmds autocmd BufWritePost vimrc.symlink so $MYVIMRC " 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. function! StripTrailingWhitespaces()