12 ms·
What is the world coming to, that you have to explain vi commands on HN?
by boredguy8 16y ago
What is the world coming to, that you have to explain vi commands on HN?
- ismarc 16y agoThat's technically just a regular expression (perl syntax). The vi equivalent would be :%s/_/*/g Which is, replace all occurrences on all lines of '_' with ' *' EDIT: Talk about formatting fail...
- jpablo 16y agoIsn't that actually ed/sed syntax?
- BrandonM 16y agoWhat is the world coming to when a correction has to get 3 levels deep before it's actually correct on HN? (And you have less points than either of the ones above you? Seriously?)
- ismarc 16y agoIndeed, quick memory recall failure on my part. It's ed syntax which bled into everything else via POSIX basic. However, given the limited number of symbols present, identification can be considered ambiguous :).
- cryptoz 16y agoI actually couldn't get the asterisk to appear without adding text below it, and I didn't have anything else to add. So I just added an explanation. Don't worry! I didn't feel like I needed to explain. But the formatting on HN is odd, and the rule on how to use asterisks is obscure and bizarre.
- deleted 16y ago[deleted]
- sprout 16y agos|s/_/*| s/_/*| And since I haven't debugged that regex even if it was legible, add two spaces to the beginning of a line to reproduce text verbatim. (Even if it's on one line.)