mapping enter key to newline and tab in vim

北战南征 提交于 2019-12-11 20:16:24

问题


Whenever I press the enter key, indicating an end of paragraph, vim should automatically insert another new line, and insert a tab space in the next line. All this is to denote that I am ready to type the next paragraph.


回答1:


I agree with the comments saying that this is not a good idea to do, but the following works for me:

inoremap <buffer> <cr> <cr><cr><tab>


来源:https://stackoverflow.com/questions/13834346/mapping-enter-key-to-newline-and-tab-in-vim

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!