-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
80 lines (62 loc) · 1.56 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
syntax enable
set fileformat=unix
" indent width while pressing '>>' and '<<'
set shiftwidth =2
set tabstop=2
set softtabstop=2
set expandtab
set linespace=6
set number
set showcmd
set cursorline
filetype indent on
set wildmenu
set lazyredraw
set showmatch
set incsearch
set hlsearch
set foldenable
set foldlevelstart=10
set foldnestmax=10
set foldmethod=indent
set list
set listchars=tab:T>
set nocompatible
set backspace=indent,eol,start
" reduce cursor blinking frequency
set guicursor+=a:blinkwait500-blinkon1000-blinkoff1200
set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
language messages zh_CN.utf-8
if has("gui_running")
" https://github.com/tomasr/molokai/
colorscheme molokai
if has("gui_gtk2")
set guifont=DejaVu\ Sans\ Mono\ 16
elseif has("gui_macvim")
set guifont=Menlo\ Regular:h14
elseif has("gui_win32")
set guifont=Consolas:h16:cANSI
" I try Monaco occasionally, and it seems better than Consolas for me.
" A little difference is that we need reduce linespace for it.
" https://github.com/todylu/monaco.ttf
set guifont=Monaco:h17:cANSI
set linespace=3
endif
endif
if has('multi_byte')
if empty(&termencoding)
let &termencoding = &encoding
endif
let &encoding = 'utf-8'
let &fileencoding = 'utf-8'
endif
" https://github.com/tpope/vim-pathogen/
call pathogen#infect()