diff --git a/vim/vimrc b/vim/vimrc index 49262f2..4b7495e 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,5 +1,10 @@ " load plugins using vundle -source ~/.vim/vundle.vim + +if has("win32") + source ~/vimfiles/vundle.vim +else + source ~/.vim/vundle.vim +endif syntax on filetype plugin indent on @@ -77,11 +82,11 @@ augroup mail autocmd! autocmd FileType mail set textwidth=70 wrap fo=tcrq augroup END - + " auto completion and menu set wildmode=list:longest:full set wildmenu - + " Map keys to toggle functions function! MapToggle(key, opt) let cmd = ':set '.a:opt.'! \| set '.a:opt."?\" @@ -144,8 +149,8 @@ noremap p "+ nnoremap = YpVr= nnoremap - YpVr- -"let g:neocomplcache_enable_at_startup = 1 -let g:indent_guides_auto_colors = 0 +"let g:neocomplcache_enable_at_startup = 1 +let g:indent_guides_auto_colors = 0 " Hide latex output let NERDTreeIgnore=['\~$','\.\(aux\|nav\|out\|snm\|toc\|vrb\|o\)$'] diff --git a/vim/vundle.vim b/vim/vundle.vim index 7d9fc57..9db4329 100644 --- a/vim/vundle.vim +++ b/vim/vundle.vim @@ -1,8 +1,14 @@ set nocompatible " be iMproved, required filetype off " required -if !isdirectory(expand("~/.vim/bundle/Vundle.vim/.git")) - !git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim +if has("win32") + if !isdirectory(expand("~/.vim/bundle/Vundle.vim/.git")) + !git clone https://github.com/gmarik/Vundle.vim.git \%USERPROFILE\%\.vim\bundle\Vundle.vim + endif +else + if !isdirectory(expand("~/.vim/bundle/Vundle.vim/.git")) + !git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim + endif endif set rtp+=~/.vim/bundle/Vundle.vim