0

我将 Vim 与 cscope、ctags 和 TagList 一起使用。当我只使用 vim 打开文件时。我可以使用 TagList,但是当我使用 cscope 打开文件时,会出现以下错误:

Error detected while processing /gauravg/.vimrc:
line    9:
E492: Not an editor command: Bundle 'VundleVim/Vundle.vim'
line   13:
E492: Not an editor command: Plugin 'plugin/taglist.vim'
Press ENTER or type command to continue

下面是我的 .vimrc 文件:

set nocompatible
filetype off

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
" required!
Bundle 'VundleVim/Vundle.vim'
call vundle#end()
"Plugin 'tpope/vim-fugitive'
"Plugin 'steffanc/cscopemaps.vim'
Plugin 'plugin/taglist.vim'

请帮我解决这个问题。

4

1 回答 1

0

你应该使用Plugin而不是Bundle

Bundle 'VundleVim/Vundle.vim'

此外,您的所有插件必须在之前添加:

call vundle#end()

有关详细信息,请参阅Vundle快速入门

.vimrc应该有效:

set nocompatible
filetype off

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
" required!
Plugin 'VundleVim/Vundle.vim'
"Plugin 'tpope/vim-fugitive'
"Plugin 'steffanc/cscopemaps.vim'
Plugin 'plugin/taglist.vim'
" All of your Plugins must be added before the following line
call vundle#end()
filetype plugin indent on
于 2016-02-03T11:09:42.613 回答