vim tab键设置成四个

版权声明:属本人原创内容,转载需声明。 https://blog.csdn.net/JJandYY135/article/details/83064603
  1. 在终端输入cd 到家目录
  2. 输入sudo vim .vimrc 然后输入(全部输入):
  1 set autoindent  # 自动对齐
  2 set smartindent  # 智能对齐
  3 set tabstop=4  # tab键为4个空格
  4 set shiftwidth=4  # shift + >为4个空格

vim操作:

  • i 进入插入模式
  • 按Esc,然后输入 :x (保存退出)

猜你喜欢

转载自blog.csdn.net/JJandYY135/article/details/83064603