From 3d7defa2f743ae7194488894bf48555b9965bdc8 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Sun, 4 Dec 2011 12:42:02 -0600 Subject: [PATCH] Keep cursor position --- editors/vim/bundles.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/editors/vim/bundles.vim b/editors/vim/bundles.vim index 4bad846..c704275 100644 --- a/editors/vim/bundles.vim +++ b/editors/vim/bundles.vim @@ -112,9 +112,9 @@ call vundle#rc() vmap a> :Tabularize /=>gv vmap a: :Tabularize /\z:gv - imap a= :Tabularize /=i - imap a> :Tabularize /=>i - imap a: :Tabularize /\z:i + imap a= :Tabularize /=a + imap a> :Tabularize /=>a + imap a: :Tabularize /\z: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 => =>:Tabularize /=> i - " inoremap = =:Tabularize /=i + " inoremap => =>:Tabularize /=> a + " inoremap = =:Tabularize /=a Bundle 'scrooloose/nerdcommenter' let NERDSpaceDelims = 1 " space between comment and code