简体   繁体   中英

mapping enter key to newline and tab in vim

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.

我同意以下意见:这不是一个好主意,但以下对我有用:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM