Created
August 27, 2012 17:38
-
-
Save JoeyButler/3490684 to your computer and use it in GitHub Desktop.
Vim config
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
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'ctrlp' | |
filetype plugin indent on | |
" vundle config end | |
set encoding=utf-8 | |
set timeout timeoutlen=400 ttimeoutlen=900 | |
set nohlsearch | |
set laststatus=2 | |
" set statusline=%{fugitive#statusline() %f} | |
imap <C-l> <Space>=><Space> | |
imap <C-k> <Space>=<Space> | |
imap fcity<tab> Factory(:city) | |
imap ,s <ESC> :w<cr> | |
map ,t :w \|!ruby %<cr> | |
map ,r :w \|!rspec -Ispec %<cr> | |
nnoremap ,a :Ack | |
" cntrlp fuzzy file finder | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
let g:ctrlp_custom_ignore = { | |
\ 'dir': '\.git$\|\.hg$\|\.svn$|tmp|log', | |
\ 'file': '\.exe$\|\.so$\|\.dll$' | |
\ } | |
" windows | |
map <C-J> <C-W>j | |
map <C-K> <C-W>k | |
map <C-H> <C-W>h | |
map <C-L> <C-W>l | |
map ,c :bd <cr> | |
map <D-t> <C-p> | |
" git | |
map ,gcia :w \|!git commit -a --amend <cr> | |
map ,gst :Gstatus<cr> | |
map ,gbl :Gblame<cr> | |
" vim utils | |
map ,re :so ~/.vimrc.local <cr> | |
map ,sw :set wrap <cr> | |
map ,snw :set nowrap <cr> | |
imap jj <ESC> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Props for using Vundle Joey