- Install Rust Compiler
- Run Mason Install All after rust compiler is installed
<leader>xx- TodoTelescope<SHIFT>v- select whole liney- copyp- pasteu- undo<C-r>- redo:%s/old_text/new_text- find and replace (add a.before or after the text to encompass the space)/- findf5- overseertogglef6- overseerrun:%s/old_word/new_word/g- find and replace all<C-z>- Take nvim to the background - usefgto bring back to foreground<ZZ>- Save and quit<ZQ>- Quit and do not save
gpd- Go to definition previewgpt- Go to type definition previewgpi- Go to implementation previewgpD- Go to declaration previewgP- Close all preview windowsgpr- Preview references
| Motion | Description |
|---|---|
h |
Move left |
l |
Move right |
j |
Move down |
k |
Move up |
0 |
Move to beginning of line |
^ |
Move to first non-blank character of line |
$ |
Move to end of line |
g_ |
Move to last non-blank character of line |
| Motion | Description |
|---|---|
w |
Move to beginning of next word (word = letters, digits) |
W |
Move to next WORD (WORD = anything not whitespace) |
e |
Move to end of word |
E |
Move to end of WORD |
b |
Move to beginning of previous word |
B |
Move to beginning of previous WORD |
ge |
Move to end of previous word |
gE |
Move to end of previous WORD |
| Motion | Description |
|---|---|
{ |
Move to beginning of previous paragraph |
} |
Move to beginning of next paragraph |
( |
Move back a sentence |
) |
Move forward a sentence |
| Motion | Description |
|---|---|
Ctrl-d |
Scroll down half a screen |
Ctrl-u |
Scroll up half a screen |
Ctrl-f |
Scroll forward one screen |
Ctrl-b |
Scroll back one screen |
zz |
Center cursor line |
zt |
Move current line to top |
zb |
Move current line to bottom |
| Motion | Description |
|---|---|
/pattern |
Search forward for "pattern" |
?pattern |
Search backward for "pattern" |
n |
Repeat last search forward |
N |
Repeat last search backward |
* |
Search forward for word under cursor |
# |
Search backward for word under cursor |
g* |
Search forward for partial word |
g# |
Search backward for partial word |
| Motion | Description |
|---|---|
'a |
Jump to beginning of line of mark a |
`a |
Jump to exact cursor position of mark a |
'' |
Jump to line before last jump |
`` |
Jump to exact position before last jump |
gg |
Go to beginning of file |
G |
Go to end of file |
:n |
Go to line n |
% |
Jump to matching bracket (), {}, [] |
| Motion | Description |
|---|---|
V |
Start visual line selection |
Ctrl-v |
Start visual block selection |
gv |
Reselect last visual selection |
| Motion | Description |
|---|---|
H |
Move to top of screen |
M |
Move to middle of screen |
L |
Move to bottom of screen |
g0 / g^ |
Start of display line |
g$ |
End of display line |