Minor keymap changs, README cleanup

This commit is contained in:
yan
2011-12-20 23:48:33 -08:00
committed by Yan Pritzker
parent dfba9054c1
commit 1b9172e912
2 changed files with 40 additions and 23 deletions

View File

@@ -158,14 +158,16 @@ nnoremap <D-*> :let @/='\<<C-R>=expand("<cword>")<CR>\>'<CR>:set hls<CR>
nnoremap ' `
nnoremap ` '
" Tabularization. Hit Ctrl-a then type a character you want to align by
if exists(":Tabularize")
nmap <C-a> :Tabularize /
vmap <C-a> :Tabularize /
endif
" ============================
" Tabularize - alignment
" ============================
" Hit Cmd-Shift-A then type a character you want to align by
nmap <D-A> :Tabularize /
vmap <D-A> :Tabularize /
" ===
" ============================
" SplitJoin plugin
" ============================
nmap sj :SplitjoinSplit<cr>
nmap sk :SplitjoinJoin<cr>
@@ -185,6 +187,12 @@ nmap ,bc :ClearBookmarks<cr>
" snippets that are expanded with space
abbr pry! require 'pry'; binding.pry
" ============================
" vim-rspec
" ============================
" Cmd-Shift-R for RSpec
nmap <D-R> :RunSpec<CR>
" If you use a fast_spec directory, Rfastspec can help you find
" one of your fast specs
autocmd User BufEnterRails Rnavcommand fastspec fast_spec/ -glob=**/** -suffix=_spec.rb -default=model()