For indenting there's no problem. I enter the visual-block mode, select the block, enter insert mode, press ctrl-t
(or just press tab
), exit the visual-block mode, and the whole block is indented.
So, for the following code:
def my_function():
print('entering my_function')
print('leaving my_function')
Results in:
def my_function():
print('entering my_function')
print('leaving my_function')
Taking this last piece of code, if I follow the same steps as described in the first paragraph, but pressing ctrl-d
instead of ctrl-t
, the result is the following:
def my_function():
print('entering my_function')
print('leaving my_function')
Even if select both lines in the visual-block mode, only the one on which I apply the unindent command gets affected.