mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

357K
active users

Paweł Grzybek

Vim tip for today 🔥

There is a trick in the substitute command `:s` to use an empty search pattern to reuse the previous one. Example!

*
to use the word under the cursor as a search pattern

vap
visaul selection around the paragraph

:s//deno
substitute previous pattern "eslint_d" with "deno"

So many little tricks in this tip today!

@pawelgrzybek `#` is opposite of `*`

`*` searches word under cursor forward, `#` searches it backward.

Neither are specific to (n)vim. Both work in `vi` as well