gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 13:24:59 26 4
gpt4 key购买 nike

当我启动 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com