Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在通过 SSH 将 VIM 运行到学校的虚拟盒子中,但我想在每次使用它时保存我的设置。
每次都输入这个并不太痛苦,但如果可能的话,我想自动化它/保存它:
:set number :set mouse=a :set cindent
谢谢
您可以编辑 vim 本地配置文件~/.vimrc以插入以下行:
~/.vimrc
set number set mouse=a set cindent