Lugaru's Epsilon
Programmer's
Editor

Context:
Epsilon User's Manual and Reference
   Commands by Topic
      Buffers and Files
         . . .
         Files
            Reading Files
            Read-Only Files
            Saving Files
            . . .
            File Name Case
         File Variables
            Directory-wide File Variables
            Vi/Vim File Variables
         Internet Support
            Secure Shell and SCP Support
            URL Syntax
         . . .

Previous   Up    Next
Directory-wide File Variables  Commands by Topic   Internet Support


Epsilon User's Manual and Reference > Commands by Topic > Buffers and Files > File Variables >

Vi/Vim File Variables

Epsilon also supports a few file variables using an alternative syntax used by the Vi/Vim family of editors.

Each such setting line (which Vi/Vim documentation refers to as a "modeline") must appear within five lines of the start or end of the file. They begin with a space, then the word "vi" (or alternatively, "vim" or "ex"), followed by a colon. One format follows this with the word "set" or "se", then a series of settings separated by spaces and terminated by a colon; other text on the line can surround this. The other format omits "set" and uses a series of settings separated by spaces or colons and terminated by the end of the line.

Here are examples of each type:

 /* vim: set textwidth=65 tabstop=8 sts=3 noexpandtab: */
 ; vi: tw=70 ts=4:softtabstop=2 et

The Vi/Vim settings Epsilon recognizes are:

 Vi Setting Name  Vi Synonym  Epsilon Equivalent
 
 textwidth=val  tw=val  margin-right=val
 tabstop=val  ts=val  tab-size=val
 shiftwidth=val  sw=val  tab-size=val
 softtabstop=val  sts=val  soft-tab-size=val
 expandtab  et  indent-with-tabs=0
 noexpandtab  noet  indent-with-tabs=1



Previous   Up    Next
Directory-wide File Variables  Commands by Topic   Internet Support


Lugaru Copyright (C) 1984, 2012 Lugaru Software Ltd. All Rights Reserved.