Show Menu
Cheatography

My nvim keymaps Cheat Sheet by

Cheatsheet of all my custom keymaps for nvim setup

Harpoon

add file
<le­ade­r>a
toggle quick menu
<C-­e>
navigate to file 1
<C-­h>
navigate to file 2
<C-­t>
navigate to file 3
<C-­n>
navigate to file 4
<C-­s>

lsp zero

Autoco­mpl­etion keymaps
select prev item
<C-­p>
select next item
<C-­n>
confirm selection
<C-­y>
complete
<C-­Spa­ce>
lsp keymaps over code
go to definition
n gd
hover over symbol under cursor
n K
find by symbol in workspace
n
<le­ade­r>vws
open error diagno­stics in float window
n
<le­ade­r>vd
go to next diagno­stics
n
[d
go to next diagno­stics
n
]d
code action available on current symbol position
n
<le­ade­r>vca
show all files where symbol under cursor is referenced
n
<le­ade­r>vrr
rename all appear­ences of symbol under cursor
n
<le­ade­r>vrn
displays signature info about symbol under cursor
i
<C-­h>
 

Telescope

find files
<le­ade­r>pf
find files registered in git
<C-­p>
find files by string using Grep >
<le­ade­r>ps
help tags
<le­ade­r>vh
Plugin to navigate project

Fugitive [git manipu­lat­ions]

git status
<le­ade­r>gs

Undotree [plugin to manipulate file history]

toggle undotree
<le­ade­r>u

Remaps

Move selected items up
v
J
Move selected items down
v
K
Rewrite selected symbols from buffer without rewriting buffer
n
<le­ade­r>p
copy to clipboard
n, v
<le­ade­r>y
revrite all ouccra­ncies of symbol under cursor in file
n
<le­ade­r>s

Surround

surr*o­und­_words
ysiw)
(surro­und­_words)
*make strings
ys$"
"make string­s"
[delete ar*ound me!]
ds]
delete around me!
remove <b>HTML t*ags<­/b>
dst
remove HTML tags
'change quot*es'
cs'"
"­change quotes­"
<b>or tag* types<­/b>
csth1<­CR>
<h1­>or tag types<­/h1>
delete­(fu­ncti*on calls)
dsf
function calls
The three "­cor­e" operations of add/de­let­e/c­hange can be done with the keymaps ys{mot­ion­}{c­har}, ds{char}, and cs{tar­get­}{r­epl­ace­ment}, respec­tively. For the following examples, * will denote the cursor position
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.