Alt key shortcuts not working on gnome terminal with Vim

前端 未结 6 2085
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 18:27

I\'m running Vim on a gnome terminal. But the alt key mappings are not working.
For example (this is just an example):

:imap  
         


        
6条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 19:01

    Try

    
    

    Or, if typing alti inserts a character (like in my case, it inserts a carret: ˆ) just map to that character:

    :inoremap ˆ 
    

    Be careful, because this one wouldn't work (at least in my system, MacOS 10.6). The caret waits for a letter, because it's not exactly a caret, it is a circumflex.

提交回复
热议问题