简体   繁体   English

在 Linux 登录配置文件中设置 Vi 编辑器配置

[英]Setting Vi editor configurations in Linux login profile

I am using vi editor in Linux server.我在 Linux 服务器中使用 vi 编辑器。 I want to set certain configurations like set ai and set ts=4 in my login profile itself so that I don't have to set it each and every time I get into Vi editor.我想在我的登录配置文件中设置某些配置,例如set aiset ts=4 ,这样我就不必每次进入 Vi 编辑器时都进行设置。 Please assist.请协助。 Thanks.谢谢。

You can use a the .vimrc/.exrc file for in this case.在这种情况下,您可以使用 .vimrc/.exrc 文件。 vimrc sample vimrc 示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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