New answers tagged

0

There are lots of ways to do this in Vim. Which is best depends on context (which you don't provide much of in your example). Here's one method: After adding the word in line three, type: 4G7ea<C-A> 4G " Move to the start of line 4 7e " Move to the end of the 7th word a " Enter insert mode <C-A> " Enter the ...


0

Unfortunately, I found that this is not possible in the manner of VSCode (natively). However, you can use the multicursor plugin, macros, and */# to perform similar The comments to the question contain helpful links to old posts which are trying to achieve similar goals, some of which are possible.


2

You need to set virtualedit=all. The virtualedit option controls where you can edit outside of the actual text (there are other options). Read :help 'virtualedit' for more.


2

In general, visual block selections must be blocks (rectangles). The only "jagged" selections are when you hit <C-v>$ to select to the end of multiple lines. However, depending on what you want to do, there are often several approaches. In this case, to copy: " clear register A let @a = '' " yank all the words global/=/normal! 0"Ayaw Using a capital ...


Top 50 recent answers are included