18:5475788810a4 | 19:92f55dbabb83 |
---|---|
8 " vim in cygwin has win32 = 0 and win32unix = 1 | 8 " vim in cygwin has win32 = 0 and win32unix = 1 |
9 let on_windows=1 | 9 let on_windows=1 |
10 end | 10 end |
11 | 11 |
12 | 12 |
13 " {{{ Set up Vundle and plugins | 13 " Set up Vundle and plugins {{{ |
14 let installed_vundle=0 | 14 let installed_vundle=0 |
15 | 15 |
16 if on_windows == 0 | 16 if on_windows == 0 |
17 let vundle_readme=expand('~/.vim/bundle/vundle/README.md') | 17 let vundle_readme=expand('~/.vim/bundle/vundle/README.md') |
18 else | 18 else |
79 endif | 79 endif |
80 endif | 80 endif |
81 " }}} | 81 " }}} |
82 | 82 |
83 | 83 |
84 " {{{ Key maps, mostly plugin stuff on F-keys | 84 " Key maps, mostly plugin stuff on F-keys {{{ |
85 nmap <silent> <F1> :Unite buffer<CR> | 85 nmap <silent> <F1> :Unite buffer<CR> |
86 nmap <silent> <F2> :Unite file<CR> | 86 nmap <silent> <F2> :Unite file<CR> |
87 nmap <silent> <F3> :VimShell<CR> | 87 nmap <silent> <F3> :VimShell<CR> |
88 map <silent> <F4> :noh<CR> | 88 map <silent> <F4> :noh<CR> |
89 nmap <silent> <F5> :GundoToggle<CR> | 89 nmap <silent> <F5> :GundoToggle<CR> |
112 | 112 |
113 map <leader>pp :setlocal paste!<cr> | 113 map <leader>pp :setlocal paste!<cr> |
114 "}}} | 114 "}}} |
115 | 115 |
116 | 116 |
117 " {{{ General settings | 117 " General settings {{{ |
118 syntax on | 118 syntax on |
119 filetype plugin indent on | 119 filetype plugin indent on |
120 | 120 |
121 set enc=utf-8 | 121 set enc=utf-8 |
122 | 122 |
206 set undodir=$MYVIM/var/undo//,. | 206 set undodir=$MYVIM/var/undo//,. |
207 end | 207 end |
208 " }}} | 208 " }}} |
209 | 209 |
210 | 210 |
211 " {{{ File type-specific settings | 211 " File type-specific settings {{{ |
212 autocmd FileType text setlocal textwidth=78 | 212 autocmd FileType text setlocal textwidth=78 |
213 | 213 |
214 function! PerlSettings () | 214 function! PerlSettings () |
215 setlocal keywordprg=perldoc\ -f | 215 setlocal keywordprg=perldoc\ -f |
216 setlocal makeprg=perl\ -c\ %\ $* | 216 setlocal makeprg=perl\ -c\ %\ $* |
229 "let perl_fold = 1 | 229 "let perl_fold = 1 |
230 let perl_include_pod = 1 | 230 let perl_include_pod = 1 |
231 " }}} | 231 " }}} |
232 | 232 |
233 | 233 |
234 " {{{ Plugin settings | 234 " Plugin settings {{{ |
235 " > Gundo | 235 " > Gundo |
236 " I prefer python3 on windows if I have to use it. | 236 " I prefer python3 on windows if I have to use it. |
237 if on_windows == 1 | 237 if on_windows == 1 |
238 let g:gundo_prefer_python3=1 | 238 let g:gundo_prefer_python3=1 |
239 endif | 239 endif |