记录一个vim配置
set encoding=utf-8 set fileencodings=utf-8 set termencoding=utf-8 let mapleader=',' let g:solarized_termcolors=256 syntax on set background=dark set cursorline set history=10000 set nofoldenable set fdm=indent set display=lastline set scrolloff=5 set matchtime=2 set matchpairs+=<:> set number set showcmd set showmatch set nobackup set noundofile set noswapfile set syntax=on set noeb set confirm set autoindent set cindent set tabstop=4 " tabstop 表示一个 tab 显示出来是多少个空格的长度,默认8 set softtabstop=4 " softtabstop 表示在编辑模式的时候按退格键的时候退回缩进的长度,当使用 expandtab 时特别有用 set expandtab " 当设置成 expandtab 时,缩进用空格来表示,noexpandtab 则是用制表符表示一个缩进 set autoindent " 自动缩进 set cindent " 自动缩进补充 set shiftwidth=4 " 自动缩进空白字符个数 highlight WhitespaceEOL ctermbg=red guibg=red match WhitespaceEOL /\s\+$/ set ignorecase set incsearch set autoread set autowrite set mouse=a let &t_SI.="\e[6 q" "SI = INSERT mode let &t_EI.="\e[1 q" "EI = NORMAL mode (ELSE) highlight Cursor guifg=white guibg=white highlight iCursor guifg=white guibg=white set guicursor=n-v-c:block-Cursor set guicursor+=i:ver100-iCursor set guicursor+=n-v-c:blinkon0 set guicursor+=i:blinkwait10 hi VertSplit guibg=#31312D guifg=#526A83 ctermfg=White ctermbg=Black term=none cterm=none gui=none
转载请注明出处