Skip to content

Instantly share code, notes, and snippets.

@joebutler2
Forked from JoeyButler/.vimrc.local
Created March 17, 2014 00:05
Show Gist options
  • Select an option

  • Save joebutler2/9591742 to your computer and use it in GitHub Desktop.

Select an option

Save joebutler2/9591742 to your computer and use it in GitHub Desktop.
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