E492:不是编辑器命令:TlistToggle

时间:2016-02-03 08:01:08

标签: vim vim-plugin cscope taglist

我正在使用带有cscope,ctags和TagList的Vim。 当我使用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'

请帮我解决此问题。

1 个答案:

答案 0 :(得分:0)

您应该使用Plugin代替Bundle

Bundle 'VundleVim/Vundle.vim'

此外,您的所有插件必须先添加

call vundle#end()

有关详细信息,请参阅Vundle的Quick Start

.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