atom-vim-mode-plus icon indicating copy to clipboard operation
atom-vim-mode-plus copied to clipboard

[QUESTION] Previous persistent selection after change some occurrence in it

Open ocoka opened this issue 6 years ago • 3 comments

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 ?!

ocoka avatar Apr 10 '18 21:04 ocoka

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.

t9md avatar Apr 10 '18 22:04 t9md

=== 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

ocoka avatar Apr 11 '18 08:04 ocoka

peek 2018-04-11 11-42

ocoka avatar Apr 11 '18 08:04 ocoka