Linux Today: Linux News On Internet Time.
Search Linux Today
search.internet.com
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Become a Marketplace Partner

internet.commerce
Be a Commerce Partner














The Linux Channel at internet.com
Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Subscribe News
Subscribe PR
Subscribe Security

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 







Current Newswire:

Microsoft, other rivals slam Google Chrome OS

Intel Linux Graphics Shine With Fedora 12

Editor's Note: Do It Yourself "Cloud"

Google Chrome OS: First looks, first impressions

Kernel Log: Coming in 2.6.32 (Part 3) - Storage

TV Mythos Renewed: MythTV 0.22 with Many Improvements

Enhancing openSUSE 11.2: Adding Repositories and Packages

A Northwest Nobel option? (Linus for the Nobel Peace prize)

SECURITY: Cloud Computing Security Benefits, Risks and Recommendations

Keeping score in test-driven development with Python, PyLint, unittest, doctest,




Arcsight Engineer
The Computer Merchant, Ltd
US-DC-Washington

Justtechjobs.com Post A Job | Post A Resume
:Linux.ie: VI Tutorial III
Linux.ie: VI Tutorial III
Jul 8, 2000, 15 :42 UTC (0 Talkback[s]) (3464 reads)

(Other stories by Ken Guest)

[ Thanks to Ken Guest for this link. ]

"Some of the features that I am going to describe in this tutorial are only available in version 5 of ViM - and even then only if those features were enabled at compile time. To find out what version you are using, and what the active feature set is, use the :version command. By using this command, vim will display its version number and list the set of features that are available with it. Features named with a '+' in front were enabled at compile time, those with a '-' were not."

"The vimrc file is a plain text file which is looked at when you start ViM. It is hidden under Linux, in that it is called '.vimrc', and kept in your home directory. The file is used to store commands that you would otherwise have to type in each time that you start up the editor. You can only have one command per line, and these commands can be commented out with a double quote ('"'). For example, most vimrc files will have 'set wrapmargin=1' in them somewhere so that wordwrap is turned on automatically. With the abbreviation command that I covered in the last tutorial you can also use the vimrc file so that ViM will correct your more typical spelling mistakes."

"Over time, your vimrc file could grow to be quite big. It could also get a bit complicated to keep it all in synch - especially if you use vim on more than one machine and a portion of one vimrc is machine specific and you don't want to use an exact copy on the other machine. There is a nice solution to this scenario, break down the vimrc file into smaller files and use the 'source' command in your vimrc file. The source command takes the form of 'source '. What it does is read that file and execute the commands that are in it."

Complete Story

Related Stories:
dotcomma: vi For New Users(Jun 11, 2000)
RootPrompt.org: The VI Editor [Tutorial](Apr 05, 2000)
DevShed: Vi 101(Mar 28, 2000)
LinuxPR: Vim (Vi IMproved) version 5.6(Jan 16, 2000)
PSCU: Vi Strain(Nov 28, 1999)
linux.ie: vi tutorial, episode 2 - filters, word count and more(Oct 29, 1999)
Linux.ie: vi Tutorial(Sep 22, 1999)
LinuxPR: Vim version 5.5 has been released(Sep 21, 1999)



No talkbacks posted.
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!






..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs