Skip to content

Instantly share code, notes, and snippets.

@sefatanam
Forked from m0hadang/README.md
Created October 23, 2024 16:55
Show Gist options
  • Save sefatanam/b63541d8e6d5e4f68bcd330ad7d981ab to your computer and use it in GitHub Desktop.
Save sefatanam/b63541d8e6d5e4f68bcd330ad7d981ab to your computer and use it in GitHub Desktop.
vim(NVim, LazyVim, NvChad) shortcut

vim(NVim, LazyVim) ShortCut

NVim

  • intellisense : tab(can use in command(:) mode)
  • keymap site :

Lazy Vim Shortcut

vim

  • ctl + home/end : ctrl + h/l
  • home : shift + 6
  • start/end of current scope : shift + 5
  • end : shift + 4
  • continuously replace : shift + r
  • select line : shift + v
  • select inner block : shift + v + i + {
  • select block until next blank : shift + v + { or }
  • replace all : :%s/foo/bar/g

window

  • 'sp'lit : : + sp, vsp

  • switch window : ctrl + h,j,k,l

  • move tab : tab, shift + tab

NvimTree

  • open/close NvimTree : ctrl + n
  • focus NvimTree : space -> e
  • 'a'ppend file : a
  • 'c'opy 'f'ile : c -> p
  • 'r'ename file : r
  • 'd'elete file : d
  • file informawtion : ctrl + k
  • fold directory : backspace
  • resize : ctrl + left/right

NvChad Shortcut

  • change 'th'eme : space -> t -> h
  • 'f'ind 'a'll : space -> f -> a
  • 'f'ind 'f'iles : space -> f -> f
  • 'f'ind 'b'uffers(tabs) : space -> f -> b
  • 'h'orizontal or 'v'ertical terminal : space -> h, v
  • 'c'omment : v + (space + /), (g + c)
  • comment current block : g + b + b
  • 'ch'eat sheet : space -> c -> h, leadkey : space
  • 'g'o to 'd'efinition : g + d/Dctrl + ]
  • close tab : space + x
  • window line number : space + n, (r + n), 'r'elative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment