How to search and replace vi within a range in sublime text

I turned on vintage mode on sublime text .. but there are some important vim commands that are missing. so let me say that I want to search and replace in this way

:10,25s/searchedText/toReplaceText/gc 

so I want to search searchedTextand replace it with toReplaceTextfrom strings 10to 25and query every time (i.e. yes / no) ..

How can I do this using Sublime Text? every time I click :, it gives me this funny menu .. in any way around this?

+5
source share
5 answers

If you would like to see vim in action, try the other way around; those. include exalted things in vim.

2 , : subvim vim multiple cursors ( , vim).

, ;)

+4

, . , , , - :

  • searchedText 10
  • hit cmnd/ctrl D, Sublime
  • , , cmnd/ctrl K
  • , , , Sublime , .
+3

VintageEx Vim- , . , , . , Vim, , , , , , Vintage, , , Vimmer.

, , , , , ST :

:3,5s/foo/bar/g
:.,5s/bar/foo/g
:,5/foo/bar/g
:,+5/bar/foo/g

, /c.

+2

. ,

full vi search / replace functionality is possible with ruby mine IDE, after installing ideavim plugin. Idea perfect for rubies on rails.

0
source

The plugin with the name vintageousoffers more features, including a search function. It is available inpackage control

0
source

All Articles