VIM: disabling the cursor/arrow keys, but only for navigation

后端 未结 7 1936
自闭症患者
自闭症患者 2021-02-01 00:52
inoremap       
inoremap     
inoremap     
inoremap    
noremap             


        
7条回答
  •  后悔当初
    2021-02-01 01:16

    Use q: to open a split window of your command line. You can navigate within it normally, as it's a regular vim window using hjkl and the other usual vim motions, and hit enter to run the command under cursor.

    Don't use the arrow keys to navigate in the command line history.

    Incidentally, you can also access your search history using q/ or q?.

提交回复
热议问题