创建配置文件
vim的配置文件在 /root/.vimrc, 默认是没有这个文件的,使用touch命令进行创建
cd ~
touch .vimrc
vim .vimrc
基础配置
set nocompatible
set number
set guioptions-=r
set guioptions-=L
set guioptions-=b
set showtabline=0
set guifont=Monaco:h13
syntax on
let g:solarized_termcolors=256
set background=dark
set nowrap
set fileformat=unix
set cindent
set tabstop=4
set shiftwidth=4
set showmatch
set scrolloff=5
set laststatus=2
set fenc=utf-8
set backspace=2
set mouse=a
set selection=exclusive
set selectmode=mouse,key
set matchtime=5
set ignorecase
set incsearch
set hlsearch
set noexpandtab
set whichwrap+=<,>,h,l
set autoread
set cursorline
set cursorcolumn
python tab自动补全
使用pydiction
参见
https://www.cnblogs.com/biangdang/p/7754527.html
网友评论