Vimscript

From Seo Wiki - Search Engine Optimization and Programming Languages

Jump to: navigation, search

Vimscript, also Vim script, is the scripting language built into Vim.[1] Based on the ex editor language of the original vi editor, early versions of Vim added commands for control flow and function definitions. Since version 7, Vimscript also supports more advanced data types such as Lists and Dictionaries and (a simple form of) object-oriented programming. Built-in functions such as map() and filter() allow a basic form of functional programming, but Vimscript is mostly written in an imperative programming style.

Vim macros can contain a sequence of normal-mode commands, but can also invoke ex commands or functions written in Vimscript for more complex tasks. Almost all extensions (called plugins) of the core Vim functionality are written in Vimscript, but plugins can also utilize other scripting languages like Perl or Python (if support for them is compiled into the Vim binary).

Vimscript files are stored in plain text format and the file name extension is .vim.

References

  1. http://vimdoc.sourceforge.net/htmldoc/usr_41.html

External links

cs:Vimscript

Personal tools

Served in 0.044 secs.