└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # πŸ§‘β€πŸ’» VIM Code Editor 2 | 3 | Vim is a β€œmodal” text editor based on the vi editor written by Bill Joy in the 1970s for a version of UNIX. 4 | 5 | 6 | ## πŸ’³ What is modal? 7 | 8 | When you’re using most word processors and text editors, the alphanumeric keys (i.e., a through z, 1 through 9) are only used to input those characters unless they’re modified by a control key. In Vim, the mode that the editor is in determines whether the alphanumeric keys will input those characters or move the cursor through the document. 9 | 10 | 11 | ## πŸ“– The Basics of Moving in Vim 12 | 13 | - h β‡’ moves the cursor one character to the left. 14 | - j β‡’ moves the cursor down one line. 15 | - k β‡’ moves the cursor up one line. 16 | - l (L) β‡’ moves the cursor one character to the right. 17 | - 0 β‡’ moves the cursor to the beginning of the line. 18 | - $ β‡’ moves the cursor to the end of the line. 19 | - w β‡’ move forward one word. 20 | - b β‡’ move backward one word. 21 | - G β‡’ move to the end of the file. 22 | - gg β‡’ move to the beginning of the file. 23 | - `. β‡’ move to the last edit. 24 | 25 | 26 | ## πŸ“ Editing Vim Style 27 | 28 | - d β‡’ starts the delete operation. 29 | - dd β‡’ One line delete or cut 30 | - dw β‡’ will delete a word. 31 | - d0 β‡’ will delete to the beginning of a line. 32 | - d$ β‡’ will delete to the end of a line. 33 | - dgg β‡’ will delete to the beginning of the file. 34 | - dG β‡’ will delete to the end of the file. 35 | - u β‡’ will undo the last operation. 36 | - Ctrl-r β‡’ will redo the last undo. 37 | 38 | 39 | ## πŸ”Ž Searching and Replacing 40 | 41 | - /*text* *β‡’* search for *text* in the document, going forward. 42 | - n *β‡’* move the cursor to the next instance of the text from the last search. This will wrap to the beginning of the document. 43 | - N *β‡’* move the cursor to the previous instance of the text from the last search. 44 | - ?*text β‡’* search for *text* in the document, going backwards. 45 | 46 | 47 | ## πŸ“‘ Copying and Pasting 48 | 49 | - yy β‡’ To Copy a line 50 | - dd β‡’ To cut a line 51 | - p/P β‡’ Paste a line 52 | 53 | 54 | ## πŸ“š Saving and Quitting 55 | 56 | - :q β‡’ Quite 57 | - :q! β‡’ Quite and not save 58 | - :w β‡’ Save 59 | - :wq β‡’ Save and Quite 60 | - :wq! β‡’ To save Read only File (If have permission) 61 | - :x β‡’ Save and Quite {Not Recommended} 😳 62 | 63 | 64 | ## πŸ§‘β€πŸ’» Contributors 65 | - [@Ali Hossain](https://github.com/shovoalways/) πŸ‘‰ Follow me on Github 66 | 67 | ## πŸ₯° Follow me 68 | - [@Github](https://github.com/shovoalways/) 69 | - [@Facebook](https://facebook.com/shovoalways/) 70 | - [@Twitter](https://twitter.com/shovoalways/) 71 | - [@Instagram](https://instagram.com/shovoalways/) 72 | --------------------------------------------------------------------------------