.---------------------------------------------------------------. | This is not elvis' user manual! The real documentation for | | elvis is located in its online help facility. While running | | elvis, enter the command ":help" to see the table of contents.| ^---------------------------------------------------------------^1. About this file
This file is written in the HTML markup language. You can view it with any WWW viewer, such as Netscape. You can also use elvis 2.1 to view it; this version of elvis has the ability to view HTML documents, and print them.This file has many hypertext links. Use them! If you're using elvis 2.1 to browse this file, then hypertextual references will appear as underlined text. (Except on color PCs; since color video cards don't support underlining, hypertextual references will be colored -- white on red, by default.) To follow the hypertext link, move the cursor onto the underlined text and press (Enter). To go back, press (Control-T). The (Tab) key moves the cursor forward to the next hypertext reference.
If elvis 2.1 doesn't automatically start up in HTML mode when you view this file, then you'll need to force it into HTML mode by giving the command "
:display html".2. Differences between vi and elvis 2.1
Elvis is a superset of vi. It runs on more operating systems than vi, it is free, and you can obtain the source code. Elvis also has many new features. These new features are described in the first chapter of the online manual, which hypertext links to the other parts of the manual where those features are described in detail. Here's a just brief list:
:only
:browse command saves the cursor position on the stack and
then displays the table in the current window.
The :sbrowse command creates a new window showing that table.
:browse foo.c :sbrowse class:/Ball
:bbrowse command saves the cursor position on the stack and
then displays the table in the current window.
The :sbbrowse command creates a new window showing that table.
:bbrowse
:alias command creates an alias -- a new ex command which
you can implement via a series of existing ex commands.
Aliases can accept arguments, and perform complex operations.
Many sample aliases are included in the distribution.
:alias lower !% s/.*/\L&/
:error message type has the side-effect of
aborting any pending macros or aliases.
:if !< == !> :then error Address range required
:set, except that the options will be restored
to their previous value when the alias exits.
:alias total {
"Sum the integers in a range of lines
local t=0 report=0 nosaveregexp
!% s/[0-9]\+/let t=t+\1/x
eval !% c (t)
}
:try itself
always succeeds;
this is significant because when a command fails
(anywhere except as the argument of a :try command),
any pending macros or aliases are aborted.
:alias togglecase {
try !% s/.*[a-z].*/\U&
else !% s/.*/\L&
}
:let i = 1
:while i <= 10
:do {
calc i
let i = i + 1
}
:switch command evaluates an expression, and stores the
result in an internal variable.
Each :case command compares the switch value to a literal string;
if it matches then the remainder of the line is executed an an ex command.
If none of the cases match, then :default will run its ex command.
:switch os :case unix echo LF :case mac echo CR :default echo CR-LF
:e #1 :1,20 copy (1)$
readeol can be set to one of dos,
unix, mac, text, or
binary to indicate the newline translations that were
used to read a file into a buffer.
The writeeol option can be set to any of those values, or
the special value same to use the same translation as
each buffer was read with.
% command has been extended to match any
pairs of characers.
This option stores the list of character pairs.
.---------------------------------------------------------------. | This is not elvis' user manual! The real documentation for | | elvis is located in its online help facility. While running | | elvis, enter the command ":help" to see the table of contents.| ^---------------------------------------------------------------^1. About this file
This file is written in the HTML markup language. You can view it with any WWW viewer, such as Netscape. You can also use elvis 2.1 to view it; this version of elvis has the ability to view HTML documents, and print them.This file has many hypertext links. Use them! If you're using elvis 2.1 to browse this file, then hypertextual references will appear as underlined text. (Except on color PCs; since color video cards don't support underlining, hypertextual references will be colored -- white on red, by default.) To follow the hypertext link, move the cursor onto the underlined text and press (Enter). To go back, press (Control-T). The (Tab) key moves the cursor forward to the next hypertext reference.
If elvis 2.1 doesn't automatically start up in HTML mode when you view this file, then you'll need to force it into HTML mode by giving the command "
:display html".2. Differences between vi and elvis 2.1
Elvis is a superset of vi. It runs on more operating systems than vi, it is free, and you can obtain the source code. Elvis also has many new features. These new features are described in the first chapter of the online manual, which hypertext links to the other parts of the manual where those features are described in detail. Here's a just brief list:
:only
:browse command saves the cursor position on the stack and
then displays the table in the current window.
The :sbrowse command creates a new window showing that table.
:browse foo.c :sbrowse class:/Ball
:bbrowse command saves the cursor position on the stack and
then displays the table in the current window.
The :sbbrowse command creates a new window showing that table.
:bbrowse
:alias command creates an alias -- a new ex command which
you can implement via a series of existing ex commands.
Aliases can accept arguments, and perform complex operations.
Many sample aliases are included in the distribution.
:alias lower !% s/.*/\L&/
:error message type has the side-effect of
aborting any pending macros or aliases.
:if !< == !> :then error Address range required
:set, except that the options will be restored
to their previous value when the alias exits.
:alias total {
"Sum the integers in a range of lines
local t=0 report=0 nosaveregexp
!% s/[0-9]\+/let t=t+\1/x
eval !% c (t)
}
:try itself
always succeeds;
this is significant because when a command fails
(anywhere except as the argument of a :try command),
any pending macros or aliases are aborted.
:alias togglecase {
try !% s/.*[a-z].*/\U&
else !% s/.*/\L&
}
:let i = 1
:while i <= 10
:do {
calc i
let i = i + 1
}
:switch command evaluates an expression, and stores the
result in an internal variable.
Each :case command compares the switch value to a literal string;
if it matches then the remainder of the line is executed an an ex command.
If none of the cases match, then :default will run its ex command.
:switch os :case unix echo LF :case mac echo CR :default echo CR-LF
:e #1 :1,20 copy (1)$
readeol can be set to one of dos,
unix, mac, text, or
binary to indicate the newline translations that were
used to read a file into a buffer.
The writeeol option can be set to any of those values, or
the special value same to use the same translation as
each buffer was read with.
% command has been extended to match any
pairs of characers.
This option stores the list of character pairs.
.---------------------------------------------------------------. | This is not elvis' user manual! The real documentation for | | elvis is located in its online help facility. While running | | elvis, enter the command ":help" to see the table of contents.| ^---------------------------------------------------------------^1. About this file
This file is written in the HTML markup language. You can view it with any WWW viewer, such as Netscape. You can also use elvis 2.1 to view it; this version of elvis has the ability to view HTML documents, and print them.This file has many hypertext links. Use them! If you're using elvis 2.1 to browse this file, then hypertextual references will appear as underlined text. (Except on color PCs; since color video cards don't support underlining, hypertextual references will be colored -- white on red, by default.) To follow the hypertext link, move the cursor onto the underlined text and press (Enter). To go back, press (Control-T). The (Tab) key moves the cursor forward to the next hypertext reference.
If elvis 2.1 doesn't automatically start up in HTML mode when you view this file, then you'll need to force it into HTML mode by giving the command "
:display html".2. Differences between vi and elvis 2.1
Elvis is a superset of vi. It runs on more operating systems than vi, it is free, and you can obtain the source code. Elvis also has many new features. These new features are described in the first chapter of the online manual, which hypertext links to the other parts of the manual where those features are described in detail. Here's a just brief list:
:only
:browse command saves the cursor position on the stack and
then displays the table in the current window.
The :sbrowse command creates a new window showing that table.
:browse foo.c :sbrowse class:/Ball
:bbrowse command saves the cursor position on the stack and
then displays the table in the current window.
The :sbbrowse command creates a new window showing that table.
:bbrowse
:alias command creates an alias -- a new ex command which
you can implement via a series of existing ex commands.
Aliases can accept arguments, and perform complex operations.
Many sample aliases are included in the distribution.
:alias lower !% s/.*/\L&/
:error message type has the side-effect of
aborting any pending macros or aliases.
:if !< == !> :then error Address range required
:set, except that the options will be restored
to their previous value when the alias exits.
:alias total {
"Sum the integers in a range of lines
local t=0 report=0 nosaveregexp
!% s/[0-9]\+/let t=t+\1/x
eval !% c (t)
}
:try itself
always succeeds;
this is significant because when a command fails
(anywhere except as the argument of a :try command),
any pending macros or aliases are aborted.
:alias togglecase {
try !% s/.*[a-z].*/\U&
else !% s/.*/\L&
}
:let i = 1
:while i <= 10
:do {
calc i
let i = i + 1
}
:switch command evaluates an expression, and stores the
result in an internal variable.
Each :case command compares the switch value to a literal string;
if it matches then the remainder of the line is executed an an ex command.
If none of the cases match, then :default will run its ex command.
:switch os :case unix echo LF :case mac echo CR :default echo CR-LF
:e #1 :1,20 copy (1)$
readeol can be set to one of dos,
unix, mac, text, or
binary to indicate the newline translations that were
used to read a file into a buffer.
The writeeol option can be set to any of those values, or
the special value same to use the same translation as
each buffer was read with.
% command has been extended to match any
pairs of characers.
This option stores the list of character pairs.
.---------------------------------------------------------------. | This is not elvis' user manual! The real documentation for | | elvis is located in its online help facility. While running | | elvis, enter the command ":help" to see the table of contents.| ^---------------------------------------------------------------^1. About this file
This file is written in the HTML markup language. You can view it with any WWW viewer, such as Netscape. You can also use elvis 2.1 to view it; this version of elvis has the ability to view HTML documents, and print them.This file has many hypertext links. Use them! If you're using elvis 2.1 to browse this file, then hypertextual references will appear as underlined text. (Except on color PCs; since color video cards don't support underlining, hypertextual references will be colored -- white on red, by default.) To follow the hypertext link, move the cursor onto the underlined text and press (Enter). To go back, press (Control-T). The (Tab) key moves the cursor forward to the next hypertext reference.
If elvis 2.1 doesn't automatically start up in HTML mode when you view this file, then you'll need to force it into HTML mode by giving the command "
:display html".2. Differences between vi and elvis 2.1
Elvis is a superset of vi. It runs on more operating systems than vi, it is free, and you can obtain the source code. Elvis also has many new features. These new features are described in the first chapter of the online manual, which hypertext links to the other parts of the manual where those features are described in detail. Here's a just brief list:
:only
:browse command saves the cursor position on the stack and
then displays the table in the current window.
The :sbrowse command creates a new window showing that table.
:browse foo.c :sbrowse class:/Ball
:bbrowse command saves the cursor position on the stack and
then displays the table in the current window.
The :sbbrowse command creates a new window showing that table.
:bbrowse
:alias command creates an alias -- a new ex command which
you can implement via a series of existing ex commands.
Aliases can accept arguments, and perform complex operations.
Many sample aliases are included in the distribution.
:alias lower !% s/.*/\L&/
:error message type has the side-effect of
aborting any pending macros or aliases.
:if !< == !> :then error Address range required
:set, except that the options will be restored
to their previous value when the alias exits.
:alias total {
"Sum the integers in a range of lines
local t=0 report=0 nosaveregexp
!% s/[0-9]\+/let t=t+\1/x
eval !% c (t)
}
:try itself
always succeeds;
this is significant because when a command fails
(anywhere except as the argument of a :try command),
any pending macros or aliases are aborted.
:alias togglecase {
try !% s/.*[a-z].*/\U&
else !% s/.*/\L&
}
:let i = 1
:while i <= 10
:do {
calc i
let i = i + 1
}
:switch command evaluates an expression, and stores the
result in an internal variable.
Each :case command compares the switch value to a literal string;
if it matches then the remainder of the line is executed an an ex command.
If none of the cases match, then :default will run its ex command.
:switch os :case unix echo LF :case mac echo CR :default echo CR-LF
:e #1 :1,20 copy (1)$
readeol can be set to one of dos,
unix, mac, text, or
binary to indicate the newline translations that were
used to read a file into a buffer.
The writeeol option can be set to any of those values, or
the special value same to use the same translation as
each buffer was read with.
% command has been extended to match any
pairs of characers.
This option stores the list of character pairs.
.---------------------------------------------------------------. | This is not elvis' user manual! The real documentation for | | elvis is located in its online help facility. While running | | elvis, enter the command ":help" to see the table of contents.| ^---------------------------------------------------------------^1. About this file
This file is written in the HTML markup language. You can view it with any WWW viewer, such as Netscape. You can also use elvis 2.1 to view it; this version of elvis has the ability to view HTML documents, and print them.This file has many hypertext links. Use them! If you're using elvis 2.1 to browse this file, then hypertextual references will appear as underlined text. (Except on color PCs; since color video cards don't support underlining, hypertextual references will be colored -- white on red, by default.) To follow the hypertext link, move the cursor onto the underlined text and press (Enter). To go back, press (Control-T). The (Tab) key moves the cursor forward to the next hypertext reference.
If elvis 2.1 doesn't automatically start up in HTML mode when you view this file, then you'll need to force it into HTML mode by giving the command "
:display html".2. Differences between vi and elvis 2.1
Elvis is a superset of vi. It runs on more operating systems than vi, it is free, and you can obtain the source code. Elvis also has many new features. These new features are described in the first chapter of the online manual, which hypertext links to the other parts of the manual where those features are described in detail. Here's a just brief list:
:only
:browse command saves the cursor position on the stack and
then displays the table in the current window.
The :sbrowse command creates a new window showing that table.
:browse foo.c :sbrowse class:/Ball
:bbrowse command saves the cursor position on the stack and
then displays the table in the current window.
The :sbbrowse command creates a new window showing that table.
:bbrowse
:alias command creates an alias -- a new ex command which
you can implement via a series of existing ex commands.
Aliases can accept arguments, and perform complex operations.
Many sample aliases are included in the distribution.
:alias lower !% s/.*/\L&/
:error message type has the side-effect of
aborting any pending macros or aliases.
:if !< == !> :then error Address range required
:set, except that the options will be restored
to their previous value when the alias exits.
:alias total {
"Sum the integers in a range of lines
local t=0 report=0 nosaveregexp
!% s/[0-9]\+/let t=t+\1/x
eval !% c (t)
}
:try itself
always succeeds;
this is significant because when a command fails
(anywhere except as the argument of a :try command),
any pending macros or aliases are aborted.
:alias togglecase {
try !% s/.*[a-z].*/\U&
else !% s/.*/\L&
}
:let i = 1
:while i <= 10
:do {
calc i
let i = i + 1
}
:switch command evaluates an expression, and stores the
result in an internal variable.
Each :case command compares the switch value to a literal string;
if it matches then the remainder of the line is executed an an ex command.
If none of the cases match, then :default will run its ex command.
:switch os :case unix echo LF :case mac echo CR :default echo CR-LF
:e #1 :1,20 copy (1)$
readeol can be set to one of dos,
unix, mac, text, or
binary to indicate the newline translations that were
used to read a file into a buffer.
The writeeol option can be set to any of those values, or
the special value same to use the same translation as
each buffer was read with.