Vim 9.2 Update: Enhanced Scripting, Improved Diff, and Experimental Wayland Support
Vim 9.2 Release Introduces Scripting Enhancements, Diff Improvements, and Experimental Wayland Support
The latest version of the Vim text editor, Vim 9.2, has been released with a range of incremental updates focused on scripting, usability, and cross-platform support. Key enhancements include improved completion behavior, expanded Vim9 language features, and new options for diff mode.
Insert Mode Completion Enhancements
Insert mode completion has been enhanced with fuzzy matching support, allowing users to complete words from a broader range of sources. Additional flags and configuration options have been introduced to control how completion matches are selected, ordered, and displayed.
Experimental Wayland Support
Experimental support for the Wayland display server has been added on Linux and other Unix-like systems, including graphical interface and clipboard integration. The release also follows the XDG Base Directory Specification for configuration file locations, allowing Vim configuration to be stored under $HOME/.config/vim.
Windows Updates
On Windows, the graphical interface has been updated with native dark mode support for menus and title bars, as well as higher-quality toolbar icons and improved fullscreen behavior. A new vertical tab panel option has been introduced, providing users with another way to manage open buffers and tabs.
Vim9 Scripting Language Updates
The Vim9 scripting language has gained new constructs, including enumerated types, generic functions, and a tuple data type. Class support has been expanded to include protected constructors and additional method compilation support, and built-in functions can now be used as object methods.
Diff Mode Updates
Diff mode has been updated with a new linematch algorithm to align changes between buffers using similar lines. A new diffanchors option allows users to define anchor points for independent diff sections, and additional options adjust how modified lines are highlighted and displayed.
Default Setting Changes
The release also includes changes to default settings, including an increased default history setting to preserve more command and editing history entries. Other default changes relate to cursor behavior, backspace handling, and diff settings.
Interactive Tutor Plugin
An interactive tutor plugin has been introduced, which can be launched from within the editor to guide users through core commands and workflows.
