VIM - How to map Shift-Enter

后端 未结 5 1785
广开言路
广开言路 2020-11-27 16:30

I am trying to customize behaviour of Enter key in Normal mode in VIM. Here is my .vimrc:

nmap  o         


        
5条回答
  •  囚心锁ツ
    2020-11-27 17:03

    You can't map in CLI Vim, no matter how hard you try, because Vim can't distinguish from .

    You must find another mapping or stick with GVim/MacVim.

    edit

    Some terminal emulators, like iTerm.app or Terminal.app on Mac OS X, allow you to set up shortcuts to send specific characters sequences to the shell. If you have that possibility it may be worth a try but you'll quickly get used to a platform-specific gyzmo that can't be ported so, well… I don't really recommend it.

提交回复
热议问题