Skip to content

Instantly share code, notes, and snippets.

@micha
Created November 15, 2014 21:17
Show Gist options
  • Save micha/8e3b1664af81f3deb560 to your computer and use it in GitHub Desktop.
Save micha/8e3b1664af81f3deb560 to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
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'
call vundle#end() " required by Vundle
filetype plugin indent on " required by Vundle
set t_Co=256
let mapleader="a"
let maplocalleader=","
syntax on
colorscheme vim70style
set autoindent
set backspace=indent,eol,start
set complete-=i
set colorcolumn=80
set encoding=utf-8
set expandtab
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 tabstop=2
set timeoutlen=1200
set ttimeoutlen=50
set wildignore+=*.class,*.lst
set wildmenu
set wildmode=longest:full,full
set noshowmode
" CtrlP
let g:ctrlp_map = '<C-x>'
" 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_auto_colors = 0 " guide colors set by colorscheme
" buffers
nmap <leader>a :b#<CR>
nmap <leader>l :bnext<CR>
nmap <leader>h :bprevious<CR>
nmap <leader>T :enew<cr>
nmap <leader>bq :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>
" autoload
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