Permalink
Browse files

add setup ctags when init, produce systags ~/.vim/systags

  • Loading branch information...
1 parent eefb9ef commit fb26c09e040a6f0316cf496efb4f217ace903ece @soarpenguin committed Dec 7, 2013
Showing with 6 additions and 1 deletion.
  1. +2 −1 bashrc/_vimrc
  2. +4 −0 bashrc/setup.pl
View
@@ -8,7 +8,7 @@ set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936
"set fonts
"set guifont=Monospace\ 11
set guifont=Nimbus\ Mono\ L\ Regular\ Oblique\ 10
-colorscheme evening
+"colorscheme evening
let mapleader=","
let g:mapleader=","
@@ -195,6 +195,7 @@ let Tlist_File_Fold_Auto_Close = 0
" 不要显示折叠树
let Tlist_Enable_Fold_Column = 1
"set tags+=/usr/include/tags
+set tags+=~/.vim/systags
set tags+=./tags
"set line number
View
@@ -51,6 +51,10 @@
print color("reset");
}
+`mkdir -p ~/.vim`;
+`touch ~/.vim/systags`;
+`ctags -I __THROW --file-scope=yes --langmap=c:+.h --languages=c,c++ --links=yes --c-kinds=+p -R -f ~/.vim/systags /usr/include /usr/local/include/`;
+
if(-e "_vim") {
`cp -ur _vim/* ~/.vim/`;
if($? != 0) {

0 comments on commit fb26c09

Please sign in to comment.