Skip to content
Neovim IDE

Keyboard shortcuts

All the shortcuts below are configured in the F4NT0/nvim repository.

The <leader> key is mapped to SpaceSpaceSpace, so Space H S means pressing Space, then H, then S, one key at a time.

Inside Neovim itself you can see this list with the :Khelp command.

Global shortcuts

Shortcuts that do not belong to a specific plugin: window navigation, resizing, and visual editing.

CommandDescription
EscapeEscapeEscapeClears the highlight from the last search
Control + HControl + HControl + HMoves the cursor to the left window
Control + JControl + JControl + JMoves the cursor to the window below
Control + KControl + KControl + KMoves the cursor to the window above
Control + Right ArrowControl + Right ArrowControl + Right ArrowIncreases the window width
Control + Left ArrowControl + Left ArrowControl + Left ArrowDecreases the window width
Control + Up ArrowControl + Up ArrowControl + Up ArrowIncreases the window height
Control + Down ArrowControl + Down ArrowControl + Down ArrowDecreases the window height
Greater Than SignGreater Than SignGreater Than Sign (visual mode)Indents while keeping the selection
Less Than SignLess Than SignLess Than Sign (visual mode)Removes indentation while keeping the selection
JJJ (visual mode)Moves the selected lines down
KKK (visual mode)Moves the selected lines up

Barbar

Tab bar for open buffers, with pinned tabs and quick navigation.

CommandDescription
Alt + CommaAlt + CommaAlt + CommaGoes to the previous tab
Alt + PeriodAlt + PeriodAlt + PeriodGoes to the next tab
Alt + Less Than SignAlt + Less Than SignAlt + Less Than SignMoves the current tab one position to the left
Alt + Greater Than SignAlt + Greater Than SignAlt + Greater Than SignMoves the current tab one position to the right
Alt + 1Alt + 1Alt + 1 to Alt + 6Alt + 6Alt + 6Jumps straight to tab 1 through 6
Alt + PAlt + PAlt + PPins the current tab
Alt + CAlt + CAlt + CCloses the current tab

LazyGit

Terminal interface for Git, opened inside a floating window.

CommandDescription
Control + LControl + LControl + LOpens LazyGit in a floating window

Neo-tree

Tree-style file explorer, opened on the left side of the screen.

CommandDescription
Control + FControl + FControl + FOpens the file explorer
Control + XControl + XControl + XCloses the file explorer

Telescope

Fuzzy search for files and for content inside the project.

CommandDescription
Control + QControl + QControl + QSearches for files in the project
Control + SControl + SControl + SSearches for text inside the files (live grep)

ToggleTerm

Floating terminal, plus a separate terminal for running .NET projects.

CommandDescription
Control + TControl + TControl + TOpens or closes the floating terminal
SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenT SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenT SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenT Closes the default terminal
SpacestarlightKbd.kbd.keywords.thenD SpacestarlightKbd.kbd.keywords.thenD SpacestarlightKbd.kbd.keywords.thenD Runs dotnet run on the current C# file or project
SpacestarlightKbd.kbd.keywords.thenX SpacestarlightKbd.kbd.keywords.thenX SpacestarlightKbd.kbd.keywords.thenX Closes the .NET terminal

Shortcut help (nui)

UI library used to open this shortcut manual inside Neovim.

CommandDescription
:KhelpOpens the shortcut manual in a floating window

Treesitter

Syntax highlighting and incremental selection based on the structure of the code.

CommandDescription
Control + SpaceControl + SpaceControl + SpaceStarts the selection and expands it to the next code block

nvim-surround

Adds, removes, and changes delimiters (parentheses, quotes, HTML tags) around text.

CommandDescription
ystarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenistarlightKbd.kbd.keywords.thenwstarlightKbd.kbd.keywords.thenRight Parenthesis ystarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenistarlightKbd.kbd.keywords.thenwstarlightKbd.kbd.keywords.thenRight Parenthesis ystarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenistarlightKbd.kbd.keywords.thenwstarlightKbd.kbd.keywords.thenRight Parenthesis Wraps the word in parentheses: word becomes (word)
ystarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenDollar SignstarlightKbd.kbd.keywords.thenQuotation Mark ystarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenDollar SignstarlightKbd.kbd.keywords.thenQuotation Mark ystarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenDollar SignstarlightKbd.kbd.keywords.thenQuotation Mark Wraps text in quotes until the end of the line: some text becomes "some text"
dstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenRight Square Bracket dstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenRight Square Bracket dstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenRight Square Bracket Removes the surrounding brackets: [delete] becomes delete
dstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thent dstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thent dstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thent Removes the HTML tag around the text
dstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenf dstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenf dstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenf Removes the surrounding function call: call(arg) becomes arg
cstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenApostrophestarlightKbd.kbd.keywords.thenQuotation Mark cstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenApostrophestarlightKbd.kbd.keywords.thenQuotation Mark cstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thenApostrophestarlightKbd.kbd.keywords.thenQuotation Mark Changes single quotes to double quotes: 'word' becomes "word"
cstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thentstarlightKbd.kbd.keywords.thenhstarlightKbd.kbd.keywords.then1starlightKbd.kbd.keywords.thenEnter cstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thentstarlightKbd.kbd.keywords.thenhstarlightKbd.kbd.keywords.then1starlightKbd.kbd.keywords.thenEnter cstarlightKbd.kbd.keywords.thensstarlightKbd.kbd.keywords.thentstarlightKbd.kbd.keywords.thenhstarlightKbd.kbd.keywords.then1starlightKbd.kbd.keywords.thenEnter Changes the HTML tag to an h1

Comment.nvim

Comments and uncomments lines and code blocks according to the file’s language.

CommandDescription
gstarlightKbd.kbd.keywords.thencstarlightKbd.kbd.keywords.thenc gstarlightKbd.kbd.keywords.thencstarlightKbd.kbd.keywords.thenc gstarlightKbd.kbd.keywords.thencstarlightKbd.kbd.keywords.thenc Comments or uncomments the current line
gstarlightKbd.kbd.keywords.thenbstarlightKbd.kbd.keywords.thenc gstarlightKbd.kbd.keywords.thenbstarlightKbd.kbd.keywords.thenc gstarlightKbd.kbd.keywords.thenbstarlightKbd.kbd.keywords.thenc Comments or uncomments the current block
gstarlightKbd.kbd.keywords.thencstarlightKbd.kbd.keywords.theno gstarlightKbd.kbd.keywords.thencstarlightKbd.kbd.keywords.theno gstarlightKbd.kbd.keywords.thencstarlightKbd.kbd.keywords.theno Inserts a comment on the line below
gstarlightKbd.kbd.keywords.thencstarlightKbd.kbd.keywords.thenO gstarlightKbd.kbd.keywords.thencstarlightKbd.kbd.keywords.thenO gstarlightKbd.kbd.keywords.thencstarlightKbd.kbd.keywords.thenO Inserts a comment on the line above
gstarlightKbd.kbd.keywords.thencstarlightKbd.kbd.keywords.thenA gstarlightKbd.kbd.keywords.thencstarlightKbd.kbd.keywords.thenA gstarlightKbd.kbd.keywords.thencstarlightKbd.kbd.keywords.thenA Inserts a comment at the end of the current line

nvim-cmp

Autocompletion with suggestions from the LSP, the buffer, paths, and snippets.

CommandDescription
Control + KControl + KControl + KSelects the previous suggestion
Control + JControl + JControl + JSelects the next suggestion
Control + BControl + BControl + BScrolls the documentation up
Control + FControl + FControl + FScrolls the documentation down
Control + SpaceControl + SpaceControl + SpaceOpens the suggestions manually
Control + EControl + EControl + ECancels the autocompletion
EnterEnterEnterConfirms the selected suggestion

todo-comments

Highlights comments such as TODO, FIX, HACK, WARN, PERF, and NOTE and lists all of them in the project.

CommandDescription
SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenD SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenD SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenD Lists all TODO, FIX, HACK, WARN, PERF, and NOTE comments
:TodoQuickFixShows the same list in the quickfix window

Gitsigns

Shows Git changes in the side of the file and lets you work with each changed chunk (hunk).

CommandDescription
SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenS SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenS SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenS Stages the current hunk
SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenR SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenR SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenR Resets the current hunk
SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenShift + S SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenShift + S SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenShift + S Stages all hunks in the file
SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenShift + R SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenShift + R SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenShift + R Resets all hunks in the file
SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenP SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenP SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenP Shows a preview of the hunk under the cursor
SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenB SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenB SpacestarlightKbd.kbd.keywords.thenHstarlightKbd.kbd.keywords.thenB Shows the author of the current line (blame)
Right Square BracketstarlightKbd.kbd.keywords.thenc Right Square BracketstarlightKbd.kbd.keywords.thenc Right Square BracketstarlightKbd.kbd.keywords.thenc Goes to the next changed hunk
Left Square BracketstarlightKbd.kbd.keywords.thenc Left Square BracketstarlightKbd.kbd.keywords.thenc Left Square BracketstarlightKbd.kbd.keywords.thenc Goes to the previous changed hunk

LSP

Language Server client, responsible for code navigation, renaming, and diagnostics.

CommandDescription
SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenH SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenH SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenH Shows the documentation under the cursor (hover)
SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenD SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenD SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenD Goes to the definition
SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenShift + D SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenShift + D SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenShift + D Goes to the declaration
SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenR SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenR SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenR Lists the references
SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenI SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenI SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenI Lists the implementations
SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenShift + R SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenShift + R SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenShift + R Renames the symbol
SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenA SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenA SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenA Shows the available code actions
SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenF SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenF SpacestarlightKbd.kbd.keywords.thenCstarlightKbd.kbd.keywords.thenF Formats the current file
SpacestarlightKbd.kbd.keywords.thenSstarlightKbd.kbd.keywords.thenD SpacestarlightKbd.kbd.keywords.thenSstarlightKbd.kbd.keywords.thenD SpacestarlightKbd.kbd.keywords.thenSstarlightKbd.kbd.keywords.thenD Shows the diagnostic under the cursor
SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenL SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenL SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenL Sends all diagnostics to the location list

nvim-dap

Debugger with a visual interface for breakpoints and step-by-step execution.

CommandDescription
SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenT SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenT SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenT Toggles a breakpoint
SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenS SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenS SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenS Starts the session or continues execution
SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenC SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenC SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenC Closes the dap-ui panels
SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenO SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenO SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenO Runs the line and steps over functions (step over)
SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenI SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenI SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenI Steps into the function (step into)
SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenU SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenU SpacestarlightKbd.kbd.keywords.thenDstarlightKbd.kbd.keywords.thenU Steps out of the function (step out)

easy-dotnet

.NET CLI commands straight from Neovim, such as run, test, build, and managing secrets.

CommandDescription
SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenD SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenD SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenD Runs dotnet run
SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenT SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenT SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenT Runs dotnet test
SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenB SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenB SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenB Runs dotnet build
SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenR SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenR SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenR Runs dotnet restore
SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenS SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenS SpacestarlightKbd.kbd.keywords.thenNstarlightKbd.kbd.keywords.thenS Opens the user secrets manager

neotest

Runs tests straight from the editor and shows the results in a panel.

CommandDescription
SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenN SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenN SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenN Runs the test nearest to the cursor
SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenF SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenF SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenF Runs all tests in the current file
SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenA SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenA SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenA Runs all tests in the project
SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenS SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenS SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenS Shows or hides the test summary panel
SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenO SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenO SpacestarlightKbd.kbd.keywords.thenTstarlightKbd.kbd.keywords.thenO Opens the output of the last test

leetcode.nvim

Solve LeetCode problems without leaving Neovim.

CommandDescription
SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenL SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenL SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenL Opens the main menu (:Leet menu)
SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenD SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenD SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenD Opens the question of the day
SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenR SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenR SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenR Opens a random question
SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenP SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenP SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenP Opens the problem list (:Leet list)
SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenT SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenT SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenT Runs the current solution against the test cases
SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenS SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenS SpacestarlightKbd.kbd.keywords.thenLstarlightKbd.kbd.keywords.thenS Submits the current solution