News for hackers. Stuff that matters.
Re:Vim9 Script Feature-Complete by rectang on Saturday January 01, 2022 @12:32PM (#29760572)
I just tried out nvim in the MacOS Terminal, and a couple of things didn't work right away.

First, clicking on a location didn't set the cursor. Especially when editing large files, I like to scroll in MacVim, click to set the cursor and then start typing. While I can do things like note the line number and jump, or scroll by moving the cursor with key commands, I find those less efficient.

Second, selecting text using the mouse didn't produce a selection that Vim knew about. I use this feature all the time in MacVim, to produce a visual selection which I then rewrap using `gq`, filter by piping the selection through an autoformatter like `rustfmt`, etc. Again, I can do this using keyboard navigation exclusively to make visual selections, but I find it easier to select using the mouse.

Re:Vim9 Script Feature-Complete by thayne on Saturday January 01, 2022 @12:44PM (#29760697)
Interesting, all of those things work for me with alacritty, kitty, gnome terminal, etc. Maybe it is a limitation of MacOS Terminal? Or you need to explicitly enable `set mouse=a`?
Re:Vim9 Script Feature-Complete by 1_player on Saturday January 01, 2022 @01:03PM (#29760884)
Mouse support isn't enabled by default, on any terminal. You need set mouse=a
Re:Vim9 Script Feature-Complete by rectang on Saturday January 01, 2022 @01:20PM (#29761033)
Thank you, that solves the issue!

This seems to be something in Vim rather than a NeoVim-specific setting, as I tried the same thing with the standard Vim and it worked the same. The scrolling feel in the Terminal isn't as smooth as MacVim, but it's still pretty good.