.vimrc

changeset 578
3e4703eef23d
parent 577
c3ecffb36fb7
child 579
0cb7adee16fe
equal deleted inserted replaced
577:c3ecffb36fb7 578:3e4703eef23d
2 " vim: fdm=marker 2 " vim: fdm=marker
3 3
4 set nocompatible 4 set nocompatible
5 5
6 " on windows and not cygwin 6 " on windows and not cygwin
7 let s:on_windows=(has('win32') || has('win64')) 7 let g:on_windows = (has('win32') || has('win64'))
8 let s:filename=expand('<sfile>') 8 let s:filename = expand('<sfile>')
9 9
10 " Set up Vundle and plugins {{{ 10 " Set up Vundle and plugins {{{
11 call vimrc#VundleInstall() 11 call vimrc#VundleInstall()
12 12
13 if s:on_windows == 0 13 if g:on_windows
14 set rtp+=~/vimfiles/bundle/vundle/
15 call vundle#begin('~/vimfiles/bundle')
16 else
14 set rtp+=~/.vim/bundle/vundle/ 17 set rtp+=~/.vim/bundle/vundle/
15 call vundle#begin() 18 call vundle#begin()
16 else
17 set rtp+=~/vimfiles/bundle/vundle/
18 call vundle#begin('~/vimfiles/bundle')
19 endif 19 endif
20 20
21 Plugin 'gmarik/vundle' 21 Plugin 'gmarik/vundle'
22 22
23 Plugin 'vim-airline/vim-airline' 23 Plugin 'vim-airline/vim-airline'
180 180
181 set tags+=.tags 181 set tags+=.tags
182 182
183 " Ignore compiled files and repositories 183 " Ignore compiled files and repositories
184 set wildignore=*.o,*~,*.pyc 184 set wildignore=*.o,*~,*.pyc
185 if s:on_windows == 1 185 if g:on_windows
186 set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store 186 set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
187 else 187 else
188 set wildignore+=.git\*,.hg\*,.svn\* 188 set wildignore+=.git\*,.hg\*,.svn\*
189 endif 189 endif
190 190
205 205
206 " Superseded by vim-airline 206 " Superseded by vim-airline
207 "set statusline=%f%m%r%h%w\ %y\ %=%l,%c\ %p%%\ %L 207 "set statusline=%f%m%r%h%w\ %y\ %=%l,%c\ %p%%\ %L
208 set laststatus=2 208 set laststatus=2
209 209
210 if s:on_windows == 1 210 if g:on_windows
211 let $MYVIM=$HOME.'/vimfiles' 211 let $MYVIM=$HOME.'/vimfiles'
212 212
213 if !filewritable( $MYVIM . '/var' ) 213 if !filewritable( $MYVIM . '/var' )
214 silent execute '!mkdir "'.$HOME.'\vimfiles\var"' 214 silent execute '!mkdir "'.$HOME.'\vimfiles\var"'
215 endif 215 endif
236 silent execute '!mkdir "'.$MYVIM.'/var/undo"' 236 silent execute '!mkdir "'.$MYVIM.'/var/undo"'
237 endif 237 endif
238 238
239 endif 239 endif
240 240
241 if s:on_windows == 1 241 if g:on_windows
242 set guifont=DejaVu_Sans_Mono:h10:cDEFAULT 242 set guifont=DejaVu_Sans_Mono:h10:cDEFAULT
243 set linespace=0 243 set linespace=0
244 elseif has('osx') 244 elseif has('osx')
245 set guifont=DejaVu\ Sans\ Mono:h11 245 set guifont=DejaVu\ Sans\ Mono:h11
246 else 246 else
338 let g:viewdoc_perldoc_format = 'ansi' 338 let g:viewdoc_perldoc_format = 'ansi'
339 let g:viewdoc_winwidth_max = 100 339 let g:viewdoc_winwidth_max = 100
340 340
341 ">> Gundo 341 ">> Gundo
342 " I prefer python3 on windows if I have to use it. Needs a dll in path. 342 " I prefer python3 on windows if I have to use it. Needs a dll in path.
343 if s:on_windows == 1 343 if g:on_windows
344 let g:gundo_prefer_python3=1 344 let g:gundo_prefer_python3 = 1
345 endif 345 endif
346 346
347 ">> Tagbar 347 ">> Tagbar
348 if s:on_windows == 1 348 if g:on_windows
349 if executable('ctags') == 0 349 if executable('ctags') == 0
350 " if i haven't installed from chocolatey... 350 " if i haven't installed from chocolatey...
351 let g:tagbar_ctags_bin = 'C:\Users\mhoward\bin\ctags.exe' 351 let g:tagbar_ctags_bin = 'C:\Users\mhoward\bin\ctags.exe'
352 endif 352 endif
353 endif 353 endif

mercurial