move the block right/left characterwise
maxfl opened this issue · 4 comments
The current implementation moves the block left right by shiftwidth.
Sometimes it is needed to move the block by 1 character left/right. It would be very nice if it could be done with textmanip without explicit shiftwidth change.
Thanks for the nice addon.
Just a question,
Do you want 1 column move as keymap like <Plug>(textmanip-move-right-1)
or as global variable let g:textmanip_shiftwidth = 1
, which affect existing <Plug>(textmanip-move-right)
?
I'm in mood to introduce new global var(g:textmanip_shiwtwidth) which default is &shiftwidth, and some wrapper command.
I thought about <Plug>(textmanip-move-right-1)
. It's more convenient because it doesn't require changing variable to 1 and back in case default mode is not 1.
I think both approaches can be implemented in the same time without any conflicts.
Implemented, currently very dirty hacks.
I currently working on enhancing textmanip feature in dev branch, so I don't want to actively modify master branch now.
works awesome. Thanks!