~

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

Sort lines (after selecting lines):

:sort -u

Reverse lines (after selcting lines):

:!tail -r

Column-ize lines:

:!column -t

Jumpo

Basic:

Advance:

Fold

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