Today’s vims to practice

% - jump to matching brace
c$ - change (replace) to the end of line
ddp - swap current line with next
D - delete from cursor to end of line
:x - same as :wq! (forced write [save] and quit)
?pattern - search backward for pattern
N - repeat search in opposite direction
:e filename - Edit a file in a new buffer
:n **/*.rb - Open all Ruby files under the current directory, recursively
[shift-ctrl-b] filename - Edit a file in a new tab
gt - Next tab
gT - Previous tab
TMUX:
ctrl-b " - Split windows horizontally & create new session
ctrl-b | - Split windows vertically & create new session
ctrl-b [any arrow-key] Switch windows, up / down / left / right

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s