SHARE
Facebook X Pinterest WhatsApp

Scripting the Vim editor with Vmscript

Written By
thumbnail
Web Webster
Web Webster
May 8, 2009

[ Thanks to An Anonymous Reader for
this link. ]

“In this series of articles, we’ll look at the most
popular modern variant of vi, the Vim editor, and at the simple yet
extremely powerful scripting language that Vim provides.

“This first article explores the basic building blocks of Vim
scripting: variables, values, expressions, simple flow control, and
a few of Vim’s numerous utility functions.

“I’ll assume that you already have access to Vim and are
familiar with its interactive features. If that’s not the case,
some good starting points are Vim’s own Web site and various online
resources and hardcopy books, or you can simply type :help inside
Vim itself. See the Resources section for links.

“Unless otherwise indicated, all the examples in this series of
articles assume you’re using Vim version 7.2 or higher. You can
check which version of Vim you’re using by invoking the editor like
so:

vim –version

“or by typing :version within Vim itself. If you’re using an
older incarnation of Vim, upgrading to the latest release is
strongly recommended, as previous versions do not support many of
the features of Vimscript that we’ll be exploring. The Resources
section has a link to download and upgrade Vim.”


Complete Story

thumbnail
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Recommended for you...

5 Best Free and Open Source Text Expander Tools
webmaster
Jun 13, 2025
Grafito: Systemd Journal Log Viewer with a Beautiful Web UI
Bobby Borisov
Jun 12, 2025
FreeBSD Wants to Know a Few Things
brideoflinux
May 11, 2025
NVK enabled for Maxwell, Pascal, and Volta GPUs
Kara Bembridge
May 1, 2025
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.