Home

Software-update: Vim 9.2

Versie 9.2 van Vi IMproved, oftewel Vim, is kort geleden uitgekomen. Deze universele editor is ooit door Bram Moolenaar voor de Commodore Amiga ontwikkeld, maar is tegenwoordig ook voor Unix, Linux, macOS, OS/2, DOS en Windows beschikbaar. Vim wordt niet actief ontwikkeld en meestal zitten er een paar jaar tussen de verschillende versies. De releasenotes voor deze uitgave kunnen hieronder worden gevonden.

New Features in Vim 9.2
  • Comprehensive Completion: Added support for fuzzy matching during insert-mode completion and the ability to complete words directly from registers (CTRL-X CTRL-R). New 'completeopt' flags like nosort and nearest offer finer control over how matches are displayed and ordered.
  • Modern Platform Support: Full support for the Wayland UI and clipboard has been added. On Linux and Unix-like systems, Vim now adheres to the XDG Base Directory Specification, using $HOME/.config/vim for user configuration.
  • UI Enhancements: A new vertical tabpanel provides an alternative to the horizontal tabline. The MS-Windows GUI now supports native dark mode for the menu and title bars, along with improved fullscreen support and higher-quality toolbar icons.
  • Interactive Learning: A new built-in interactive tutor plugin (started via :Tutor) provides a modernized learning experience beyond the traditional vimtutor.
  • Vim9 Script Evolution

    Significant language enhancements including native support for Enums, Generic functions, and the Tuple data type. Built-in functions are now integrated as object methods, and classes now support protected _new() methods and :defcompile for full method compilation.

    Diff Improvements

    Vim 9.2 introduces significant enhancements to how changes are visualized and aligned in diff mode:

  • Linematch Algorithm: Includes the "linematch" algorithm for the 'diffopt' setting. This aligns changes between buffers on similar lines, greatly improving diff highlighting accuracy.
  • Diff Anchors: The new 'diffanchors' option allows you to specify anchor points (comma-separated addresses) to split and independently diff buffer sections, ensuring better alignment in complex files.
  • Inline Highlighting: Improves highlighting for changes within a line. This is configurable via the "inline" sub-option for 'diffopt'. Note that "inline:simple" has been added to the default 'diffopt' value.
  • Changed Default Values

    Several long-standing defaults have been updated to better suit modern hardware and workflows. These values have been removed from defaults.vim as they are now the internal defaults.

    Other Improvements and Changes

    Many bugs have been fixed since the release of Vim 9.1, including security vulnerabilities, memory leaks and potential crashes.

  • See the helpfile for other improvements: :h new-other-9.2
  • Changes to existing behaviour is documented at: :h changed-9.2
  • A few new functions, autocommands, ex commands and options have been added: :h added-9.2
  • The full list of patches is documented at: :h patches-9.2
  • Source: Tweakers.net

    Previous

    Next