Last active
January 15, 2023 07:44
-
-
Save krmbzds/79bfb1d45cbbbd02e2b56949870d928d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim: noet ts=8 | |
gwip reflow paragraph | |
gJ join current line with the next without space | |
; repeat previous f, F, t, T movement, forwards | |
, repeat previous f, F, t, T movement, backwards | |
alternative: flit.nvim or clever-f.vim | |
I insert at the beginning of the line | |
<C-y> move up one line without moving the cursor | |
<C-e> move down one line without moving the cursor | |
also check: zz, <C-d>, <C-u> | |
5G go to line 5 (used to do :5) | |
H, M, L move to {top, middle, bottom} of screen | |
i normally use gg, G, {, } and TS textobjects motions | |
can't use H, L because it's bound to bufferline.nvim | |
D delete (cut) to the end of the line (used to do d$) | |
cl delete character and substitute text (using this instead of s) | |
cc change (replace) entire line (using this instead of S) | |
c$ change (replace) to the end of the line | |
cw change (replace) to the end of word | |
ciw change (replace) entire word (useful when cursor is mid-word) | |
W, E jump to {start, end} of next word (with punctuation) | |
B jump to start of previous word (with punctuation) | |
tx jump to before next occurrence of character x | |
g_ jump to last non-blank char of line (not sure if useful) | |
"xy yank into register x | |
"+y yank into system clipboard (useful if not using unnamedplus) | |
z= suggest corrections (normal mode) | |
<C-]> help mode: Jump to subject under cursor | |
<C-t> help mode: Return from the last jump | |
^ start of first word on current line | |
- start of previous line | |
<CR> start of next line | |
% cycle between matching brackets | |
\* next instance of word under cursor | |
# prev instance of word under cursor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment