Skip to main content

⌨️ Keymaps

These are the basic keybindings. Press Space to see all the key mappings.

Basic keymaps

Which key

You can show all key bindings by pressing Space

keymaps screenshot

Opening files

  • To open the file explorer press Space + r → Close it with q
  • To toggle the project tree press Space + e

Close buffer

To close the current buffer press Space + c

Opening code tree

To toggle the code tree (aerial) press Space + i

Show diagnostics

To see line diagnostics press Space + lD

Find word in project

To find a word inside your project press Space + ff

Find and replace in buffer

To find and replace something in the current buffer press Space + fb

Find and replace in project

To find and replace something in the entire project press Space + fr

Find recent files

To find recent files press Space + fo

Code actions

To use code actions press Space + la

Git client

To open the git client press Space + gg

  • To switch to the buffer on the left press [b
  • To switch to the buffer on the right press ]b

To switch to another window press Ctrl + h/l/k/j

Resizing window

To resize a window press Ctrl + left/down/up/right arrow keys

Code motions

  • To go to a posision of the visible screen press ENTER
  • To go and comment lines press gcc
  • To go to definition press gd
  • To go to reference press gr
  • To go to call tree press gj
  • To go to the lines where a variable is assigned press gs
  • To go to help set your cursor over something and press gh
  • To go to man press gm → To close man press Space + c
  • To go to file set your cursor over a file path and press gf
  • To go to the next change press ctrl + o
  • To go to the previous change press ctrl + i

Advanced keymaps

Debugger

To run (or continue) the debugger press F5

To stop the debugger press Shift + F5

To insert a breakpoint press F9

To step → press F10

To step ← press Shift+F10

To step into press F11

To step out press Shift+F11

Opening compiler

To toggle the compiler press F6

To redo the last selected action Shift+F6

To toggle the compiler results press Shift + F7

Opening terminal

To toggle terminal press F7

Unit testing

  • To run the unit test under the cursor press Space T + u
  • To run all units tests of the project press Space + T + a
  • To run e2e tests press Space + T + e

Code documentation

Normally NormalNvim auto generates the code documentation of your project

  • To open the documentation of your project press Space + d + d

Markdown preview

  • To preview a markdown file in the browser press Space + D + p
  • To preview a markdown file in the browser as a mental map press Space + D + m