-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_vimrc
More file actions
92 lines (73 loc) · 2.08 KB
/
Copy path_vimrc
File metadata and controls
92 lines (73 loc) · 2.08 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
" vim:fdm=marker
" for speed debug
"set vbs=4
set nocompatible
"source $VIMRUNTIME/mswin.vim
" zhuliang.li, 2013.07.27
" config my personal vim setting here
" temporarily, only: basic, c, web
" basic corss language setting chooser {{{
"let g:cfg_option = ['basic', 'c', 'py']
let g:cfg_option = ['basic', 'c', 'py', 'web']
" }}}
" basic setting file {{{
source $VIM/settings/vimrc_basic.vim
" }}}
" auto save on lost focus {{{
autocmd FocusLost * silent! wa
" }}}
" font setting {{{
" set font
" 测试中文
set guifont=Bitstream_Vera_Sans_Mono:h10:cANSI
"set guifont=Source_Code_Pro:h10:cANSI
"set guifont=Courier_New:h10:cANSI
set guifontwide=YouYuan:h12
" }}}
" set IME {{{
if has('multi_byte_ime')
" color for IME not opened
hi Cursor guifg=bg guibg=Orange gui=NONE
" color for IME opened
hi CursorIM guifg=NONE guibg=Blue gui=NONE
" close auto switch IME function of VIM, in insert and visual mode
set iminsert=0 imsearch=0
" remember the insert mode IME statue
"inoremap <silent> <ESC> <ESC>:set iminsert=0<CR>
endif
" }}}
" reload after edit _vimrc {{{
" disable for seldomly change on _vimrc, mostly on over files
"autocmd! bufwritepost _vimrc source $VIM/settings/_vimrc
" }}}
" set vundle {{{
" more info, pls refer: http://vim-scripts.org/vim/scripts.html
filetype off
" set vundle path
set rtp+=$VIM/settings/vimfiles/bundle/neobundle.vim/
call neobundle#begin('$VIM/settings/vimfiles/bundle/')
" vundle core
"Bundle 'gmarik/vundle'
NeoBundleFetch 'Shougo/neobundle.vim'
for item in g:cfg_option
let s:vim_script = $VIM . '/settings/vimrc_' . item . '_bundle.vim'
if filereadable(s:vim_script)
execute "source " . s:vim_script
endif
endfor
call neobundle#end()
"active plugin and filetype relationship
filetype plugin indent on " required!
NeoBundleCheck
" }}}
" load language specify {{{
for item in g:cfg_option
let s:vim_script = $VIM . '/settings/vimrc_' . item . '_options.vim'
if filereadable(s:vim_script)
execute "source " . s:vim_script
endif
endfor
" }}}
" add no wrap for log-like files {{{
autocmd BufNewFile,BufRead *.log :set nowrap
" }}}