我使用了set autoindent
我到达一行后,按下A和<CR>
,然后跳转到下一行并插入一个缩进。但是如果我按Esc键,光标会跳到该行的开头,并且缩进会消失。
我必须再次按Tab键才能回到正确的位置。
我知道帮助文档上说:
If you do not type anything on the new line except <BS> or CTRL-D and then type
<Esc>, CTRL-O or <CR>, the indent is deleted again.
有没有办法禁用这个功能,或者至少有一个解决方法?
autoindent
。 - jdhao