vim - 如何避免在 vim 启动时出现 "Added cscope database"

标签 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() " 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/

相关文章:

bash - vim 如何插入文本、保存和退出 bash

regex - 如何使用 VIM 删除第一个字符串末尾之后的所有字符串?

vim - vim 可以用默认寄存器替换文本对象吗?

c# - WCF 服务基址与端点地址

android-studio - 使用 Gradle 配置 Android Studio

vim - unite.vim file_rec/async 命令不可执行

python-rope/ropevim 无法正常工作

python - 如何在 PyCharm 中选择 Python 版本?

php - 如何使用drupal作为后端但我自己的代码作为前端?

结合远程 Terracotta 配置的 Grails 本地 ehcache