Show Menu
Cheatography

vim master Keyboard Shortcuts by

vim master

Verticals Moves

NG
go to line N
%
go to corres­ponding (, {, [
[
go to the end of a function
* (#)
go to next (previous) occurence of word

Horizontal Moves

0
go to column 0
^
go to first char
$
go to last colum
w (e)
go to the start (end) of the following word
b
go to the start of the previous word
f<char> (F<char>)
go to next (previous) occurence of <ch­ar>
t<c­har> (T<­cha­r>)
go to just before next (previous) occurence of <ch­ar>
; (,)
go to next (previous) occurence after a f or t
 

Edition

gU
uppercase
gu
lowercase
cw
change word
cc
change entire line
ce
change from cursor to end of word
c$
change to the end of line
ci<­cha­r>
change inside <ch­ar> (ex: ")
ca<­cha­r>
change around <ch­ar> (ex: ")
 

Macros

qa
record action in register a
q
stop recording
<N>@a
play "­a" <N> times

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi
 

Comments

Hi,

Nice cheat sheet.

I spotted a few minor things I would like to see changed:

- Use a capital letter at the start of the block names (sorry, it triggers my OCD),
- In "vertical moves", previ­oius should be previous,
- In the leftmost column of "edition", you could use the {{nobreak}} tag so words don't get truncated.

That's it.

Thanks again for your time !

TME520

Hi,

Thanks for the review !
I have updated my cheat sheet, if you see anything else, let me know.

Thomas

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          VI Editor Cheat Sheet
          Vim NERDTree Cheat Sheet
          cVim Keyboard Shortcuts