Vim 9.2 Released (linuxiac.com)
- Reference: 0180794974
- News link: https://developers.slashdot.org/story/26/02/15/0741249/vim-92-released
- Source link: https://linuxiac.com/vim-9-2-debuts-full-wayland-and-xdg-base-directory-support/
> A big part of this update focuses on improving Vim9 Script as Vim 9.2 adds support for enums, generic functions, and tuple types.
>
> On top of that, you can now use built-in functions as methods, and class handling includes features like protected constructors with _new() . The :defcompile command has also been improved to fully compile methods, which boosts performance and consistency in Vim9 scripts.
>
> Insert mode completion now includes fuzzy matching, so you get more flexible suggestions without extra plugins. You can also complete words from registers using CTRL-X CTRL-R. New completeopt flags like nosort and nearest give you more control over how matches are shown. Vim 9.2 also makes diff mode better by improving how differences are lined up and shown, especially in complex cases.
Plus on Linux and Unix-like systems, Vim "now adheres to the XDG Base Directory Specification, using $HOME/.config/vim for user configuration," [3]according to the release notes .
And Phoronix M [4]cites more new features :
> Vim 9.2 features "full support" for Wayland with its UI and clipboard handling. The Wayland support is considered experimental in this release but it should be in good shape overall...
>
> Vim 9.2 also brings a new vertical tab panel alternative to the horizontal tab line.
>
> The Microsoft Windows GUI for Vim now also has native dark mode support.
You can find the new release [5]on Vim's "Download" page .
[1] https://www.vim.org/vim-9.2-released.php
[2] https://linuxiac.com/vim-9-2-debuts-full-wayland-and-xdg-base-directory-support/
[3] https://www.vim.org/vim-9.2-released.php
[4] https://www.phoronix.com/news/Vim-9.2-Released
[5] https://www.vim.org/download.php
Refreshing Update (Score:2)
Thankfully, vim has received some useful enhancements in its latest release.
The same can't be said for many commercial products that have had so many AI doodads crammed in that they look, and are just as useful, as a night out in Vegas.
Not even that (Score:2)
I'm still using whatever version of vim came with my initial distro install since as far as basic text editing goes it's been feature complete for decades. I'm sure some people like writing vim scripts to do... drawing a blank frankly.... but only once in my 30 year career have I met someone who did and that was just to do some company specific search and replacing.
Re: (Score:2)
Do they? I'd have thought they just use ports, or something like it
Sticky notes on the wall (Score:3)
This reminds me of the mid-1990s, when vi / vim was the best editor around. (Or was it emacs???) Anyway, I used to write down on a sticky note, command sequences I was trying to memorize, and stick it to the wall next to my desk. When I got one command sequence down, I'd pick another one, so I didn't have to keep looking at man pages. For years, vim was one of very few editors that could do regex search and replace, and that alone kept me using it for a long time. But these days, most decent editors, like Notepad++, can do pretty much everything vim could do, so I finally quit installing it. AND I don't have to write down command sequences on sticky notes any more, because there is, you know, a GUI.
Re: Sticky notes on the wall (Score:2, Insightful)
Yeah, that GUi will be useful on an ssh connection.
Re: (Score:3)
In the GUI world, we have Remote Desktop.
Re: (Score:2)
Not to decent servers.
Re: (Score:2)
I suppose it depends on how you define "decent." If decent means, "servers with no GUI" then of course you are right.
Re: Sticky notes on the wall (Score:1)
ssh can do X11 forwarding so yes it is sometimes if both environments are set up correctly
Re: Sticky notes on the wall (Score:1)
Yes but x11 is racist or something so the lizard people are pushing real hard to replace it with wayland which does not do forwarding to a remote over ssh.
Re: (Score:2)
I think they're expected to either use Remote Desktop, or if the applications themselves depend on it, something like xwayland
Re: (Score:2)
Yeah, bcos there are TCP ports dedicated to x11, namely ports 6000-6063. But w/ all the DEs moving to Wayland, that would no longer be an option, since this new architecture requires using Remote Desktop if one wants to create a secure connection
Re: (Score:2)
> Yeah, that GUi will be useful on an ssh connection.
I access my VNC GUI through a ssh connection, option: -L5901:127.0.0.1:5901
Re: (Score:2)
Yes with the NppVim plugin installed, Notepad++ can pretty much do everything vim can do.
Yes GUIs are quite useful, even for editors. gVim has a very nice one that does a good job of exposing features through the GUI without removing the power of the vim's command mode.
Fortunately all the good editors out there have plugins or bindings available to implement vim keyboard bindings, at least enough of it to be fast and comfortable. In fact I just recently learned about the VibreOffice plugin for LibreOffice,
Re: (Score:2)
From what I read on NppVim's GitHub page, and it looks like it mainly lets you pretend you are in Vim while in NPP. In other words, use Vim-style keystroke commands. This misses the point of using a GUI editor. Sure, you can make it react to all those keystrokes you memorized while learning to use Vim, but native NPP is capable of doing pretty much all of the actual editing *tasks* that Vim could do, but without having to memorize keystrokes. Oh, sure, there are probably some things NppVim adds that are act
Re: (Score:2)
The one reason nano is so much easier to use is that one can use cursor keys instead of having to memorize random keys to move the cursor. Aside from that, even for programmers, I don't get vim: the one time I had to use a programming editor, I used something called crisp, which would allow one to highlight and select an entire column in a file to manipulate text - that too using a combination of menu commands and cursor keys (DOS had an equivalent editor called Brief, from Borland)
Re: (Score:2)
vi/nvi/vim have used the cursor keys to move the cursor for decades now. I find nano/pico annoying. vim gets the job done, locally and over ssh connections.
Incredible (Score:3)
It's incredible, to me, that Vim is still under any sort of development. I would not have thought that it would need anything further.
Re: (Score:2)
Well they need to update it to keep it running on modern machines.
But new features? That indeed also wonders me.
Re: (Score:2)
But new features? That indeed also wonders me.
I don't know about 9, but a relatively recent (in terms of vi(m)'s age) would be async connections to external subprocesses. This allows things like the LSP integration which allows things like ALE plugin which gives realtime linter feedback in the editor. Like syntax highlighting but much deeper.
It's really useful!
It wonders me (Score:2)
> That indeed also wonders me.
Wow, I haven't heard that grammatical construction for ages; Pennsylvania Dutch dialect.
Either you've spent a lot of time in central Pennsylvania, or you speak a language that use German grammatical rules.
Vim Startup (Score:2)
> Vim "now adheres to the XDG Base Directory Specification, using $HOME/.config/vim for user configuration,"
My vim config is in a bash startup file:
alias vim=/usr/bin/emacs
Still developed (Score:3)
They cannot quit development.
Re: (Score:2)
You can't be serious, it is
> :q
Re: Still developed (Score:2)
Thank you! Vim and Emacs are the main reason I have to reboot my computer. Impossible to exit!
Re: Still developed (Score:2)
A really poor troll, try harder.
Re: (Score:3)
True, I just hit ctrl-F2 to get another shell and kill the vim process like everybody else does. I used to login through ssh from another computer to kill the vim process before I learned about ctrl-F2 from my Unix mentor.
Re: (Score:3)
To be sure use:
esc :q
or sometimes:
esc :q!
Re: Still developed (Score:2)
You've summed up how my journey to learn Unix and Linux began. In the early days of the internet we used SLIP or PPP connections, and usually that came with a shell account (typically some BSD variant). I was a young tech working primarily on DOS, Windows 3.1, and OS/2. I started playing around with that shell account. I tried to figure out how to display the contents of a text file. I figured out many *mix commands were two letters, and eventually typed "vi" and pressed enter. I had to call my ISP tech sup
Re: (Score:2)
Displaying the contents of a text file was/is relatively easy: just type $ cat foo.bar and you'd get the contents of the file. If you wanted to edit it, though, your 2 options were ed and vi. The former was a line editor, so one couldn't do much, unless the file in question had just a line. Vi was the other option, and it was a pain to use, unless one knew all the commands
why vim? (Score:2)
If somebody has X or Wayland and a DE on top of it, why would s/he want to use vim? Why not just use one of the editors that come w/ the DE? Hopefully, the DE devs leave that utility alone, whatever else they do w/ the rest of the project
Even if X or Wayland weren't there, I'd rather use something like nano - hope it comes as a part of the default installation, than vim
Other thing I'm wondering - are they competing w/ Notepad and Notepad++ to make it equally vulnerable?
Re: (Score:2)
> If somebody has X or Wayland and a DE on top of it, why would s/he want to use vim? Why not just use one of the editors that come w/ the DE?
Because vim has super-powerful features for development. I still prefer it to any IDE I've ever used over the past 30 years. (Although I will say that VS Code is better for read-only browsing of large code bases. Other than that use, I find its behavior to be infuriating, and its "vim mode" is crap.)
vim is also superior to nano-type editors for any nontrivial editing of non-code files, with macros and powerful commands that can reorganize thousands of lines instantly. Notepad++ is also OK for that work, but
Re: (Score:2)
they're trying hard to get to the vii-th release, been stuck on vi for years.
Re: (Score:2)
If they keep at it, they will eventually implement emacs.