I would like to know if it is possible to add spaces (30 spaces) at cursor position
I tried to do it with regex but I don't know how to represent the actual cursor position in regex.
To insert individual spaces, click on the beginning of the line, then use cmd (for Mac) or ctrl (for Windows) and click on the beginning of other lines. It's the same way as how you select multiple files at once. Now when you add a space in front, it will add to all the lines that you selected.
When you selected the desired lines of the block you want, you can press I (that is Shift + i ), you are now on insert mode, where you can add space in front of your line.
30iSPACE will add 30 spaces at the cursor position in command mode.
"a defines register a and if you cut a whitespace with "ax makes register a has whitespace. Then use:
30"ap
Note: Registers don't forget its value so first solution is more useful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With