全部用户生效 /etc/vimrc

当前用户生效 ~/.vimr

1.设置语法高亮
syntax on # 2.显示行号 set nu # 3.设置换行自动缩进为4个空格 set shiftwidth=4 # 4.设置tab缩进为空格 set expandtab

# 5.设置自动缩进
set autoindent   
# 6.设置换行自动缩进为4个空格 set shiftwidth=4 # 7.设置tab键缩进为4个空格的距离,vim默认是8 set tabstop=4 # 8. 敲入tab键时,一个实际占有的列数 set softtabstop=4

# 9.更改注释颜色
hi Comment ctermfg =blue

 

相关文章:

  • 2021-09-13
  • 2022-12-23
  • 2021-11-14
  • 2021-12-17
  • 2021-12-31
  • 2021-08-15
  • 2022-12-23
  • 2021-05-29
猜你喜欢
  • 2022-12-23
  • 2021-06-24
  • 2021-09-17
  • 2021-12-13
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
相关资源
相似解决方案