如何避免;添加了“cscope数据库”;关于vim发射

如何避免;添加了“cscope数据库”;关于vim发射,vim,configuration,Vim,Configuration,当我启动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(

当我启动
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
病原体 执行病原体#感染() 调用helptags()“为“runtimepath”中的所有内容生成helptags” 语法高亮 文件类型插件缩进 文件类型插件缩进 设置tabstop=4 设置shiftwidth=4 设置扩展选项卡 自动缩进 nmap:TagbarToggle 如果有('cscope') 设置cscopetag cscoperbose 如果有('quickfix') 设置cscopequickfix=s-、c-、d-、i-、t-、e- 恩迪夫 cnoreabbrev csa cs添加 cnoreabbrev csf csf发现 cnoreabbrev csk cs压井 cnoreabbrev csr cs重置 cnoreabbrev css cs展会 cnoreabbrev csh cs帮助 命令-nargs=0 Cscope cs add$VIMSRC/src/Cscope.out$VIMSRC/src 恩迪夫 “g:CCTreeCscopeDb=“./cscope.out” 设置自动硬盘驱动器
您可以将以下内容添加到.vimrc中:

set nocscopeverbose

仅供参考:“cscopeverbose”

我可能遗漏了一些东西,因为我看不到您实际在做什么,
cscope add
cscope
,但是…
:help:silent
应该可以帮助您。@Amadan这行不是:
命令-nargs=0 cscope cs add$VIMSRC/src/cscope.out$VIMSRC/src
?这行定义了命令和
Cscope
;我看不到在哪里调用它。