1

最近对使用 Vim 变得“认真”(-ish),我真的很高兴遇到“VimRooom”脚本。

问题

问题是我还刚刚发现了用于重新配置 hjkl 键的 langmap 选项,并且似乎存在某种冲突,这会阻止移动键的新配置与打开的 Vimroom 一起工作。

问题

恐怕我对 langmap 命令的了解不够,无法知道为什么会发生这种冲突,我希望有人可以解释问题/建议修复?

我当前的.vimrc:

set nocompatible               " be iMproved

filetype off                   " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

" let Vundle manage Vundle
Bundle 'gmarik/vundle'

" My Bundles here:
"Bundle 'flazz/vim-colorschemes'
"Bundle 'vim-scripts/CSApprox'
Bundle 'altercation/vim-colors-solarized'
Bundle 'dnebauer/AutomaticLaTeXPlugin'
Bundle 'mikewest/vimroom'

" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'


" Colour scheme options
syntax on
set background=dark
set t_Co=16
let g:solarized_termcolors=16
colorscheme solarized

"Line formatting options
set linebreak
set tw=100
set fo+=t
"set foldcolumn=12
set tabstop=4

"Basic Keybindings
"Movement
set langmap=hk,mj,th,nl,kt,jm,ln

"Display options
set scrolloff=999

"Settings for Automatic LaTeX
filetype plugin on
filetype indent on
filetype on

"Search Settings
set smartcase

"Vimroom Settings
let g:vimroom_sidebar_height=0

NB 所需的 hjkl 重新映射(因为缺少更好的短语)仅在使用 Dvorak 布局时才有意义。

4

0 回答 0