当我启动 vim
时,我会从当前目录自动加载 cscope.out,但每次我启动 vim
时,我都会得到一个烦人的打印,内容可能是:
$ vim
Added cscope database /workingpath/cscope.out
Press ENTER or type command to continue
如何避免这种情况以节省额外的 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
最佳答案
您可以将以下内容添加到您的 .vimrc 中:
set nocscopeverbose
仅供引用:http://vimdoc.sourceforge.net/htmldoc/options.html# 'cscopeverbose'
关于vim - 如何避免在 vim 启动时出现 "Added cscope database",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43643752/