Created
November 17, 2014 19:32
-
-
Save micha/c1f877a2463a03672ffd 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
| " Plugins {{{ | |
| " required by vundle {{{ | |
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'gmarik/Vundle.vim' | |
| "}}} | |
| " utility | |
| Plugin 'mattn/webapi-vim' | |
| " git | |
| Plugin 'tpope/vim-fugitive' | |
| Plugin 'mattn/gist-vim' | |
| " searching | |
| Plugin 'kien/ctrlp.vim' | |
| Plugin 'jeetsukumaran/vim-buffergator' | |
| " completion | |
| Plugin 'ervandew/supertab' | |
| " editing | |
| Plugin 'tpope/vim-repeat' | |
| Plugin 'tpope/vim-surround' | |
| " clojure | |
| Plugin 'tpope/vim-fireplace' | |
| Plugin 'guns/vim-sexp' | |
| Plugin 'tpope/vim-sexp-mappings-for-regular-people' | |
| Plugin 'guns/vim-clojure-static' | |
| Plugin 'guns/vim-clojure-highlight' | |
| " editor extras | |
| Plugin 'bling/vim-airline' | |
| Plugin 'nathanaelkane/vim-indent-guides' | |
| Plugin 'guns/xterm-color-table.vim' | |
| " color schemes | |
| Plugin 'vim-scripts/wombat256.vim' | |
| Plugin 'micha/vim70style' | |
| " required by vundle {{{ | |
| call vundle#end() | |
| filetype plugin indent on | |
| "}}} | |
| "}}} | |
| " Vim Options {{{ | |
| set autoindent | |
| set backspace=indent,eol,start | |
| set complete-=i | |
| set colorcolumn=80 | |
| set encoding=utf-8 | |
| set expandtab | |
| set foldmethod=marker | |
| set history=200 | |
| set hidden | |
| set incsearch | |
| set laststatus=2 | |
| set nrformats-=octal | |
| set number | |
| set pastetoggle=<C-p> | |
| set relativenumber | |
| set shell=/bin/bash | |
| set shiftwidth=2 | |
| set shiftround | |
| set showcmd | |
| set showmatch | |
| set smartcase | |
| set smarttab | |
| set t_Co=256 | |
| set tabstop=2 | |
| set timeoutlen=1200 | |
| set ttimeoutlen=50 | |
| set wildignore+=*.class,*.lst | |
| set wildmenu | |
| set wildmode=longest:full,full | |
| set noshowmode | |
| set nowrap | |
| " color scheme | |
| syntax on | |
| colorscheme vim70style | |
| " leaders | |
| let mapleader="a" | |
| let maplocalleader="," | |
| "}}} | |
| " Plugin Options "{{{ | |
| " CtrlP | |
| let g:ctrlp_map = '<C-x>' " Open CtrlP | |
| " Airline | |
| let g:airline_theme = 'wombat' " Airline colorscheme | |
| let g:airline_powerline_fonts = 1 " Fancy symbols | |
| let g:airline#extensions#tabline#enabled = 1 " Enable the list of buffers | |
| let g:airline#extensions#tabline#fnamemod = ':t' " Show just the filename | |
| " Indent Guides | |
| let g:indent_guides_enable_on_vim_startup = 1 " doit when vim starts | |
| let g:indent_guides_auto_colors = 0 " guide colors set by colorscheme | |
| let g:indent_guides_exclude_filetypes = ['help'] " don't doit to these | |
| "}}} | |
| " Key Mappings "{{{ | |
| " navigate around buffers | |
| nmap <leader>a :b#<CR> | |
| nmap <leader>l :bnext<CR> | |
| nmap <leader>h :bprevious<CR> | |
| " create, kill, and list buffers | |
| nmap <leader>C :enew<cr> | |
| nmap <leader>K :bp <BAR> bd #<CR> | |
| nmap <leader>bl :ls<CR> | |
| " editing | |
| nmap <C-j> i<CR><ESC>w | |
| " redraw all things | |
| nmap <C-l> :redraw<CR>:AirlineRefresh<CR>:b#<CR>:b#<CR> | |
| " find the cursor | |
| nmap <leader>cc :set nocursorcolumn!<CR>:set nocursorline!<CR> | |
| "}}} | |
| " Auto Commands "{{{ | |
| augroup Micha | |
| autocmd! | |
| autocmd BufNewFile,BufRead *.cljs.hl,*.boot setf clojure | |
| autocmd BufNewFile,BufRead *.html.hl setf html | |
| autocmd BufWritePost ~/.vimrc so ~/.vimrc | |
| augroup END | |
| "}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment