What's new in Vim 8
2 Timers
This is another huge step forward and is related to the previous feature. With timers, you can call a function in Vim after a certain amount of time and have it performed only once or repeated at regular intervals. This may simply be a function built in to Vim, or you could use it to call a background process as described earlier.
So, what could you potentially use this for? Well, on its own it might not sound especially useful, but in the context of Vim scripts, it can do a lot. You could use it to make backups of the currently opened file or regularly add information to a status bar in the editor (such as a clock, or CPU load indicator, or a number of new email messages that have arrived). We expect plugin developers to make big use of this feature in particular.
3 Packages
Some people prefer to use Vim in its most vanilla form, maybe with a few customizations to the .vimrc
configuration file to make it look a bit prettier. Other users – especially developers – build up a massive armory of plugins and add-ons to turbocharge the editor, but until now, there has been no standard way to manage them. Sure, we have third-party solutions in the form of Pathogen, Vundle, and others, but wouldn't it be better to have this dealt with inside the editor itself?
Well, with Vim 8, native support for packages is now included. You won't need to install an add-on just to be able to install other add-ons – the process will be a lot simpler. At the time of writing, as Vim 8 had only just been released, many popular plugins had not been converted to use the new package format. But, we hope to see some of our favorites moved over to the format soon, including:
- Vim-Airline [3] – An attractive and versatile status bar (Figure 2).
- Solarized [4] – Smart and eye-friendly syntax highlighting schemes (Figure 3).
- Surround.vim [5] – Key bindings that work with parentheses, brackets, quotes, XML tags, and so on.
- NERD tree [6] – A tree-form filesystem exploration tool.
- Fugitive.vim [7] – Pretty much essential if you use Git.
4 Window IDs
If you're a casual Vim user but haven't delved into the more advanced features of the editor, you may not be aware of windows – or "viewpoints onto a buffer" in Vim parlance. You can open multiple windows in Vim to view different files or, indeed, work on the same file, and this feature is especially useful if you're not also rocking a terminal multiplexer such as Screen or Tmux.
Anyway, until now, windows in Vim were given numbers for identification, and as you opened and closed windows, these numbers would change. This was pretty frustrating if you remember that you had /etc/hosts
open in window 5 but, because of some other window operations, that has now moved to window 2. Well, in Vim 8, windows now have their own unique IDs, making them a lot easier to find and work with.
« Previous 1 2 3 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.