vim-按箭头键给出“after”
我的vim是7.0,我无法将其更新到7.3,我没有权限。
问题如何产生:
- 在 Vim 中,在任何模式下,如果我继续按任何箭头键(箭头键或 hjkl),它总是给出这个词“after”。例如:abcd efgh
给出 abcd efghafter
非常愚蠢。
我尝试在 vimrc 中添加 set no兼容
map ^[[A <up>
map ^[[B <down>
map ^[[C <right>
map ^[[D <left>`
,但不起作用...
您能帮忙吗?
编辑:
:map 给出了这个:
v <C-C> * :call RangeCommentLine()<CR>
no <C-C> * :call CommentLine()<CR>
n <CR> * :noh<CR><CR>
n <C-N> * :<C-U>YRReplace '1', 'p'<CR>
n <C-P> * :<C-U>YRReplace '-1', 'P'<CR>
v <C-X> * :call RangeUnCommentLine()<CR>
no <C-X> * :call UnCommentLine()<CR>
v # * :call VisualSearch('b')<CR>
v * * :call VisualSearch('f')<CR>
n . * :<C-U>YRYankCount '.'<CR>
n @ YRMapsExpression("<SNR>16_", "@", "1")
n D D<SNR>16_yrrecord
x P * :<C-U>YRPaste 'P', 'v'<CR>
n P * :<C-U>YRPaste 'P'<CR>
n Y Y<SNR>16_yrrecord
x d * :YRDeleteRange 'v'<CR>
n dgg dgg<SNR>16_yrrecord
n dG dG<SNR>16_yrrecord
n d$ d$<SNR>16_yrrecord
n daw daw<SNR>16_yrrecord
n diw diw<SNR>16_yrrecord
n dE dE<SNR>16_yrrecord
n de de<SNR>16_yrrecord
n dw dw<SNR>16_yrrecord
n dd dd<SNR>16_yrrecord
n gx <Plug>NetrwBrowseX
n gp * :<C-U>YRPaste 'gp'<CR>
n gP * :<C-U>YRPaste 'gP'<CR>
v jj <Esc><Space>
x p * :<C-U>YRPaste 'p', 'v'<CR>
n p * :<C-U>YRPaste 'p'<CR>
x x * :YRDeleteRange 'v'<CR>
n x x<SNR>16_yrrecord
x y * :YRYankRange 'v'<CR>
n ygg ygg<SNR>16_yrrecord
n yG yG<SNR>16_yrrecord
n y$ y$<SNR>16_yrrecord
n yaw yaw<SNR>16_yrrecord
n yiw yiw<SNR>16_yrrecord
n yE yE<SNR>16_yrrecord
n ye ye<SNR>16_yrrecord
n yw yw<SNR>16_yrrecord
n yy yy<SNR>16_yrrecord
n y * "+y<Space>
n <Plug>NetrwBrowseX * :call netrw#NetrwBrowseX(expand("<cWORD>"),0)<CR>
n <SNR>16_yrrecord * :call YRRecord3()<CR>
n <F11> * :YRShow<CR>
:imap 给出了
i <S-Tab> *@<C-R>=<SNR>13_SetVals()<CR><C-R>=<SNR>13_TabComplete('up')<CR><C-R>=<SNR>13_RestoreVals()<CR>
i <Tab> *@<C-R>=<SNR>13_SetVals()<CR><C-R>=<SNR>13_TabComplete('down')<CR><C-R>=<SNR>13_RestoreVals()<CR>
i <SNR>16_yrrecord * <C-R>=YRRecord3()<CR>
i <SNR>16_YRGetChar & <C-R>=YRGetChar()<CR>
i jj <Esc>
my vim is 7.0 and I can't update it to 7.3, i don't have the privilege.
How to produce the problem:
- in Vim, in any mode, if i keep pressing any arrow keys (either arrow keys or hjkl) it always gives this word "after". e.g:abcd efgh
gives abcd efghafter
very stupid.
I tried to put set nocompatible
and
map ^[[A <up>
map ^[[B <down>
map ^[[C <right>
map ^[[D <left>`
in vimrc, doesn't work...
Could you please help?
EDIT:
:map gives this:
v <C-C> * :call RangeCommentLine()<CR>
no <C-C> * :call CommentLine()<CR>
n <CR> * :noh<CR><CR>
n <C-N> * :<C-U>YRReplace '1', 'p'<CR>
n <C-P> * :<C-U>YRReplace '-1', 'P'<CR>
v <C-X> * :call RangeUnCommentLine()<CR>
no <C-X> * :call UnCommentLine()<CR>
v # * :call VisualSearch('b')<CR>
v * * :call VisualSearch('f')<CR>
n . * :<C-U>YRYankCount '.'<CR>
n @ YRMapsExpression("<SNR>16_", "@", "1")
n D D<SNR>16_yrrecord
x P * :<C-U>YRPaste 'P', 'v'<CR>
n P * :<C-U>YRPaste 'P'<CR>
n Y Y<SNR>16_yrrecord
x d * :YRDeleteRange 'v'<CR>
n dgg dgg<SNR>16_yrrecord
n dG dG<SNR>16_yrrecord
n d$ dlt;SNR>16_yrrecord
n daw daw<SNR>16_yrrecord
n diw diw<SNR>16_yrrecord
n dE dE<SNR>16_yrrecord
n de de<SNR>16_yrrecord
n dw dw<SNR>16_yrrecord
n dd dd<SNR>16_yrrecord
n gx <Plug>NetrwBrowseX
n gp * :<C-U>YRPaste 'gp'<CR>
n gP * :<C-U>YRPaste 'gP'<CR>
v jj <Esc><Space>
x p * :<C-U>YRPaste 'p', 'v'<CR>
n p * :<C-U>YRPaste 'p'<CR>
x x * :YRDeleteRange 'v'<CR>
n x x<SNR>16_yrrecord
x y * :YRYankRange 'v'<CR>
n ygg ygg<SNR>16_yrrecord
n yG yG<SNR>16_yrrecord
n y$ ylt;SNR>16_yrrecord
n yaw yaw<SNR>16_yrrecord
n yiw yiw<SNR>16_yrrecord
n yE yE<SNR>16_yrrecord
n ye ye<SNR>16_yrrecord
n yw yw<SNR>16_yrrecord
n yy yy<SNR>16_yrrecord
n y * "+y<Space>
n <Plug>NetrwBrowseX * :call netrw#NetrwBrowseX(expand("<cWORD>"),0)<CR>
n <SNR>16_yrrecord * :call YRRecord3()<CR>
n <F11> * :YRShow<CR>
:imap gives
i <S-Tab> *@<C-R>=<SNR>13_SetVals()<CR><C-R>=<SNR>13_TabComplete('up')<CR><C-R>=<SNR>13_RestoreVals()<CR>
i <Tab> *@<C-R>=<SNR>13_SetVals()<CR><C-R>=<SNR>13_TabComplete('down')<CR><C-R>=<SNR>13_RestoreVals()<CR>
i <SNR>16_yrrecord * <C-R>=YRRecord3()<CR>
i <SNR>16_YRGetChar & <C-R>=YRGetChar()<CR>
i jj <Esc>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
唯一的解决方案是更新到 vim 7.3
The only solution is to update to vim 7.3