En esta entrada iré añadiendo algunos atajos de teclado que uso habitualmente en Windows, Linux y/o en programas específicos.
Win10:
Move window between multiple monitors
Win_button + Shift + arrow left or right
(https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts)
Restart Windows10 graphic driver
Ctrl + Shift + Win_button + B
(https://www.windowscentral.com/best-windows-10-keyboard-shortcuts)
Linux terminal:
Ctrl + A : first character of the line
Ctrl + E : last character of the line
Ctrl + R : command redo (start typing a command to autocomplete and Ctrl+R again to switch between commands)
Ctrl + arrow_left or arrow_right : move the cursor between words.
Vim (command line text editor):
a : start typing next to the actual position
i : start typing in the actual position
o : start typing in a new line from the actual position
O : start typing in a new line above the actual position
Ctrl + h : delete the character before the cursor during insert mode
Ctrl + w : delete word before the cursor during insert mode
Esc : exit from the editing mode
u : undo
dd : delete a line
2dd : delete (cut) 2 lines
dG : delete from actual position to the above.
dw : delete (cut) the characters of the word from the cursor position to the start of the next word
D : delete (cut) to the end of the line
d$ : delete (cut) to the end of the line
yy : yank (copy) a line
2yy : yank (copy) 2 lines
yw : yank (copy) the characters of the word from the cursor position to the start of the next word
y$ : yank (copy) to end of line
p : put (paste) the clipboard after cursor
P : put (paste) before cursor
:w : save the file
:q : quit to the terminal
:q! : quit without saving (changes will be lost)
:wq : save and quit to the terminal
:h : help
$ : jump to the end of line
^ : jump to the star of the line
0 : jump to the star of the line
:0 : jump to the first line
:4 : jump to line 4
4gg : jump to line 4
4G : jump to line 4
gg : jump to the first line
G : jump to the last line
(https://vim.rtorr.com/)