touch ~/.vimrc
filetype plugin indent on
syntax on
set title
set tabstop=8
set softtabstop=8
set shiftwidth=8
set noexpandtab
将vim设置为默认编辑器,选择vim.basic:
sudo update-alternatives --config editor
对于设置的解释可以参考:
https://blog.easwy.com/archives/advanced-vim-skills-filetype-on/