I have been using Vim for my text editor in place the notepad++. I want to know is there a way to perform "quick column insert" in vim.
As I know, we are able to perform column insert in vim in following steps:
then the column insertion is performed
is there a way to delete the step 4 and perform column insertion directly?
The | command does what you want, as in 3 0 | will take you to column 30. bar | To screen column [count] in the current line. exclusive motion.
To use it, press: Ctrl + V to go into column mode. Select the columns and rows where you want to enter your text.
I use the following mappings that allow to prepend / append spaces (also multiple with a [count]
before the mapping):
:vnoremap <C-Space> I<Space><Esc>gv
:vnoremap <C-S-Space> A<Space><Esc>gv
Custom mappings such as these are the key to efficient editing, and very powerful in Vim. You'll find all the details in the :help
.
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