[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:
parent
b3319faefa
commit
77458559c0
5
.vimrc
5
.vimrc
@ -98,7 +98,7 @@ highlight SpaceError ctermfg=235 cterm=reverse
|
||||
" use tabs at the start of a line, spaces elsewhere
|
||||
" set smarttab
|
||||
" set smartindent
|
||||
" set autoindent
|
||||
set autoindent
|
||||
" tab=4
|
||||
set tabstop=4
|
||||
set softtabstop=4
|
||||
@ -210,7 +210,7 @@ command! CtagsBuild
|
||||
\ ctags --c-kinds=+px --c++-kinds=+px --fields=+iaS --extra=+q -aL-
|
||||
command! CtagsKernelBuild
|
||||
\ :!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
|
||||
\ :!echo 'building cscope database...' ;
|
||||
\ cscope -bR
|
||||
@ -386,6 +386,7 @@ set tags=./tags " in file directory
|
||||
set tags+=tags " in current directory
|
||||
"for when programming in build dir
|
||||
set tags+=../tags
|
||||
"set tags+=~/vim/tags/systags
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
"Poser une marque visible avec F7
|
||||
|
2
scripts/generate_systag.sh
Executable file
2
scripts/generate_systag.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
ctags -R -f ~/.vim/tags/systags /usr/include /usr/local/include
|
Loading…
Reference in New Issue
Block a user