-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
44 lines (37 loc) · 914 Bytes
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
set nocompatible
syntax enable
filetype plugin on
filetype indent on
set autoindent
"colorscheme darkblue
colorscheme desert
"set nu
set showcmd
set backspace=eol,start,indent
set magic
set showmatch
set nobackup
set nowb
set noswapfile
set ai
set si
set cindent
set wildmenu
set paste
set expandtab
set smarttab
set shiftwidth=4
set tabstop=4
set history=400
set encoding=utf8
set fileencodings=utf8,gb2312,gb18030,ucs-bom,latin1
if &term == "xterm"
set t_Co=8
set t_Sb=^[[4%dm
set t_Sf=^[[3%dm
endif
set laststatus=2
highlight StatusLine cterm=bold ctermfg=yellow ctermbg=blue
"set statusline=%F%m%r%h%w\[POS=%l,%v][%p%%]\[%{&fileformat}]\[%{&encoding}]\[%{strftime(\"%Y-%m-%d\ %H:%M:%S\")}]
"set statusline=\ %<%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&fileformat}\ %{&encoding}\ %c:%l/%L%)\
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif