vim /etc/vim/vimrc 打开vimrc
结尾加上
set ts=4 ts = tabstop,缩进所使用的长度
set expandtab tab转换成空格
set autoindent 自动缩进
set number 显示行号
打开文件时跳到上一次退出的位置
找到Uncomment the following to have Vim jump to the last position when reopening a file取消注释掉下面的if...endif
结尾加上
set ts=4 ts = tabstop,缩进所使用的长度
set expandtab tab转换成空格
set autoindent 自动缩进
set number 显示行号
打开文件时跳到上一次退出的位置
找到Uncomment the following to have Vim jump to the last position when reopening a file取消注释掉下面的if...endif