- Capital letters do the opposite of small letters in command (Press shift to trigger capital letters)
_(underscore) to move the cursor at the beginning of line (doesn't switch to insert mode)0(zero) moves the cursor to the zeroth position of the line (doesn't switch to insert mode)
$(dollar) to move the cursor at the end of line (doesn't switch to insert mode)d$will delete from wherever your cursor is till the end of the linef<character>to move cursor to the first occurrence of<character>f(to move cursor to first occurence of(
t<character>to move cursor to upto but not on the first occurrence of<character>t(to move cursor to first occurence of(
- To repeat it, use
,(comma, goes backward) or;(semicolon, goes forward)feand then keep pressing;to walk through eache
- To indent lines, select them using the visual line mode
Shift + vand then use>to indent them right and<to indent them left
NvChad keybinds
- based on this video
space + c + hto open keybinds cheatsheet (same command to close the window)spaceis considered as the leader key (commands often start with this key)- Press the leader key
spaceand wait for a second, a window should appear suggesting potential commands.
space + t + h
- neovim comes with nvim-treesitter
- To install a language
:TSInstall <language_to_install> - A list of suupported languages
- To check which languages are installed
:TSInstallInfo
- To install a language
ctrl + n- Arrow keys to move cursor to a file and
return (enter)to open a file mto mark a fileato create a new file and type the new file namecto copy a filepto paste the filerto rename a filectrl + w + h/lorlarrow/rarrowto switch between file tree and editor
space + nto toggle line numbers on/offspace + r + nto toggle relative line numbers on/off- Once inside relative line number mode, can also press
space + nto show current line as0(adjust as per your liking)
- Once inside relative line number mode, can also press
space + f + fto open file search menu (across the entire project)space + f + bto open file search menu (across the currently opened files)
:vspfor vertical split:spfor horizontal splitctrl + h/j/k/lto toggle windows
tabto cycle left to rightshift + tabto cycle right to leftspace + xto close current tab (buffer)
space + vto open terminal (vertically)alt + vto toggle the terminal on/off
space + hto open terminal (horizontally)alt + hto toggle the terminal on/off
Amazing quickstart material! For me who is starting now with neovim/nvchad, this was exactly what I was looking for.
Thanks a lot!