I can do a search to highlight multiple unrelated words that exist with:
/word1\|word2\|word3
But this is only search, it is not "select" (for copy and paste operation)
How to highlight multiple unrelated sentences ?
- As in web browser, I can highlight any lines of sentences or any words and line mix that is not on the same line (by holding down "shift key"), to copy them , so that i can paste them into an empty space.
Like so: do a multi select multi select I have a huge note of all important event taken place daily. When i browse thru the note,i want to extract out all the related events that i need, and paste it into an empty space (to group them together, instead of scattered all around). I was thinking maybe vim have the same capability as in browser, to multi select for copy and paste.
If vim don't have such function, how do you do such a task ? For example, the txt file is 100 pages long, i am somewhere in the middle of the page (where the search landed me). I can see multiple lines, scattered around on my screen that are of my interest. I want to copy them and paste them to an empty space of the file (which is at the bottom of the 100 pages file) or paste into new file in splited window. I can't just copy one line then go to bottom of the page to paste and then come back to the same screen to repeat for the rest of the lines, because on the current screen itself has already got 10 lines of interest, and if i scroll down 1 page, there will be another several lines... and the list might goes on for many more pages.. if i just copy 1 line and paste and return to the same place to look for where did i just copied just to copy another line, there will be huge confusion and not productive. If (like in web browser) i can use "shift key" to multi select as i go, it will be faster, i can copy all the lines of interest from current screen and paste once only.. the i can page down to repeat ..
Sorry, my previous post was lacking in clarification. It was closed, hence i repost here.
Is there such a feature in vim : I has got tags, such @result @plan @action @analyze etc in the text file. Is it possible that Vim will shows me all the lines that containt the Tag that i want only; any line that is not have the @tag , will not be display or will not be selected. In this can, i can easily list out only all the line of a certain @tag.
qqq
to clear the q register and then:global/pat/yank Q
or:…/normal! "Qy…
, but also just:global/pat/to …
and similar)