Created
May 23, 2014 19:05
-
-
Save zeroem/7b0de4e9954612e1aa71 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
" Vim Addon Manager | |
set nocompatible | filetype indent plugin on | syn on | |
fun SetupVAM() | |
let c = get(g:, 'vim_addon_manager', {}) | |
let g:vim_addon_manager = c | |
let c.plugin_root_dir = expand('$HOME', 1) . '/.vim/vim-addons' | |
let &rtp.=(empty(&rtp)?'':',').c.plugin_root_dir.'/vim-addon-manager' | |
let g:vim_addon_manager = { | |
\'shell_commands_run_method': 'system', | |
\'auto_install': 1 | |
\} | |
let g:vim_addon_manager = {'scms': {'git': {}}} | |
fun! MyGitCheckout(repository, targetDir) | |
let a:repository.url = substitute(a:repository.url, '^git://github', 'https://github', '') | |
return vam#utils#RunShell('git clone --depth=1 $.url $p', a:repository, a:targetDir) | |
endfun | |
let g:vim_addon_manager.scms.git.clone=['MyGitCheckout'] | |
if !isdirectory(c.plugin_root_dir.'/vim-addon-manager/autoload') | |
execute '!git clone --depth=1 https://github.com/MarcWeber/vim-addon-manager' | |
\ shellescape(c.plugin_root_dir.'/vim-addon-manager', 1) | |
endif | |
let g:vim_addon_manager.auto_install = 1 | |
call vam#ActivateAddons([], {'auto_install': 0}) | |
endfun | |
call SetupVAM() | |
VAMActivate matchit.zip vim-addon-commenting | |
VAMActivate ctrlp | |
VAMActivate vim-fireplace | |
VAMActivate vim-classpath | |
VAMActivate vim-clojure-static | |
VAMActivate github:vim-scripts/paredit.vim | |
VAMActivate rainbow_parentheses | |
VAMActivate vim-clojure-highlight | |
VAMActivate neocomplcache | |
VAMActivate fugitive | |
set expandtab | |
set shiftwidth=2 | |
set softtabstop=2 | |
set ai | |
set hlsearch | |
" Because who want's the default color scheme? | |
colorscheme slate | |
" Plugin setup | |
" Enable Rainbow Parens | |
au VimEnter * RainbowParenthesesToggle | |
au Syntax * RainbowParenthesesLoadRound | |
au Syntax * RainbowParenthesesLoadSquare | |
au Syntax * RainbowParenthesesLoadBraces | |
" Enable autocompelte | |
let g:neocomplcache_enable_at_startup = 1 | |
" Make paredit easier to use and more like emacs | |
let g:paredit_shortmaps=1 | |
let g:paredit_smartjump=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment