I've been trying to improve my vim skills and one thing that usually bothered me was how to shift a block of code one tab their to the right or left.
It's actually quit easy place your cursor on the line from which you cant to shift your code, the type >>
to shift the code one tab to the right and <<
to shift the line one tab to the left.
I've setup my IDE to use relative line numbers so to shift a block of n lines of code I just type n >>
for right and n<<
for left.
Comments (0)