VIM 的一些技巧

vim配置文件 ~/.vimrc 如果没有自己创建一个即可

filetype plugin indent on    #打开插件
set number                            #显示行号
syntax on                               #语法高亮
set cindent                             #
set transparency=15            #透明度
set guioptions=aAce            #去掉toolbar
set shiftwidth=4                   #<>移动的时候退4格
set softtabstop=4                 #用退格键一次删4格
set tabstop=4                        #用tab键一次4格
set noexpandtab
set showmatch                      #括号对应
set incsearch                         #实时显示搜索结果
set encoding=utf-8              #设置编码
set fileencodings=ucs-bom,utf-8,utf-16,cp9936,gb18030,big5,euc-jp,euc-kr,latin1 #兼容编码
set autoindent
set smartindent
set showcmd
colorscheme torte                #设置颜色搭配
原文地址:https://www.cnblogs.com/iosdev/p/3345280.html