我正在开始使用 vim 进行降价。
* Level 1 text
* On pressing enter it comes here
* On pressing tab it comes here
Run Code Online (Sandbox Code Playgroud)
我想要的是,我想使用按键修改(增加或减少)项目符号点的级别。(在其他文本编辑器中,增加或减少Tab
意图级别)Shift+Tab
* Level 1 bullet. On pressing Enter,
* It comes here. On pressing Enter and then Tab,
* I want it to come here. To go to the previous level, on pressing Enter and then Enter/Shift+Tab,
* I want it to come here.
Run Code Online (Sandbox Code Playgroud)
这是 VS Code 中的行为。
搜索后,我添加了set ai
和filetype indent on
到我的空.vimrc
(刚刚按照说明安装了 Vundle),但我没有成功。
我怎样才能完成这项工作?
可能的重复:如何在 gvim 中缩进多行并“向后”缩进?
Vim 有不同的哲学。
在正常模式下,按>
两次可添加缩进,按<
两次可删除。要对多行执行此操作,请使用 进入可视模式并v
选择行,然后按>
或<
两次。
在插入模式下,您可以按ctrl-d
删除缩进。
set ai
在这里不起作用,因为 vim 无法猜测与代码相比你在 markdown 中想要什么缩进。
归档时间: |
|
查看次数: |
7105 次 |
最近记录: |