Chrome, Shell and Vim Keyboard Shortcuts
2022-04-24

In this post, you will learn:

Chrome keyboard shortcuts

Tab and window shortcuts

ActionShortcut
Open a new windowCtrl + n
Open a new window in Incognito modeCtrl + Shift + n
Open a new tab, and jump to itCtrl + t
Reopen previously closed tabs in the order they were closedCtrl + Shift + t
Jump to the next open tabCtrl + Tab
Jump to the rightmost tabCtrl + 9
Open the previous page from your browsing history in the current tabAlt + Left arrow
Open the next page from your browsing history in the current tabAlt + Right arrow
Close the current tabCtrl + w

Google Chrome feature shortcuts

ActionShortcut
Show or hide the Bookmarks barCtrl + Shift + b
Open the History page in a new tabCtrl + h
Open the Downloads page in a new tabCtrl + j
Open the Find Bar to search the current pageCtrl + f or F3
Jump to the next match to your Find Bar searchCtrl + g

Mouse shortcuts

ActionShortcut
Open a link in new background tabCtrl + Click a link
Open a link in a new windowShift + Click a link
Make everything on the page biggerCtrl + Scroll your mousewheel up
Make everything on the page smallerCtrl + Scroll your mousewheel down

Shell

Cursor Movement Commands

KeyAction
Ctrl-aMove cursor to the beginning of the line.
Ctrl-eMove cursor to the end of the line.
Ctrl-fMove cursor forward one character;same as the right arrow key.
Ctrl-bMove cursor backward one character;same as the left arrow key.
Alt-fMove cursor forward one word.
Alt-bMove cursor backward one word.
Ctrl-lClear the screen and move the cursor to the top left corner. The clear command does the same thing.

Text Editing Commands

KeyAction
Ctrl-dDelete the character at the cursor location
Ctrl-tTranspose(exchange)the character at the cursor location with the one preceding it.
Alt-tTranspose the word at the cursor location with the one preceding it.
Alt-lConvert the characters from the cursor location to the end of the word to lowercase.
Alt-uConvert the characters from the cursor location to the end of the word to uppercase.

Cut And Paste Commands

KeyAction
Ctrl-kKill text from the cursor location to the end of line.
Ctrl-uKill text from the cursor location to the beginning of the line.
Alt-dKill text from the cursor location to the end of the current word.
Alt-BackspaceKill text from the cursor location to the beginning of the word. If the cursor is at the beginning of a word, kill the previous word.
Ctrl-yYank text from the kill-ring and insert it at the cursor location.

Vim

cw
x w b e
i I a A o O s S
0 $
gg G
d dd dw daw D dG dgg 
p yy 
u ctrl + r
:w !sudo tee %
:set nu
:%s/zempty/handsome/i
:%s/zempty/handsome
:%s/zempty/handsome/g
:%s/zempty/handsome/gc