atom-vim-mode-plus
atom-vim-mode-plus copied to clipboard
[QUESTION] Previous persistent selection after change some occurrence in it
Hello, first of all thank's for so amazing instrument as VMP !
And I have a question: I need to somehow effectively change different words in scattered blocks, so what I've tried:
- Select one with motion in visual mode, press ENTER to create persistent selection
- Do same with other blocks
- stand on first interested word and press G-O ( occurrences highlights ) and then C to change
- after that I need to change other word in the same presistent selection , but if I press G-V, it selects some strange range a little bit beyond cursor
Do you have any ideas what I did wrong or any suggestions for that case ?!
maybe because g v
is not so perfect.
My suggestion is to do next g o
to mark word BEFORE applying c
.
That works for your case? If not, give me actual text and result to let me understand scrnario correctly.
=== that block ===
foo some other text bar
===
=== not that block ===
foo some other text bar
===
=== and that block ===
foo some other text bar
foo some other text bar
foo some other text bar
===
i need to change foo to buz i need to change bar to qaz
I will make a GIF for you