Cheatography
https://cheatography.com
Terminal and Vim commands
Vim%s/whatIsearch/whatIchange/g | change and replace all occurrences | ctrl + p | search for file | shift + v | select | o | insert a new line in the EM | ctrl + v, shift + i (write what you want), esc + esc | column selection mode | x | delete character | A | EM in the end line | dw | delete word (need to be in the begin) | d$ | delete from the CP until the EL | d0 | delete from the CP until the BL | d<amount>w | delete x words | dd | delete line | <amount>dd | delete x lines | u | undo | U | undo entire line | ctrl + r | redo | w | move between words | 0 | go to the begin of the line | $ | go to the end of the line | dd + p | delete line and past below where you are | r<character> | replace the current char with the one that you type | Yp | copy and paste line | shift + g | go to the end of the file | I (izão) | begin of the line EM | put everything in upper case | select (with v) and press U | put everything in down case | select (with v) and press u | substitute word in a file | :s | do a macro | qa + yourcommands + q, and then @a to do it again | correct words or use shortcut | :abbr Lunix Linux | repeats the last command | . | delete to the end of the line | S | changes case | ~ | replace something in column mode | ctrl + v, c (write what you want), esc + esc |
EM = edit mode
CP = current place
EL = end of the line
BL = begin of the line
| | vimctrl + g | show information about the file | c$ | delete the rest of the line and enter in IM | ce | delete the rest of the word and enter in IM | r<character> | replace the current caracter with what you type | <numberOfTheLine>G | back to the line you were | /<text> | search for the text after the place you are | n | go to the next occurrence | N | go to the previous occurrence | ?<text> | search for the text before the place you are | % (on a brackets or parentheses) | go to the corresponding bracket/parentheses | :s/thee/the | change the first occurrence in the current line from thee to the | :s/thee/the/g | change all the occurrences in the current line from thee to the | :%s/old/new/g | to change every occurrence in the whole file | :%s/old/new/gc | to find every occurrence in the whole file, with a prompt whether to substitute or not. | gg | moves to the first line of the file | :!<terminalcommand> | execute and show the result of a terminal command | :w | save changes to the file | :w <nomeofthefile> | create the file with the name typed | o | create a new line in the IM below where you are | O | create a new line in the IM above where you are | a | insert text after the cursor | e | go to the next word | R<text> | replace more than one character | v and then select what you want | enter the visual mode | y | copy what is selected | p | past the copied text | j$ | go to the end of the line below where you are | set hlc | highlight the matching phrases | <number>j | go x lines below | e | go to the end of the word | b | go to the previous word | w | go to the next word | { | next paragraph |
| | terminal and atomctrl + shift + r | reverse search (keep pressing to se the other results) | cmd + t | search a file | ctrl + ` | open/close a terminal | ctrl + tab | ctrl + shift + tab | go to next tab | go to previous tab | cmd + shift + ] | cmd + shift + [ | go to next tab | go to previous tab | cmd + \ | hide the tree view | ctrl + 0 | focus on the tree view / back to the file | a (in the tree view) | add a file | cmd + shift + p | search command and options | A: rename file | select file and press m |
| | othersE: cmd + shift + f | simple format | E: cmd + shift + h | insert a horizontal line |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment