From 1d37b2e1b1f2098ed944352221185ddf023627a3 Mon Sep 17 00:00:00 2001 From: Francisco Souza Date: Wed, 20 Jul 2011 10:54:15 -0300 Subject: [PATCH] Visual mapping for moving columns --- modules/mapping.vim | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/mapping.vim b/modules/mapping.vim index c3012596f..66210f4ed 100644 --- a/modules/mapping.vim +++ b/modules/mapping.vim @@ -13,12 +13,15 @@ function TrimWhiteSpace() map o :call TrimWhiteSpace() "Moving lines -nnoremap :m+== -nnoremap :m-2== -inoremap :m+==gi -inoremap :m-2==gi -vnoremap :m'>+gv=gv -vnoremap :m-2gv=gv +noremap :m+== +noremap :m-2== +noremap :m+==gi +noremap :m-2==gi +noremap :m'>+gv=gv +noremap :m-2gv=gv + +vnoremap xp +vnoremap xP "Rope stuffs autocmd FileType python map :RopeGotoDefinition