Skip to content

Latest commit

History

103 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

LilSuperUser's Dotfiles

Nvim Dotfiles

Keymaps

even though keymaps are available and very easy to understand after installing the configuration, here's the keymaps for the lazy (pun intended) crowd

how a keymap works? <space>mf for example means pressing the leader key i.e. space (default) then press m and then f


Table of Contents


General

FunctionKeymapMode
Move lines down in visual selectionJv
Move lines up in visual selectionKv
Join current line with one belowJn
Scroll up (cursor centered)<C-d>n
Scroll down (cursor centered)<C-u>n
Next search match (centered)nn
Previous search match (centered)Nn
Clear search highlight<leader>Cn
Indent selection left (keep selection)<v
Indent selection right (keep selection)>v
Format current buffer with LSP<leader>fn
Format whole file or range (conform)<leader>mfn/v
Replace current word globally<leader>rn
Make current file executable<leader>Xn
Execute current file<leader>XXn
Build project in build directory<leader>mkn
Build and run tests<leader>rtn
Copy file path to clipboard<leader>fpn
Toggle LSP diagnostics<leader>lxn
Buffer Local Keymaps (which-key)<leader>?n

Clipboard

FunctionKeymapMode
Paste without replacing clipboard<leader>Px
Paste without copying selectionpv
Delete without yankingxn
Delete to black hole (char)<leader>Dsn/v
Delete to black hole (line)<leader>Dln/v

Tabs

FunctionKeymapMode
Open a new tab<leader>ton
Open current file in new tab<leader>tOn
Close current tab<leader>txn
Move to next tab<leader>tnn
Move to previous tab<leader>tpn

Splits

FunctionKeymapMode
Split window vertically<leader>svn
Split window horizontally<leader>shn
Make splits equal size<leader>sen
Close current split<leader>sxn
Move to left split<C-h>n
Move to below split<C-j>n
Move to up split<C-k>n
Move to right split<C-l>n

Snacks

FunctionKeymapMode
TODO/Fix/FIXME<space>pTn
Look through ToDo comments<space>ptn
Next todo comment]tn
Previous todo comment[tn
Disable Indentated Lines<space>icn
Enable Indentated Lines<space>ion
Help Pages<space>vhn
Pick & Switch Git Branches<space>gbrn
Pick Color Schemes<space>thn
Search Man Pages<space>pmn
Search Registers<space>p'n
Search Keymaps<space>pkn
Grep a visual selection<space>pvsv
Grep Something<space>pwn
Find nvim config files<space>pcn
Find Files<space>pfn
Close Buffer<space>dBn
Fast Rename Current File<space>Rn
Git diff (hunks)<space>gdn
Lazygit Logs<space>gln
Lazygit<space>lgn

Linting

FunctionKeymapMode
Trigger linting for current file<space>ln

Mini (Files/Comment/Trailspace)

FunctionKeymapMode
Open MiniFiles explorer<leader>en
Open MiniFiles at current file<leader>En
Toggle hidden files<leader>Hn
Trim trailing whitespace<leader>tsn
Clear trailing whitespace highlight<leader>tcn

Telescope

FunctionKeymapMode
Fuzzy find recent files<leader>prn
Fuzzy find notifications<leader>pnn
Find word under cursor<leader>pWsn
Switch themes<leader>thsn

Harpoon

FunctionKeymapMode
Add file to harpoon<leader>han
Toggle harpoon quick menu<leader>hln
Jump to file 1<leader>1n
Jump to file 2<leader>2n
Jump to file 3<leader>3n
Jump to file 4<leader>4n
Remove file 1<leader>d1n
Remove file 2<leader>d2n
Remove file 3<leader>d3n
Remove file 4<leader>d4n

Git (Fugitive)

FunctionKeymapMode
Open Git status<leader>ggn
Git push (fugitive buffer)<leader>Pn
Git pull with rebase (fugitive buffer)<leader>pn
Set upstream (fugitive buffer)tn
Toggle git blame<leader>gbln

Git (Gitsigns)

FunctionKeymapMode
Next hunk]hn
Previous hunk[hn
Stage hunk<leader>gsn/v
Reset hunk<leader>grn/v
Stage buffer<leader>gSn
Reset buffer<leader>gRn
Undo stage hunk<leader>gun
Preview hunk<leader>gpn
Toggle line blame<leader>gBn
Diff this<leader>gdn
Diff this ~<leader>gDn
Select hunkiho/x

Git (Worktree)

FunctionKeymapMode
List git worktrees<leader>gwtn
Create git worktree<leader>gwcn

Todo comments

FunctionKeymapMode
Jump to next]tn
Jump to prev[tn

Trouble

FunctionKeymapMode
Workspace diagnostics<leader>xwn
Document diagnostics<leader>xdn
Symbols/todos<leader>xtn
Location list<leader>xln
Quickfix list<leader>xqn

Multi-Cursor

FunctionKeymapMode
Disable and Enable Cursors<c-q>n
Line Skip Cursor (+1)<space>jn
Line Skip Cursor (-1)<space>kn
Add cursor above/below the main cursor (-1)<A-k>n
Add cursor above/below the main cursor (+1)<A-j>n
Add or skip adding a new cursor by matching word/selection (Match Forward)<A-n>n
Add or skip adding a new cursor by matching word/selection (Skip a match forward)<A-s>n
Add or skip adding a new cursor by matching word/selection (Match Backward)<A-N>n
Add or skip adding a new cursor by matching word/selection (Skip a match backward)<A-S>n
Add and remove cursors with control + left click<c-leftmouse>n
Add and remove cursors with control + left click<c-leftdrag>n
Add and remove cursors with control + left click<c-leftrelease>n
Select a different cursor as the main one (previous)<left>n
Select a different cursor as the main one (next)<right>n
Delete the main cursor<A-x>n
Enable and clear cursors<esc>n

Color-Picker

FunctionKeymapMode
Toggle color highlighter<leader>ccn

LSP Commands

FunctionKeymapMode
Show LSP info:LspInfon
Stop LSP clients:LspStopn
Start LSP:LspStartn
Restart LSP:LspRestartn
Show LSP referencesgRn
Go to declarationgDn
Show LSP definitionsgdn
Show LSP implementationsgin
Show LSP type definitionsgtn
Code actions<leader>vcan/v
Smart rename<leader>rnn
Show buffer diagnostics<leader>Dn
Show line diagnostics<leader>dn
Show documentation (hover)Kn
Restart LSP (buffer)<leader>rsn
Signature help (insert mode)<C-h>i

Clasp (Auto-pairing)

FunctionKeymapMode
Wrap next (forward)<C-;>n/i
Wrap previous (backward)<C-'>n/i
Undo in insert mode<C-u>i

Oil (File Explorer)

FunctionKeymapMode
Open parent directory-n
Open cwd_n
Open parent directory (floating)<leader>-n
Toggle hidden filesg.n
Toggle trashg\\n
Show helpg?n
Preview<C-p>n
Change directory`n
Change directory (scope: tab)~n
Change sortgsn
Open externalgxn
Refresh<C-r>n
Closeqn

Folding (Ufo)

FunctionKeymapMode
Open all foldszRn
Close all foldszMn
Fold / Unfold at cursorzan

Misc

FunctionKeymapMode
Wrap with abbreviation<leader>xen/v
Clear notifications<leader>cnn
Toggle undo-tree<leader>un

About

This repo contains dotfiles of my linux system

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages