3 ms·
vim: step 1: type ci(. step 2: type what you want to replace with. step 3: press ESC. notepad++: step 1: press Ctrl-H. step 2: type \([^)]*\). step 3: press
by Hello71 12y ago
vim:
step 1: type ci(.
step 2: type what you want to replace with.
step 3: press ESC.
notepad++:
step 1: press Ctrl-H.
step 2: type \([^)]*\).
step 3: press tab.
step 4: press (.
step 5: type what you want to replace with.
step 6: press ).
step 7: move hand to mouse.
step 8: move cursor to and click on "Regular expression".
step 9: press enter.
Do you have another example?
- therealunreal 12y agoNot implying that the vim way isn't faster but on any regular text editor you can: ctrl+right arrow once or twice, right arrow to skip the (, shift+end, shift+left arrow, then type.
- dllthomas 12y agoAnd of course, \([^)]*\) breaks if you have foo(bar(), x / (y + 1))