Skip to content

Instantly share code, notes, and snippets.

@scottillogical
Created October 6, 2011 21:01
Show Gist options
  • Save scottillogical/1268663 to your computer and use it in GitHub Desktop.
Save scottillogical/1268663 to your computer and use it in GitHub Desktop.
" leader stuff
let mapleader = ","
noremap <leader>l <C-^>
map <leader>b :FufBuffer<CR>
map <leader>f :NERDTreeFind <CR>
nnoremap <leader>a :Ack --ignore-dir=vendor/ruby --ignore-dir=vendor/bundle --ignore-dir=vendor/cache --ignore-dir=log --ruby
nnoremap map <leader>b :FuzzyFinderBuffer<CR>
" autosave if i switch buffers
set autowriteall
au FocusLost * silent! wa
" http://vim.wikia.com/wiki/Move_to_next/previous_line_with_same_indentation
nnoremap <M-,> k:call search('^'. matchstr(getline(line('.')+1), '\(\s*\)') .'\S', 'b')<CR>^
nnoremap <M-.> :call search('^'. matchstr(getline(line('.')), '\(\s*\)') .'\S')<CR>^
" Moving back and forth between lines of same or lower indentation.
nnoremap <silent> <leader>n :call NextIndent(0, 1, 0, 1)<CR>
nnoremap <silent> <leader>m :call NextIndent(0, 0, 0, 1)<CR>
set list!
au BufRead,BufNewFile *.thor set filetype=ruby
set nonu
set undofile
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%81v.\+/
set writebackup
map <leader>f :FufFile \*\*\/<CR>
set wildignore+=vendor/rails/**
set wildignore+=vendor/cache/**
set wildignore+=vendor/bundle/**
set wildignore+=vendor/ruby/**
set wildignore+=steak/**
set wildignore+=/tmp/**
set wildignore+=/log/**
let g:CommandTMaxHeight=30
let g:CommandTMaxFiles=20000
" for ruby method names
"set iskeyword-=_
"set iskeyword-=:
set noswapfile
set binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment