Skip to content

Instantly share code, notes, and snippets.

@dinglixiang
Created April 18, 2014 02:15
Show Gist options
  • Save dinglixiang/11021483 to your computer and use it in GitHub Desktop.
Save dinglixiang/11021483 to your computer and use it in GitHub Desktop.
.vimrc
""
"" Janus setup
""
" Define paths
let g:janus_path = escape(fnamemodify(resolve(expand("<sfile>:p")), ":h"), ' ')
let g:janus_vim_path = escape(fnamemodify(resolve(expand("<sfile>:p" . "vim")), ":h"), ' ')
let g:janus_custom_path = expand("~/.janus")
" Source janus's core
exe 'source ' . g:janus_vim_path . '/core/before/plugin/janus.vim'
" You should note that groups will be processed by Pathogen in reverse
" order they were added.
call janus#add_group("tools")
call janus#add_group("langs")
call janus#add_group("colors")
""
"" Customisations
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
Bundle 'ecomba/vim-ruby-refactoring'
Bundle 'duskhacker/sweet-rspec-vim'
Bundle 'bling/vim-airline'
Bundle 'Townk/vim-autoclose'
Bundle 'jgdavey/vim-blockle'
Bundle 'altercation/vim-colors-solarized'
Bundle 'nelstrom/vim-qargs'
Bundle 'thoughtbot/vim-rspec'
Bundle 'tpope/vim-surround'
Bundle 'kana/vim-textobj-lastpat'
Bundle 'kana/vim-textobj-user'
Bundle 'jgdavey/tslime.vim'
Bundle 'jgdavey/vim-turbux'
Bundle 'slim-template/vim-slim.git'
Bundle 'kchmck/vim-coffee-script'
filetype plugin indent on
""
if filereadable(expand("~/.vimrc.before"))
source ~/.vimrc.before
endif
" Disable plugins prior to loading pathogen
exe 'source ' . g:janus_vim_path . '/core/plugins.vim'
""
"" Pathogen setup
""
" Load all groups, custom dir, and janus core
call janus#load_pathogen()
" .vimrc.after is loaded after the plugins have loaded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment