commands

documentation for commands can be found here. currently using the space bar as <leader>

from normal mode

purposecommand
save and quitshift+z, shift+z
save without quitting:w
quit without savingshift+z, shift+q
insert mode (equivalent to standard mode of other text editors)i
search forward/thing ur searching for+enter
search backward?thing ur searching for+enter
go to next occurrence of last search/+enter or n
go to previous occurrence of last search?+enter or N
find and replace on current line:s/pattern/replace/g
repeat last substitution on current line&
find and replace in current file:%s/pattern/replace/g
find last search and replace in current file:%s//replace/g
undou
go to top of filegg
go to bottom of fileG
select all text in a fileggVG
paste into line belowp
delete selectiond
delete current linedd
move current line downddp
move current line upddkP
copy current line/selectionyy
insert line aboveO
insert line belowo
go to the beginning of the current line and switch to insert modeI
go to the end of the current line and switch to insert modeA
select the word under the cursorviw
open link under the cursorgx
move one word rightw
move one word leftb

from visual mode

enter visual mode by using the mouse to select something, or by pressing v (or V to select whole line)

purposecommand
toggle commenting of selecting lineshighlight lines, then gc
paste into selectionp

other

abbreviationmeaning
<.*>keystroke
<CR>enter (carriage return)
<C>control
<S>shift
  • the following characters need to be escaped when searching: / ~

configuring

using lazyvim. to configure lazyvim or install a new plugin, make a new lua file in ~/.config/nvim/lua/plugins. the format should look like

return {
	-- paste whatever stuff the author says to paste
	-- for using lazy.vim
}

for example, to make lazyvim use catppucin colors with a transparent background, run nvim ~/.config/nvim/lua/plugins/theme.lua and paste

return {
  {
    "LazyVim/LazyVim",
    opts = {
      colorscheme = "catppuccin",
    },
  },
  {
    "catppuccin",
    opts = {
      transparent_background = true,
    },
  },
}

or to install markdown-plus.nvim, run nvim ~/.config/nvim/lua/plugins/markdown-plus.lua and paste

return {
  {
    "yousefhadder/markdown-plus.nvim",
    ft = "markdown", -- Load on markdown files by default
    config = function()
      require("markdown-plus").setup({
        -- Configuration options (all optional)
        enabled = true,
        features = {
          list_management = true, -- Enable list management features
          text_formatting = true, -- Enable text formatting features
          headers_toc = true, -- Enable headers and TOC features
          links = true, -- Enable link management features
        },
        keymaps = {
          enabled = true, -- Enable default keymaps
        },
        filetypes = { "markdown" }, -- Filetypes to enable the plugin for
      })
    end,
  },
}

plugin sources: