Pocketful of Lint

a personal blog

Vim tips

A list of handy keyboard shortcuts for working in the Vim text editor.

Command Vim mode Meaning
A
Normal Go to end of line + enter insert mode
10j
Normal Move cursor 10 spaces down (h j k l)
CTRL-a
Normal Increment next number on this line
CTRL-x
Normal Decrement next number on this line
1-CTRL-g
Normal View name of  file (1 means w/path)
CTRL-d
Insert Back up start of line by one tab stop
CTRL-r "
Insert Paste from default register

© 2024 Pocketful of Lint

Theme by Anders Norén