Be more explicit with :Tabularize

pull/2/head
Bodaniel Jeanes 2011-10-20 10:51:07 -05:00
parent 41485b7611
commit 701339606d
1 changed files with 11 additions and 11 deletions

View File

@ -50,17 +50,17 @@ call vundle#rc()
Bundle 'Tabular'
if exists(":Tabularize")
map <Leader>a= :Tab /=<CR>
map <Leader>a> :Tab /=><CR>
map <Leader>a: :Tab /\z:<CR>
map <Leader>a= :Tabularize /=<CR>
map <Leader>a> :Tabularize /=><CR>
map <Leader>a: :Tabularize /\z:<CR>
vmap <Leader>a= :Tab /=<CR>
vmap <Leader>a> :Tab /=><CR>
vmap <Leader>a: :Tab /\z:<CR>
vmap <Leader>a= :Tabularize /=<CR>
vmap <Leader>a> :Tabularize /=><CR>
vmap <Leader>a: :Tabularize /\z:<CR>
imap <Leader>a= <Esc>:Tab /=<CR>i
imap <Leader>a> <Esc>:Tab /=><CR>i
imap <Leader>a: <Esc>:Tab /\z:<CR>i
imap <Leader>a= <Esc>:Tabularize /=<CR>i
imap <Leader>a> <Esc>:Tabularize /=><CR>i
imap <Leader>a: <Esc>:Tabularize /\z:<CR>i
" Auto-align
"" Cucumber
@ -80,8 +80,8 @@ call vundle#rc()
" These need more work:
" TODO: - keep cursor position
" - don't align equals sign if inside hashrocket
" inoremap => =><Esc>:Tab /=> <CR>i
" inoremap = =<Esc>:Tab /=<CR>i
" inoremap => =><Esc>:Tabularize /=> <CR>i
" inoremap = =<Esc>:Tabularize /=<CR>i
endif
Bundle 'scrooloose/nerdcommenter'