⌃⇧⌘←
and⌃⇧⌘→
expand/shrink selection
.
repeat last commandz
undoctrl
+r
redo
cw
– Change from cursor to the end of the wordcaw
– Change around the word, including trailing whitespaceciw
– Change inside the word, excluding trailing whitespaceci"
- Change in Quotecc
- replace (change) line⌥
+b
- toggle boolean (requires Toggle Boolean extension)
0
go to start and$
for endo
- enter Edit mode in a new line after the current line- word motions (
w
,e
,b
)
g d
- Go to Definition<<
>>
- Indent and outdent
sab
or Sab
- Search to the right or left for ab
;
- Next result
<leader>
is \
in vscode.
\\f
find {char}
down
\\F
find {char}
up
Default Mapping | Details
---------------------|----------------------------------------------
<Leader>f{char} | Find {char} to the right. See |f|.
<Leader>F{char} | Find {char} to the left. See |F|.
<Leader>t{char} | Till before the {char} to the right. See |t|.
<Leader>T{char} | Till after the {char} to the left. See |T|.
<Leader>w | Beginning of word forward. See |w|.
<Leader>W | Beginning of WORD forward. See |W|.
<Leader>b | Beginning of word backward. See |b|.
<Leader>B | Beginning of WORD backward. See |B|.
<Leader>e | End of word forward. See |e|.
<Leader>E | End of WORD forward. See |E|.
<Leader>ge | End of word backward. See |ge|.
<Leader>gE | End of WORD backward. See |gE|.
<Leader>j | Line downward. See |j|.
<Leader>k | Line upward. See |k|.
<Leader>n | Jump to latest "/" or "?" forward. See |n|.
<Leader>N | Jump to latest "/" or "?" backward. See |N|.
<Leader>s | Find(Search) {char} forward and backward.
| See |f| and |F|.
Also check out vim-surround
T
search open tabs
o
search URL, bookmark and history (use O
for new tab)
gg
scroll to top
G
scroll to bottom
d
scroll half page down
u
scroll half page up
[[
or ]]
next or previous link
f
overlays all links on screen, allowing you to type the letters to follow the link in the same tab
F
same as above, but new tab
W
open link in new window
/
+ search term + <enter>
finds in the page
n
goes to next result
N
goes to previous result
yy
copy the URL of the current page to the clipboard
ge
edit URL
x
close tab
X
restore tab
<<
move tab left
>>
move tab rigth
H
go back
l
go forward
gs
go to page source
?
help
gg
scroll to top
G
scroll to bottom
f
overlays all links on screen, allowing you to type the letters to follow the link in the same tab
F
same as above, but new tab
W
open link in new window
/
+ search term + <enter>
finds in the page
n
goes to next result
N
goes to previous result
yy
copy the URL of the current page to the clipboard