[vim] Tags and associated

Add --c++-kinds=+p flags to ctags generation in kernelModel
This flag is used by echofunc plugin

Add a script to generation tag for system
This commit is contained in:
Mathieu Maret 2011-06-27 10:27:18 +02:00
parent b3319faefa
commit 77458559c0
2 changed files with 5 additions and 2 deletions

5
.vimrc
View File

@ -98,7 +98,7 @@ highlight SpaceError ctermfg=235 cterm=reverse
" use tabs at the start of a line, spaces elsewhere " use tabs at the start of a line, spaces elsewhere
" set smarttab " set smarttab
" set smartindent " set smartindent
" set autoindent set autoindent
" tab=4 " tab=4
set tabstop=4 set tabstop=4
set softtabstop=4 set softtabstop=4
@ -210,7 +210,7 @@ command! CtagsBuild
\ ctags --c-kinds=+px --c++-kinds=+px --fields=+iaS --extra=+q -aL- \ ctags --c-kinds=+px --c++-kinds=+px --fields=+iaS --extra=+q -aL-
command! CtagsKernelBuild command! CtagsKernelBuild
\ :!echo 'building ctags database in kernel mode...' ; \ :!echo 'building ctags database in kernel mode...' ;
\ ctags --fields=+iaS --extra=+q --totals -R \ ctags --fields=+iaS --extra=+q --totals -R --c++-kinds=+p
command! CscopeBuild command! CscopeBuild
\ :!echo 'building cscope database...' ; \ :!echo 'building cscope database...' ;
\ cscope -bR \ cscope -bR
@ -386,6 +386,7 @@ set tags=./tags " in file directory
set tags+=tags " in current directory set tags+=tags " in current directory
"for when programming in build dir "for when programming in build dir
set tags+=../tags set tags+=../tags
"set tags+=~/vim/tags/systags
"""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""
"Poser une marque visible avec F7 "Poser une marque visible avec F7

2
scripts/generate_systag.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
ctags -R -f ~/.vim/tags/systags /usr/include /usr/local/include