abstract
| - The language still uses the original ed / ex / vi commands. These commands are standard tools today, in the current POSIX specification (Portable Operating System Interfaces), and scripts of ex commands can be used as diff and patch format, or to perform line-oriented text manipulation. You can see that ex scripts have a different purpose than most Vim scripts today. They are used for text manipulation tasks outside ex/vi/vim, unlike the kind of usage in current Vim scripts, which is to modify/improve/affect Vim itself. Lets consider the usual Vim scripts (plugin/syntax/compiler/indent and others) as "internal" scripts, and the ex scripts would be "command" or "external" scripts. Now the nice thing is, Vim can of course run ex scripts. Vim is also a command language that can run external command scripts (other than plugins and syntax files). And Vim can use the extended vimscript language, a super-set of ex, so Vim turns into a real interpreter, like the ones for other languages. Add to that that it can even invoke python and other languages, too. Needless to say, for any text processing task Vim can be a powerful command tool.
|