我每次得到一個錯誤,我運行gVim的,上面寫着:E488:尾隨字符:標籤=標籤;在Windows 7上運行的gVim的
Error detected while processing C:\Workspaces\workspace1\_vimrc:
line 4:
E488: Trailing characters: tags = tags;
如果我招行tags = tags;
從我的本地_vimrc文件到全球_vimrc文件,我得到了同樣的錯誤。我也嘗試使用絕對路徑並得到相同的錯誤。我從C:\ Workspaces \ workspace1 \目錄中的命令行啓動gVim。我試圖禁用我的_vimrc中的所有插件併爲Vundle做一個PluginClean。
我_vimrc文件的內容:
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/vimfiles/bundle/Vundle.vim/
let path='~/vimfiles/bundle'
call vundle#begin(path)
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'kien/ctrlp.vim'
Plugin 'scrooloose/nerdtree'
"Plugin 'scrooloose/syntastic'
Plugin 'bling/vim-airline'
"Plugin 'altercation/vim-colors-solarized'
Plugin 'xolox/vim-misc'
Plugin 'xolox/vim-session'
Plugin 'jnurmine/Zenburn'
Plugin 'majutsushi/tagbar'
Plugin 'brookhong/cscope.vim'
call vundle#end() " required
filetype plugin indent on " required
"Set Color Scheme and Font Options
syntax enable
set background=dark
colorscheme zenburn
set guifont=Consolas:h10:cANSI
"set secure " disable unsafe commands in local .vimrc files
set exrc " enable per-directory .vimrc files
set clipboard=unnamed
"set line no, buffer, search, highlight, autoindent and more.
set nu
set hidden
set ignorecase
set incsearch
set smartcase
set showmatch
set autoindent
set ruler
set vb
set viminfo+=n$VIM/_viminfo
set noerrorbells
set showcmd
set mouse=a
set history=1000
set undolevels=1000
set nowrap
set backspace=start,eol,indent
set guioptions-=m
set guioptions-=T
set guioptions-=r
set listchars=tab:>.,trail:.
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
"Set working directory to the current file
"set autochdir
map <F2> :NERDTreeToggle<CR>
map <Leader>nt :NERDTree %:p:h<CR>
nnoremap <F8> :TagbarToggle<CR>
"Ctrl-P CONFIG
"set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_extensions = ['tag', 'line']
"Fuzzy searching for tags
nnoremap <leader>t :CtrlPTag<CR>
let g:session_autoload = 'yes'
let g:session_autosave = 'yes'
nnoremap <C-Right> :tabnext<CR>
nnoremap <C-Left> :tabprevious<CR>
nnoremap <C-Up> :tabnew<CR>
nnoremap <C-Down> :tabclose<CR>
" Vertical Split
nnoremap ,v <C-w>v
" Horizontal Split
nnoremap ,h <C-w>s
" Next window
nnoremap ,, <C-w>w
我有一種感覺,這是我的_vimrc文件過於散亂和我太粗心大意的複製粘貼的東西我不完全在那裏認識的問題,但我試圖通過手中的方式走出初級階段,試圖找到哪些插件適用於我。
有關可能導致此錯誤的任何信息,我們將不勝感激!另外,如果我的_vimrc文件中還有其他內容是一個壞主意,請告訴我!