What's the deal with Deno? We talk with a major contributor to find out. Listen now.

New answers tagged

2

Another approach is something like this: /MAY Enter cgn JUNE Esc Then use n to go forward, or N to go back, and . to replace.


1

Vimwiki also allows you to list all the tags together, with a single : separating multiple tags, such as in: :Word:Compund_Word:Other_Tag: To accomplish this replacement, you can use a :s command that will replace a sequence of whitespace with a single :, and additionally match the beginning and end of the line to insert an extra : on each end. You can ...


4

While on the line in question: :s/\w\+/:&:/g Breakdown \w\+ will match 1 or more word characters ([0-9A-Za-z_]). & has a special meaning in a replacement, depending on the value of 'magic' (default: on). It is replaced with the matched pattern. the g flag will perform this substitution for every occurrence on the line, not just the first. Non-...


Top 50 recent answers are included