Arrow keys type capital letters instead of moving the cursor

后端 未结 13 1658
失恋的感觉
失恋的感觉 2021-02-01 03:49

I\'ve installed the latest vim using homebrew and also installed mac-vim from the google code homepage. in mac-vim everything works fine. but when I run vim in terminal.app in m

13条回答
  •  执笔经年
    2021-02-01 04:35

    I've had a similar problem with another plugin. I solved it by hardcoding these alternative mappings in the script itself, the first line of each pair was problematic, the second line is the fix:

    VIM::command "#{map}  :call #{prefix}KeyPressed(9)"
    VIM::command "#{map} ^[OC    :call #{prefix}KeyPressed(9)"
    
    VIM::command "#{map}   :call #{prefix}KeyPressed(23)"
    VIM::command "#{map} ^[OD    :call #{prefix}KeyPressed(23)"
    
    VIM::command "#{map}   :call #{prefix}KeyPressed(14)"
    VIM::command "#{map} ^[OB    :call #{prefix}KeyPressed(14)"
    
    VIM::command "#{map}     :call #{prefix}KeyPressed(16)"
    VIM::command "#{map} ^[OA    :call #{prefix}KeyPressed(16)"
    

    ^[ is obtained by hitting .

    Maybe you can try something like:

    map  ^[OC
    

提交回复
热议问题