【发布时间】:2014-07-02 01:44:35
【问题描述】:
从今天早上开始,我正在寻找一个没有任何运气的解决方案。你能告诉我如何禁用当我按 TAB 时出现的这个东西吗?
这是我的 .vimrc 文件:
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" This is the Vundle package, which can be found on GitHub.
" For GitHub repos, you specify plugins using the
" 'user/repository' format
Plugin 'gmarik/vundle'
" We could also add repositories with a ".git" extension
Plugin 'scrooloose/nerdtree.git'
" To get plugins from Vim Scripts, you can reference the plugin
" by name as it appears on the site
Plugin 'Buffergator'
" Syntax hihgler
Plugin 'scrooloose/syntastic'
" Pluginper gli snippet
Plugin 'msanders/snipmate.vim'
" Plugin per la gestione delle parentesi, per maggiori informazioni: https://github.com/jiangmiao/auto-pairs
Plugin 'jiangmiao/auto-pairs'
" Now we can turn our filetype functionality back on
filetype plugin indent on
" Enable syntax high.
syntax on
" Set the default charset
set encoding=utf-8 nobomb
" Enable line number
set number
" Highligth cursor line
set cursorline
" Set tab as 2 white space
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
" Enable mouse in all mode
set mouse=a
" Show the cursor position
set ruler
" Show the filename inside the titlebar
set title
" Strip trailing whitespace (,ss)
function! StripWhitespace()
let save_cursor = getpos(".")
let old_query = getreg('/')
:%s/\s\+$//e
call setpos('.', save_cursor)
call setreg('/', old_query)
endfunction
" Map CTRL+n to toggle nerdtree
map <C-n> :NERDTreeToggle<CR>
" close vim if the only window left open is a NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
filetype plugin on
" More Common Settings.
set scrolloff=3
set autoindent
set showmode
set hidden
set visualbell
【问题讨论】:
-
由于这不是默认行为,应该有一些插件映射选项卡。要找出哪个插件
verbose imap <tab>或 (verbose imap <buffer> <tab>) 应该告诉你它最后设置的位置。然后禁用该插件。
标签: vim autocomplete tabs