-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
58 lines (58 loc) · 1.98 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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" general options
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax on
set background=dark
set number
set shiftwidth=2
set tabstop=2
set expandtab
set list
set hlsearch
set ignorecase
set foldmethod=indent
set foldlevelstart=99
"this doesn't work on VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Apr 7 2010 18:43:15)
"set backspace+=start,eol,indent
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" window resizing
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if bufwinnr(1)
map <kPlus> <C-W>+
map <kMinus> <C-W>-
map <kDivide> <c-w><
map <kMultiply> <c-w>>
endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" python
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
autocmd Filetype python set makeprg=pychecker
autocmd Filetype python map <F5> :!python % <CR>
autocmd Filetype python map <F7> :make % <CR>
autocmd Filetype python set expandtab
autocmd Filetype python match ErrorMsg '\%>500v.\+'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" golang
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set rtp+=$GOROOT/misc/vim
filetype plugin indent on
syntax on
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" plugins
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
source $HOME/.vim/a.vim
source $HOME/.vim/matchit.vim
source $HOME/.vim/html.vim
filetype plugin on
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" unicode suppoort
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if has("multi_byte")
if &termencoding == ""
let &termencoding = &encoding
endif
set encoding=utf-8
setglobal fileencoding=utf-8
"setglobal bomb
set fileencodings=ucs-bom,utf-8,latin1
endif