Skip to content

baakeydow/nvimconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shortcuts Cheatsheet

Split Window Movement

  • CTRL + h: Move to the left split window
  • CTRL + j: Move to the below split window
  • CTRL + k: Move to the above split window
  • CTRL + l: Move to the right split window

Window Navigation

  • <Shift-Right>: Move to the next window on the right
  • <Shift-Left>: Move to the next window on the left
  • <Shift-Up>: Move to the next window above
  • <Shift-Down>: Move to the next window below

General Shortcuts

  • <C-g>: Toggle NERDTree
  • <Leader>=: Toggle Zoom
  • <Leader>[number]: Switch to tab [number]
  • <Leader>t: Open a new tab
  • <Leader>\: Create a vertical split
  • <Leader>n: Create a horizontal split
  • <Leader>o: Open available buffers
  • <Leader>g: Open available Git files
  • <Leader>h: Open recent files
  • <Leader><Leader>: Open recent commands
  • <Leader>f: Preview project files
  • <Leader>F: Open FZF
  • <Leader>v: Search in all project files
  • <Leader>]: Switch to the next buffer
  • <Leader>[: Switch to the previous buffer
  • <Leader>d: Close current buffer without closing the window
  • <Leader>c: Close buffer
  • <Leader>x: Force close current window
  • gb: Git blame

LSP Code Navigation

  • lgd: Go to definition
  • lgk: Show signature help
  • K: Show hover information
  • lgi: Go to implementation
  • lgc: Show incoming calls
  • lgt: Go to type definition
  • lgr: Show references
  • lgn: Rename
  • lgs: Show document symbols
  • lgw: Show workspace symbols

Debugger Shortcuts

  • ldb: Toggle breakpoint
  • ldi: Step into
  • ldu: Step out
  • ldo: Step over
  • ldc: Continue debugging
  • ldk: Terminate debugging

Miscellaneous Shortcuts

  • [x: Go to the previous diagnostic
  • ]x: Go to the next diagnostic
  • ]s: Show diagnostics
  • <Space>q: Open the Trouble plugin