Created
April 22, 2014 14:31
-
-
Save Garonenur/11181436 to your computer and use it in GitHub Desktop.
vimrc to reproduce funny behaviour of vam and vundle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype plugin indent on | |
if &t_Co > 2 || has("gui_running") | |
syntax on | |
set hlsearch | |
endif | |
set hidden | |
set lazyredraw | |
" | |
"==============VAM============== | |
fun SetupVAM() | |
let vam_install_path = expand('$HOME') . '/.vim/vim-addons' | |
exec 'set runtimepath+='.vam_install_path.'/vim-addon-manager' | |
" * unix based os users may want to use this code checking out VAM | |
if !isdirectory(vam_install_path.'/vim-addon-manager') && 1 == | |
\ confirm("git clone VAM into ".vam_install_path."?","&Y\r&N") | |
" I'm sorry having to add this reminder. Eventually it'll pay off. | |
call confirm("Remind yourself that most plugins ship with documentation | |
\ (README*, doc/*.txt). Its your first source of knowledge. If you can't | |
\ find the info you're looking for in reasonable time ask maintainers to | |
\ improve documentation") | |
exec '!p='.shellescape(vam_install_path).'; mkdir -p "$p" && cd "$p" && | |
\ git clone --depth 1 git://github.com/MarcWeber/vim-addon-manager.git' | |
endif | |
endf | |
call SetupVAM() | |
"==============VAM============== | |
"==============Vundle============== | |
"Vundle settings | |
set rtp+=~/.vim/bundle/vundle | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' | |
" My Bundles here: | |
" original repos on github | |
Bundle 'Valloric/YouCompleteMe' | |
"==============Vundle============== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment