Neovim (LazyVim) key commands
LazyVim keymap documentation: https://www.lazyvim.org/keymaps.
Related to: notes / Neovim command line commands
All keybindings below are for normal mode otherwise stated.
Launch which-key
LazyVim uses which-key.nvim to show available
keybindings in a window. The window opens automatically. E.g. hit the leader key (<space>) in
normal mode and a window opens (for me) on the right showing the available key commands.
Launch fzf-lua
LazyVim uses fzf-lua as a replacement for telescope.nvim.
<leader>ff: find files (root dor)<leader>fF: find files (cwd)
Launch Neo-tree
Neo-tree is the file explorer that opens (for me) in a left-hand sidebar window.
<leader>e: opens the explorer on the root dir<leader>E: opens the explorer on the current working directory
Display diagnostics in a floating window
<C-wd>: show diagnostics under the cursor
Jump to previous or next section
Useful for jumping between headings in markdown files (and what prompted me to create this document).
[[: jump to previous section (heading)]]: jump to next section (heading)
Select a word
In normal mode, put cursor somewhere over word, then:
viw(visual in word)
This will leave you in visual mode
Make selected word uppercase or lowercase (visual mode)
With the word selected in visual mode:
U: uppercase the wordu: lowercase the word
Make single character uppercase or lowercase
Select the character with visual mode. (From normal mode, just hit v):
U: uppercase the characteru: lowercase the character