如何在插入模式下启动 vim? [英] How do I start vim in insert mode?
本文介绍了如何在插入模式下启动 vim?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每当我进入 vim 时,我有 99% 的机会进入插入模式并编辑文件.我可以让 vim 始终以插入模式启动吗?
Whenever I enter vim, there are 99% chance that I will go in insert mode and edit the file. Can I make vim always start in insert mode?
推荐答案
你可以这样启动 vim:
You can start vim like this:
vim -c 'startinsert' 文件名
如果需要,您可以编辑 .bashrc 文件(如果您使用的是 bash)并添加以下行:
If you want, you can edit the .bashrc file (if you are using bash) and add this line:
别名 vim="vim -c 'startinsert'"
这篇关于如何在插入模式下启动 vim?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文