Keep cursor position

pull/2/head
Bodaniel Jeanes 2011-12-04 12:42:02 -06:00
parent 813d60d10a
commit 3d7defa2f7
1 changed files with 5 additions and 5 deletions

View File

@ -112,9 +112,9 @@ call vundle#rc()
vmap <Leader>a> :Tabularize /=><CR>gv
vmap <Leader>a: :Tabularize /\z:<CR>gv
imap <Leader>a= <Esc>:Tabularize /=<CR>i
imap <Leader>a> <Esc>:Tabularize /=><CR>i
imap <Leader>a: <Esc>:Tabularize /\z:<CR>i
imap <Leader>a= <Esc>:Tabularize /=<CR>a
imap <Leader>a> <Esc>:Tabularize /=><CR>a
imap <Leader>a: <Esc>:Tabularize /\z:<CR>a
" Auto-align
"" Cucumber
@ -134,8 +134,8 @@ call vundle#rc()
" These need more work:
" TODO: - keep cursor position
" - don't align equals sign if inside hashrocket
" inoremap => =><Esc>:Tabularize /=> <CR>i
" inoremap = =<Esc>:Tabularize /=<CR>i
" inoremap => =><Esc>:Tabularize /=> <CR>a
" inoremap = =<Esc>:Tabularize /=<CR>a
Bundle 'scrooloose/nerdcommenter'
let NERDSpaceDelims = 1 " space between comment and code