Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 977 Bytes

File metadata and controls

72 lines (47 loc) · 977 Bytes

VIM cheat sheet

My VIM cheat sheet to handle interaction in terminal. Make sure the syntax highlighting is already enabled in your .vimrc to have a better user experience.

Menu

iTerm

move cursor with mouse click

option + click

search in your command history and auto complete

control + r

Tip: to cancel the search, just press control + k

General

Quit the terminal

:q

Quit the terminal in case you did some changes and want to discard these changes.

:q!

Enter edit mode

i

Editing

Delete(cut) a line (non edit mode)

dd

Copy(yank) a line (non edit mode)

y

Paste the line or previous copied visual (non edit mode)

p

Select text you want to copy and paste (non edit mode)

v

Tip: use y to copy the visual selection or d to cut it.