~

My neovim workflow

nvim-000

All configs are in my dotfiles.

Trick or treat

Search current word: *

Search multiple words:

:/\vword1|word2|word3

Replace word:

:%s/word1/word2/g

Delete all lines contain word:

:g/word/d

Delete all lines not contain word:

:g!/word/d

:v/word/d

Play macro (after selecting lines):

:norm! @a

Sort lines (after selecting lines):

:sort -u

Reverse lines (after selcting lines):

:!tail -r

Column-ize lines:

:!column -t

Jumpo

Basic:

Advance:

Keymap

Use both \ and ; as leader key:

vim.keymap.set("n", ";", "<Leader>", { remap = true })
vim.keymap.set("n", "'", "<Leader>", { remap = true })

Ground rules:

References / Thanks

Feel free to ask me via email or Mastodon.
Source code is available on GitHub Codeberg sourcehut Treehouse GitLab