Index

My neovim workflow

nvim-000

All configs are in my dotfiles.

Trick or treat

Search multiple words:

:/\vword1|word2|word3

Replace word:

:%s/word1/word2/g

Delete all lines contain word:

:g/word/d

Sort lines (after selecting lines):

:sort -u

Reverse lines (after selcting lines):

:!tail -r

Jumpo

Basic:

Advance:

Keymap

Use both \ and ; as leader key:

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

Misc keymap:

vim.keymap.set("n", "n", "nzz")
vim.keymap.set("n", "N", "Nzz")
vim.keymap.set("n", "q", ":q<CR>")

References / Thanks

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