Skip to content

Instantly share code, notes, and snippets.

@sskirby
Created May 7, 2012 20:44
Show Gist options
  • Save sskirby/2630277 to your computer and use it in GitHub Desktop.
Save sskirby/2630277 to your computer and use it in GitHub Desktop.
.vimrc
filetype off
call pathogen#runtime_append_all_bundles()
filetype plugin indent on
set nocompatible
set hlsearch
set number
set tabstop=2
set shiftwidth=2
set smarttab
set expandtab
" disable cursor blinking
set guicursor+=a:blinkon0
let mapleader=","
" Command-T refresh
"nmap <F5> :CommandTFlush<cr>
"nmap <f5> :CommandTFlush<cr>
"imap <F5> <Esc>:CommandTFlush<Cr>i
"map <Leader>F :CommandTFlush<CR>
let CommandTMaxFiles=20000
"map <silent> <C-S-T> :CommandT<cr>
" Tabularize
nmap <Leader>a :Tab/\|<CR>
vmap <Leader>a :Tab/\|<CR>
" Visually select the text that was last edited/pasted
nmap gV `[v`]
" set wildmenu
" set wildignore=true
" set wildmode=list:longest
" Set xterm title
set title
set backupdir=~/.vim/backup
" save .swp files to a central place
set directory=~/.vim/backup
" Unimpaired configuration
" Bubble single lines
nmap <C-Up> [e
nmap <C-Down> ]e
" Bubble multiple lines
vmap <C-Up> [egv
vmap <C-Down> ]egv
" Testerical run tests in spork
"let g:testerical_in_spork = 0
"let g:testerical_in_quickfix = 1
" Testee keybinds
"nmap <leader>tt <Plug>(testee-test-case)
"nmap <leader>tf <Plug>(testee-test-file)
"nmap <leader>tl <Plug>(testee-test-last)
" jump-x2
map <A-Left> <Plug>(jump-x2-to-previous)
map <A-Right> <Plug>(jump-x2-to-next)
colors solarized
set background=dark
source ~/.vim/functions.vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment