当我启动时,我从当前目录自动加载cscope.out,vim
但每次启动时 vim
,我都会看到一个令人讨厌的打印内容:
$ vim
Added cscope database /workingpath/cscope.out
Press ENTER or type command to continue
Run Code Online (Sandbox Code Playgroud)
我怎样才能避免这种情况来节省额外的ENTER
击键?我.vimrc
看起来像:
" Pathogen
execute pathogen#infect()
call pathogen#helptags() " generate helptags for everything in 'runtimepath'
syntax on
filetype plugin indent on
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
nmap <F8> :TagbarToggle<CR>
if has('cscope')
set cscopetag cscopeverbose
if has('quickfix')
set cscopequickfix=s-,c-,d-,i-,t-,e-
endif
cnoreabbrev csa cs add
cnoreabbrev csf cs find
cnoreabbrev csk cs kill
cnoreabbrev csr cs reset
cnoreabbrev css cs show
cnoreabbrev csh cs help
command -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src
endif
" g:CCTreeCscopeDb = "./cscope.out"
set autochdir
Run Code Online (Sandbox Code Playgroud)
小智 5
您可以将以下内容添加到.vimrc:
set nocscopeverbose
Run Code Online (Sandbox Code Playgroud)
仅供参考:http://vimdoc.sourceforge.net/htmldoc/options.html#'cscopeverbose'
归档时间: |
|
查看次数: |
451 次 |
最近记录: |