Insert a newline without entering in insert mode, vim

后端 未结 7 779
广开言路
广开言路 2021-01-31 13:24

I want insert newlines in normal mode in vim using Shift-Enter and Ctrl-Enter. I try some solutions and mixing solutions from Vim Wikia - Insert newline wi

相关标签:
7条回答
  • 2021-01-31 14:14

    My alternative is using oo (resp. OO) to insert a new line under (resp. over) the current through this mapping: nmap oo o<Esc>k (resp. nmap OO O<Esc>j)

    0 讨论(0)
提交回复
热议问题