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.
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
One number. one voicemail. Seize the lead with Sprint. Learn more
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video
Sprint 4G - The Ultimate Mobile Broadband
Click here
SAP-Business Objects Crystal Reports Server
Complete reporting without hidden costs. Free Trial







Recent comments
19 hours 15 min ago
22 hours 6 min ago
1 day 3 hours ago
1 day 3 hours ago
1 day 4 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 17 hours ago
1 day 18 hours ago