hkzfm-wqaaa-aaaad-qbdkq-cai.icp0.io
Open in
urlscan Pro
2a00:fb01:400:200:5000:5aff:fef2:9428
Public Scan
URL:
https://hkzfm-wqaaa-aaaad-qbdkq-cai.icp0.io/pensieve/vim-cheatsheet/index.html
Submission: On December 13 via api from US — Scanned from CH
Submission: On December 13 via api from US — Scanned from CH
Form analysis
0 forms found in the DOMText Content
Skip to Content LogoR 1. About 2. Blog 3. Experience 4. Work 5. Contact Resume 1. About 2. Blog 3. Experience 4. Work 5. Contact Resume * GitHub * LinkedIn * * Instagram * Twitter roobin.bhandari@gmail.com βAll memories VIM QUICKIES/ CHEATSHEET November 24, 2019Β βΒ #Vim#Editor#Linux GENERALLY HELPFUL STUFF Open a file for editing :e path/to/file.txt Return to Normal mode ESC or <CTRL>+C NAVIGATING AROUND TEXT You have to be in Normal mode. Use ESC to get out of Visual, Replace, or Insert mode. (left) h (down) j (up) k (right) l next word e Jump to the first line gg Jump to the last line G ENTERING TEXT Insert text before cursor i Insert text after cursor a WORKING WITH MULTIPLE FILES Open a file in a horizontal split :sp path/to/file.txt Open a file in a vertical split :vsp path/to/file.txt Move to a split window page <CTRL>+w and a direction key (h, j, k, or l) Move to next window pane <CTRL>w w Make selected pane bigger CTRL>w + (yes, you need the shift key for the plus) Make selected pane smaller <CTRL>w - SEARCHING Search for a word /<word> Go to next match n Find and replace on line :s/<find>/<replace> Find and replace globally :%s/<find>/<replace>//gc Go to first quote, replace text in quotes: ci" MANIPULATING TEXT cut the current line dd copy the current line yy paste below current line p paste above current line P Remove the character under cursor x Remove the character before cursor X Delete the word under cursor de Delete to the end of the line d$ Remove five lines starting here 5dd Copy five lines starting here 5yy indent this line >> indent five lines starting here 5>> Replace mode (overtype) r VISUAL ADVANCED SELECTION Visual mode v Visual Line mode V Visual Block mode <CTRL>v WORKING WITH NERDTREE Open the NERDTree :NERDTree Toggle the NERDTree on and off :NERDTreeToggle Open selected file <ENTER> Open selected file in horiz. split i Open selected file in vert. split v File menu m Help ? COMMANDS: Run a command :!<command> Open a shell :sh For interactive tutorial, try openvim.com Follow me on Github * GitHub * LinkedIn * * Instagram * Twitter THE SITE HAS SOME EASTER EGGS ππ°π₯ Theme by Brittany Chiang