You can use blockwise Visual mode to select a block of columns and insert text (such as one or two spaces) in front of the block. Likewise, you can also use blockwise Visual mode to delete one or two columns of spaces in order to unindent lines.
To add indentation:
- Go to the first line of the block.
^) to move to the first column (or first character of the line.)
- Use Ctrl+V to enter blockwise Visual mode.
- Move down to the last line of your block. If you want to indent three lines, then you can use
I to start Insert mode at the start of the visual.block. Then insert one or two spaces, and press
In order to remove indentation, you can use essentially the same procedure, just in step 2 make sure you use
0 to select columns of spaces, and in step 5 use
d to delete the column and shift the lines left. If you wanted to delete two spaces of indentation, make the Visual block two columns wide, with the
l motion, before you delete it.
:help blockwise-visual and