Wimm control Vim

When in visual vim mode (regular or linear), what can you do?

Is it easy for the selected part of a line, an entire line or a block of text?

And then you either copy / past / search / replace on the selected text, or are there more tricks?

+3
source share
2 answers

Yes you are right. Visual mode is usually used to move / search / copy / delete blocks of text.

However, some tricks you can do are pass this block of text to external programs, such as sorting.

Assuming you have selected text with a visual mode, you can call (for example):

!sort

sort unix (- "!" ). , , .

+3

( I A ).

+1

All Articles