53 lines
681 B
VimL
53 lines
681 B
VimL
|
" show line number
|
||
|
set nu
|
||
|
|
||
|
|
||
|
" highlight code
|
||
|
syntax enable
|
||
|
syntax on
|
||
|
set t_Co=256
|
||
|
|
||
|
set showcmd
|
||
|
set foldenable
|
||
|
set laststatus=2
|
||
|
|
||
|
"auto indent
|
||
|
set autoindent
|
||
|
" c-like indent
|
||
|
set cindent
|
||
|
set ts=2
|
||
|
set sw=2
|
||
|
set expandtab
|
||
|
set smarttab
|
||
|
set backspace=2
|
||
|
|
||
|
set pastetoggle=<F2>
|
||
|
|
||
|
" default charset
|
||
|
set encoding=utf-8
|
||
|
set fencs=utf-8,gb18030,gbk,gb2312
|
||
|
set fileencodings=utf-8,ucs-bom,chinese
|
||
|
|
||
|
|
||
|
" no backup file & cache
|
||
|
set nobackup
|
||
|
set noswapfile
|
||
|
|
||
|
" diabled visual cpopy
|
||
|
xnoremap p "_dp
|
||
|
|
||
|
" can use mouse anywhere
|
||
|
set mouse=a
|
||
|
"set selection=exclusive
|
||
|
"set selectmode=mouse,key
|
||
|
|
||
|
set clipboard=unnamedplus
|
||
|
|
||
|
" reload file if it changed outside
|
||
|
set autoread
|
||
|
|
||
|
|
||
|
" remmeber histories
|
||
|
set history=100
|
||
|
|