1
1
I am trying learn the keybindings of vim one by one. I thing that I thought I should get good at early is to find a string of text and replace them with something else.
I had successfully done this on E-TextEditor on Windows where I will key in v/something/\rsomethingelse
for the desired effect.
but I find that isn't the case in the commmand mode in SublimeText 2. What happens in ST2 is that once I am in command mode, I press v which puts the editor in visual mode, then if I key in /, it enters search, then I key in the word "something", if I press "/", it will be part of the search query instead of ending the regexp, okay, I thought, then i press return to see if an instance of something gets selected, but it doesn't, nor does esc or any other key I can think of. Note that the instances of "something" do get found but just not selected for further operations.
Does this feature not exist in SublimeText2 or am I missing something?
Could you give an example of a "string of text" ... that is an awfully wide term, considering. – Rook – 2011-11-05T02:45:23.007
@Idigas for example: say if I want to change the string inside the print function print('awfullyWide') to print('notReally') – Nik So – 2011-11-05T08:04:05.800