Vim Basics
Vim BasicsThis tutorial is going to speak about vim basic use. Vim is a powerful text editor used in CLI (command line interface). Because linux uses a lot of configuration files, you'll often need to edit them and vim is a great tool to do so. Vim has a particular working method. Indeed there are to main mods : command and other mods. Command mod lets you select the mod you want to enter to, save, quit, copy, paste and that kind of things but you can't edit the file in this mod. There are several other mods. I'll only speak about those I often use. Insert mod : lets you insert text in a document. Shotcurt : "i" (insert where the cursor is) or "o" (insert at the beginning of the following line). Visual mod : permits to select the text like you would do with a mouse but using the keyboard instead of the mouse. Useful to copy several lines for example. Shotcurt : V Let's now speak about the command mod. A command begins with the symbol ":". When you are in another mod you can use the escape key (sometimes you'll need to hit it twice) to come back to command mod at any time.
save : :w I repeat these are very basic commands for vim, but they are very useful, and I hope this will help you configuring your Linux.
|



Recent comments
20 hours 22 min ago
21 hours 32 min ago
23 hours 25 min ago
1 day 24 min ago
1 day 39 min ago
1 day 3 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 21 hours ago
2 days 13 hours ago