5 ms·
| the author typed a paragraph and then had to replace every “e” with a “|” As a vim user, just thinking about doing this manually makes me tear up.
by darkerside 9y ago
| the author typed a paragraph and then had to replace every “e” with a “|”
As a vim user, just thinking about doing this manually makes me tear up.
- jandrese 9y agoI would write a C program to do it before I would go and manually select/replace every instance using a mouse.
- setq 9y agoDepends if I'm being paid by the hour or the job :)
- bluGill 9y agoI assume you would call it sed?
- jandrese 9y agoI was trying to illustrate how far down the list I would go before resorting to manually selecting each character with a mouse. Sed is much higher on the list. That's a little unfair. If I was only changing one or two characters then the mouse is fine. If I'm changing more than about 10-20 there will be a hunt for an alternative.
- deleted 9y ago[deleted]
- tcfunk 9y agoBut what if, in the midst of writing this program, you need to rename all occurrences of a variable?
- deleted 9y ago[deleted]
- suprfnk 9y agoYeah, especially because it's just a simple :%s/e/|/g away.
- Double_a_92 9y agoWhy do you have to do it manually? In every common IDE you can mark your paragraph press Ctrl + R, and enter your search and replace values.