Created
May 7, 2014 20:43
-
-
Save iamedu/c19d271c7e4df4893b45 to your computer and use it in GitHub Desktop.
My VimRC
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 " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' | |
" My Bundles here: | |
" | |
" Clojure | |
Bundle "tpope/vim-fireplace" | |
" Bundle "tpope/vim-classpath" | |
Bundle "cemerick/vim-clojure-static" | |
Bundle "kien/rainbow_parentheses.vim" | |
" original repos on github | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'Lokaltog/vim-easymotion' | |
Bundle 'derekwyatt/vim-scala' | |
Bundle 'scrooloose/nerdtree' | |
" Bundle 'scrooloose/syntastic' | |
Bundle 'benmills/vimux' | |
Bundle 'hallison/vim-markdown' | |
Bundle 'tomtom/tcomment_vim' | |
Bundle 'lukerandall/haskellmode-vim' | |
" Snipmate Bundles | |
Bundle "MarcWeber/vim-addon-mw-utils" | |
Bundle "tomtom/tlib_vim" | |
Bundle "honza/vim-snippets" | |
Bundle "garbas/vim-snipmate" | |
Bundle "tpope/vim-rails" | |
Bundle "tpope/vim-bundler" | |
" Html | |
" Bundle "hallettj/jslint.vim" | |
Bundle "mattn/emmet-vim" | |
Bundle "closetag.vim" | |
Bundle "kchmck/vim-coffee-script" | |
Bundle "StanAngeloff/php.vim" | |
" Prolog | |
Bundle "msteinert/vim-prolog" | |
" Airline | |
Bundle "bling/vim-airline" | |
Bundle "kien/ctrlp.vim" | |
" Unite | |
Bundle "Shougo/vimproc.vim" | |
Bundle "Shougo/unite.vim" | |
" vim-scripts repos | |
Bundle 'matchit.zip' | |
Bundle 'L9' | |
Bundle "csv.vim" | |
Bundle "sudo.vim" | |
" Lisp | |
Bundle 'slimv.vim' | |
" ... | |
Bundle 'dhruvasagar/vim-table-mode' | |
Bundle 'editorconfig/editorconfig-vim' | |
filetype plugin indent on " required! | |
" | |
" Brief help | |
" :BundleList - list configured bundles | |
" :BundleInstall(!) - install(update) bundles | |
" :BundleSearch(!) foo - search(or refresh cache first) for foo | |
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" NOTE: comments after Bundle command are not allowed.. | |
" My personal configuration | |
set number | |
set wildmenu | |
" Give a shortcut key to NERD Tree | |
map <F3> :NERDTreeToggle<CR> | |
" change the mapleader from \ to , | |
let mapleader="," | |
let g:lisp_rainbow=1 | |
let g:paredit_electric_return=1 | |
let g:slimv_disable_clojure=1 | |
"Tabs | |
set ai | |
"Search | |
set hlsearch | |
"Change options | |
set cpoptions+=ces$ | |
" set virtualedit=block,insert | |
set nobackup | |
set noswapfile | |
set stl=%f\ %m\ %r%{fugitive#statusline()}\ Line:%l/%L[%p%%]\ Col:%v\ Buf:#%n\ [%b][0x%B] | |
set laststatus=2 | |
set vb | |
if &t_Co > 2 || has("gui_running") | |
" switch syntax highlighting on, when the terminal has colors | |
syntax on | |
endif | |
set pastetoggle=<F2> | |
" Identation | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
" Parentheses | |
au VimEnter * RainbowParenthesesToggle | |
au Syntax * RainbowParenthesesLoadRound | |
au Syntax * RainbowParenthesesLoadSquare | |
au Syntax * RainbowParenthesesLoadBraces | |
let g:rbpt_colorpairs = [ | |
\ ['brown', 'RoyalBlue3'], | |
\ ['Darkblue', 'SeaGreen3'], | |
\ ['darkgray', 'DarkOrchid3'], | |
\ ['darkgreen', 'firebrick3'], | |
\ ['darkcyan', 'RoyalBlue3'], | |
\ ['darkred', 'SeaGreen3'], | |
\ ['darkmagenta', 'DarkOrchid3'], | |
\ ['brown', 'firebrick3'], | |
\ ['gray', 'RoyalBlue3'], | |
\ ['yellow', 'SeaGreen3'], | |
\ ['darkmagenta', 'DarkOrchid3'], | |
\ ['Darkblue', 'firebrick3'], | |
\ ['darkgreen', 'RoyalBlue3'], | |
\ ['darkcyan', 'SeaGreen3'], | |
\ ['darkred', 'DarkOrchid3'], | |
\ ['red', 'firebrick3'], | |
\ ] | |
" Unite.vim | |
" Use ag for search | |
if executable('ag') | |
let g:unite_source_grep_command = 'ag' | |
let g:unite_source_grep_default_opts = '--nogroup --nocolor --column' | |
let g:unite_source_grep_recursive_opt = '' | |
endif | |
let g:unite_source_history_yank_enable = 1 | |
" Haskell | |
let g:haddock_browser='/usr/bin/chromium' | |
nnoremap <space>/ :Unite grep:.<cr> | |
nnoremap <space>s :Unite -quick-match buffer<cr> | |
nnoremap <space>y :Unite history/yank<cr> | |
autocmd FileType clojure nnoremap <C-e> :Eval<CR> | |
autocmd FileType clojure nnoremap E :%Eval<CR> | |
autocmd FileType cpp set tabstop=4|set shiftwidth=4 | |
autocmd FileType xml set tabstop=4|set shiftwidth=4 | |
autocmd FileType java set tabstop=4|set shiftwidth=4 | |
autocmd FileType groovy set tabstop=2|set shiftwidth=2 | |
autocmd FileType ruby set tabstop=2|set shiftwidth=2 | |
autocmd FileType eruby set tabstop=2|set shiftwidth=2 | |
autocmd FileType javascript set tabstop=2|set shiftwidth=2 | |
au BufEnter *.edn set filetype=clojure | |
au BufEnter *.fleet set filetype=html | |
au Filetype html,xml,xsl,fleet source ~/.vim/bundle/closetag.vim/plugin/closetag.vim | |
set wildignore+=*.class,.git,.hg,.svn,target/**,node_modules,**/components/**,target/* | |
set autoread | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment