vim标记条插件
我确实将vim与标记栏和NERD树插件一起使用。我还希望启用autochdir。但有时,当我使用NERD tree插件在文件之间切换时,Tagbar不会刷新其内容,我会使用上一个文件中的标签。如果我再次执行“TagbarToggle”,第二个Tagbar窗口将显示当前文件标记。如果我禁用autochdir-它似乎工作正常。我如何解决这个问题?当前。vimrc已连接。谢谢vim标记条插件,vim,vim-plugin,Vim,Vim Plugin,我确实将vim与标记栏和NERD树插件一起使用。我还希望启用autochdir。但有时,当我使用NERD tree插件在文件之间切换时,Tagbar不会刷新其内容,我会使用上一个文件中的标签。如果我再次执行“TagbarToggle”,第二个Tagbar窗口将显示当前文件标记。如果我禁用autochdir-它似乎工作正常。我如何解决这个问题?当前。vimrc已连接。谢谢 syntax on " syntax hl by default set background=dark
syntax on " syntax hl by default
set background=dark " dark background
set shortmess+=I " no startup uganda msg
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set incsearch " Incremental search
set autowrite " Automatically save before commands like :next and :make
set hidden " Hide buffers when they are abandoned
set mouse=a " Enable mouse usage (all modes)
set number " line numbers
set guioptions-=T " no toolbar
set vb t_vb= " no beeps
set ruler " status bar and ruller for each windows
set showmatch " show matching brace
set autoindent " the current line's indent level to set the indent level of new lines)
set smartindent " attempt to intelligently guess the indent level
set smartcase " Do smart case matching
set ignorecase " Do case insensitive matching
set virtualedit=all " This setting allows the cursor to freely roam anywhere it likes in command mode.
"set autochdir " Automaticly changes dir to active
"set autowriteall " Autosave files
"-color scheme-------------------------------------------
"colorscheme ir_black
"-tabs configs-------------------------------------------
set expandtab
set tabstop=4
set showtabline=4
set shiftwidth=4
"-ctags configs------------------------------------------
"search for tag files until root
set tags=tags;/
"-autosave configs---------------------------------------
set autowrite
"-search configs-----------------------------------------
set hlsearch
" seek for selected test
nnoremap * *N
"turn off higliting
nnoremap 8 :nohlsearch<CR>
"nnoremap <S-F8> :nohlsearch<CR>
" search in selected text
vnoremap * y :execute ":let @/=@\""<CR> :execute "set hlsearch"<CR>
"-spellcheck configs-------------------------------------
set spelllang=en_us
nn <F7> :setlocal spell!<CR>
let g:spellfile_URL = 'http://ftp.vim.org/vim/runtime/spell'
"setlocal spell spelllang=en_us
"nn <F7> :setlocal spell! spelllang=en_us<CR>
"imap <F7> <C-o>:setlocal spell! spelllang=en_us<CR>
"it should get the dictionary files
"-move between windows-----------------------------------
nmap <silent> <C-k> :wincmd k<CR>
nmap <silent> <C-j> :wincmd j<CR>
nmap <silent> <C-h> :wincmd h<CR>
nmap <silent> <C-l> :wincmd l<CR>
"move between windows
nnoremap <Tab> <C-W>w
"move between windows backwards
nnoremap <S-Tab> <C-W>W
"-encoding-----------------------------------------------
"set encoding=utf-8
"-show invisible chars-----------------------------------
set listchars=tab:>-,eol:$
nnoremap <F8> :set list!<CR>
":highlight NonText ctermfg=red
"set listchars=tab:▸\ ,eol:¬
"set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<
"-Tag bar config-----------------------------------------
nnoremap <F4> :TagbarToggle<CR>
"-buffers------------------------------------------------
"nnoremap <F7> :TMiniBufExplorer<CR>
nnoremap <F5> :ls<CR>
nnoremap <C-n> :bnext<CR>
nnoremap <C-b> :bprev<CR>
nnoremap <C-c> :enew<CR>
nnoremap <C-x> :bp<bar>sp<bar>bn<bar>bd<CR>
"-grep---------------------------------------------------
nnoremap <silent> <F9> :Grep<CR>
"-nerd tree----------------------------------------------
nnoremap <F3> :NERDTreeToggle<CR>
"-clipboard----------------------------------------------
set clipboard=unnamedplus
"-easymotion---------------------------------------------
map <F6> <Leader><Leader>W
"-cscope---------------------------------------------
"-VIM plugins--------------------------------------------
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
filetype plugin indent on
" L9 - vim programming library
Bundle 'L9'
Bundle 'The-NERD-tree'
Bundle 'EasyMotion'
Bundle 'grep.vim'
Bundle 'Tagbar'
Bundle 'chazy/cscope_maps'
"Bundle 'buftabs'
"Bundle 'autoload_cscope.vim'
"Bundle 'chazy/cscope_maps'
"Bundle 'FuzzyFinder'
"Bundle 'tpope/vim-fugitive'
默认情况下,“语法”上的语法
设置背景=暗“暗背景
设置shortmess+=I“无启动消息”
在状态行中设置showcmd“Show(partial)”命令。
设置showmatch“显示匹配的括号。
设置incsearch“增量搜索”
设置autowrite“在执行以下命令之前自动保存:next和:make
设置“隐藏”在放弃缓冲区时隐藏缓冲区
设置鼠标=a“启用鼠标使用(所有模式)
“设置编号”行号
设置GUI选项-=T“无工具栏
设置vb t_vb=“无蜂鸣音
为每个窗口设置“标尺”状态栏和标尺
设置showmatch“显示匹配大括号
设置自动缩进”当前行的缩进级别以设置新行的缩进级别)
设置“智能缩进”尝试智能猜测缩进级别
设置smartcase“进行智能案例匹配
设置ignorecase“不区分大小写匹配
set virtualedit=all“此设置允许光标在命令模式下自由漫游任意位置。
“设置自动HDIR”自动将dir更改为活动
“设置自动写入”自动保存文件
“-配色方案-------------------------------------------
“黑色配色方案”
“-选项卡配置-------------------------------------------
设置扩展选项卡
设置tabstop=4
设置可显示线=4
设置shiftwidth=4
“-ctags配置------------------------------------------
“搜索标记文件,直到找到根目录
设置标记=标记;/
“-自动保存配置---------------------------------------
设置自动写入
“-搜索配置-----------------------------------------
设置hlsearch
“寻找选定的测试
nnoremap**N
“关掉higliting
nnoremap 8:nohlsearch
“nnoremap:nohlsearch
“在选定文本中搜索
vnoremap*y:execute“:let@/=@\”:execute“set hlsearch”
“-拼写检查配置-------------------------------------
设置拼写lang=en_us
设置本地咒语!
让g:spellfile\u URL='0http://ftp.vim.org/vim/runtime/spell'
“setlocal拼写spelllang=en_us
“nn:设置本地咒语!斯佩尔朗=恩尤斯
“imap:setlocal-spell!spelllang=en_-us
“它应该得到字典文件
“-在窗口之间移动-----------------------------------
nmap:winck
nmap:wincmd j
nmap:winch
nmap:wincmd l
“在窗口之间移动
nnoremap w
“在窗口之间向后移动
nnoremap W
“-编码-----------------------------------------------
“设置编码=utf-8
“-显示不可见字符-----------------------------------
设置listchars=tab:>-,下线:$
nnoremap:设置列表!
“:高亮显示非文本字符MFG=红色
“设置listchars=选项卡:▸\ ,eol:
“set listchars=eol:$,tab:>-,trail:~,extends:>,位于:<
“-标记栏配置-----------------------------------------
nnoremap:TagbarToggle
“-缓冲区------------------------------------------------
nnoremap:TMiniBufExplorer
nnoremap:ls
nnoremap:bnext
nnoremap:bprev
nnoremap:enew
nnoremap:bpspbnbd
“-格雷普---------------------------------------------------
nnoremap:Grep
“-书呆子树----------------------------------------------
nnoremap:nerdtreethoggle
“-剪贴板----------------------------------------------
设置剪贴板=未命名加号
“-易动---------------------------------------------
地图W
“-cscope---------------------------------------------
“-VIM插件--------------------------------------------
文件类型关闭
设置rtp+=~/.vim/bundle/vundle/
调用vundle#rc()
文件类型插件缩进
“L9-vim编程库
捆绑“L9”
捆绑“书呆子树”
捆绑“易动”
捆绑“grep.vim”
捆绑“标记栏”
捆绑“chazy/cscope\u地图”
“Bundle‘buftabs’
“Bundle‘autoload_cscope.vim’
“捆绑'chazy/cscope\u地图'
“Bundle‘FuzzyFinder’
“捆绑‘TPOP/vim逃犯’
尝试更新到Vim 7.4。我也有同样的问题