This topic created in 4418 days ago, the information mentioned may be changed or developed.
map <C-H> <C-W>h
map <C-J> <C-W>j
map <C-K> <C-W>k
map <C-L> <C-W>l
vimrc中这四行是映射窗口跳转的,不知道为什么在就是不能用
手动输入命令可用,复制到vps上可用
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 10 2013 21:13:24)
Included patches: 1-113
Compiled by nerd@Ubuntu
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
+balloon_eval +float +mouse_urxvt -tag_any_white
+browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
+clientserver -hangul_input +netbeans_intg +title
+clipboard +iconv +path_extra +toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con_gui -lua +rightleft +windows
+diff +menu +ruby +writebackup
+digraphs +mksession +scrollbind +X11
+dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent +xim
+emacs_tags +mouseshape -sniff +xsmp_interact
+eval +mouse_dec +startuptime +xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop +xpm
10 replies • 1970-01-01 08:00:00 +08:00
 |
|
1
Pixeller Apr 3, 2014
看是不是有哪个插件或者终端的快捷键占用了, 简单的方法, 把.vim改名, 新开个.vimrc, 里面加上你那段, 如果还不能运行看是不是快捷键被占用.
|
 |
|
2
Goooogle Apr 3, 2014 via Android
@ Pixeller 试过 现有/无 .vim文件夹 现有/只有四个映射/无 .vimrc 共六种组合情况 只有现有.vim文件夹+现有.vimrc文件情况下无法映射,手动输入映射命令有效 其他所有情况即使手动输入都无法映射 好奇怪
|
 |
|
3
henices Apr 3, 2014
实在不行你就 ctrl-w ctrl-w 来回跳好了。
|
 |
|
4
darkbill Apr 3, 2014
@ Goooogle 那你看看,是不是现有的.vim/和.vimrc里面,有对这几个按键进行过映射定义。 二分法查看吧。如果有需要。
|
 |
|
5
kran Apr 3, 2014
:verbose map <c-h>
|
 |
|
10
Goooogle Apr 3, 2014
原来imap jj <ESC>也可以的 现在只会输入<ESC>了
|