Skip to content

Instantly share code, notes, and snippets.

@JoeyButler
Created August 27, 2012 17:38
Show Gist options
  • Save JoeyButler/3490684 to your computer and use it in GitHub Desktop.
Save JoeyButler/3490684 to your computer and use it in GitHub Desktop.
Vim config
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>
@braidn
Copy link

braidn commented Sep 2, 2012

Props for using Vundle Joey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment