【发布时间】:2011-07-02 09:34:34
【问题描述】:
我正在使用 Vim(Debian Squeeze 上的 7.2.445)和 vim-snipmate 插件(特别是它的这个分支 - https://github.com/garbas/vim-snipmate)
您应该能够执行的快捷方式之一是 Ctrl-R、Tab,在插入模式下,你列出了所有可用的 sn-ps。然而,虽然列表显示,第一项在我按下 Tab 的那一刻自动插入到文件中,不管我没有选择它,我也不能使用 J 或 K 或向上或向下滚动列表,或输入更多字符以缩小搜索范围。
这是我的.vimrc:
syntax on
set shiftwidth=4
set tabstop=4
set autoindent
set smartindent
set cursorline
set ruler
if version >= 703
set relativenumber
else
set number
endif
inoremap jj <ESC>
set hlsearch
noremap <Up> ""
noremap! <Up> <Esc>
noremap <Down> ""
noremap! <Down> <Esc>
noremap <Left> ""
noremap! <Left> <Esc>
noremap <Right> ""
noremap! <Right> <Esc>
inoremap <M-o> <Esc>o
inoremap <C-j> <Down>
let g:ragtag_global_maps = 1
filetype plugin on
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
【问题讨论】: