ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Editors  >>  Vi Editor
 
 


 

 
 Vi Editor interview questions  Vi Editor Interview Questions
 Visual Studio IDE interview questions  Visual Studio IDE Interview Questions
 Editors AllOther interview questions  Editors AllOther Interview Questions
Question
How to create a .exrc file in vi editor?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to create a .exrc file in vi editor?
Answer
# 1
Introduction 

This article presents a sample .exrc file that can be used 
by users of the vi editor.  The .exrc file, located in your 
home directory, is the startup (or configuration) file for 
the vi editor. 

The intent of this brief article is to show some of the 
ways you can modify the configuration of the vi editor



Please note that the .exrc file contains commands that Vi 
reads when you first run it. The default directory that Vi 
looks in for the .exrc file is your home directory. 
However, if you run Vi from another directory containing 
a .exrc file, Vi will use the .exrc in that directory and 
bypass the home directory .exrc. You must precede control 
characters (like ^[ or ^M) with CONTROL-V. For example to 
enter ^M, type CONTROL-V CONTROL-M. 

 
Some important points for .exrc files: 

Do not allow any blank lines in the file or processing will 
stop on that line. 
Comments are introduced by starting a line with a double 
quote: " 
All directives, whether options, abbreviations, or key 
macros must all be typed on a single line. The listing 
below has had the lines broken up for the sake of 
readability. 
Control characters like [tab],[linefeed],[escape] can be 
inserted by first typing ^V (hold down Ctrl, and press V), 
followed by the character. For instance, for [tab], hold 
Ctrl and press V, release Ctrl, hit [tab]. You'll see ^I. 
This is evident in the listing below. 
For VIM the corresponsing file is .vimrc (_vimrc in case of 
windows).
***********************************************************
            Nipesh janghel
Nippucompu Dictionary developed
 
Is This Answer Correct ?    1 Yes 1 No
Nipesh
[Nippucompu Dictionary,computer Fundament]
 

 
 
 
Other Vi Editor Interview Questions
 
  Question Asked @ Answers
 
How to replace String "a" with String "b" in whole file of the vi editor? Niksun2
How to return to shell without leaving vi editor?  1
What is the command used to display line numbers in vi editor?  5
what are the different delete commands used in vi editor?  2
How to create a .exrc file in vi editor?  1
what is the command used to set margin in vi editor?  1
What is the format of vi command?  1
what are the two different modes in vi editor?  4
what is the command used to append text after current line?  2
What does the /text command do?  2
What is the difference between ZZ and :wq commands?  1
How to append a file to current file?  1
What is the command used to replace many characters?  2
what is the command used to delete current line in vi editor?  2
Which command is used to replace many characters?  1
How to enter from command mode to insertion mode?  1
what are the different commands used to quit from the vi editor?  1
what does the c$ command do from command mode?  1
 
For more Vi Editor Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com