I participate a little, on and off, in the vim project, mostly via the vim_dev group on Google groups, and the vim/vim project on Github. I'm looking into an issue reported there with the mouse support for vim in the linux console (what you get by typing Ctrl-Alt-F2, F3, F4, F5 and F6; get back to X with Ctrl-Alt-F1, or Ctrl-Alt-F7 on older versions of Kubuntu). On my Disco it's very broken, driving vim to 100% CPU and processing one mouse event every key press. Trying to find what code change caused this I booted some old isos:
This suggests gpm support in vim has been broken for years on Ubuntu, which doesn't make sense, surely someone would have reported it. Maybe it's only on my hardware, but why then does it work on systemrescuecd? Mouse support in nano has no trouble.
I'd appreciate it if anyone here could try it out and report whether it works on their systems, whatever version of Linux they run. Neither vim with mouse support nor gpm are installed by default on Ubuntu, just vim-tiny which does not have mouse support. So if you want to check it out, install "vim" or "vim-gtk" or "vim-gnome", and gpm, and login to a Linux console, start vim and type
and see if you can position the cursor and select text with the mouse. Type :qa! to exit vim.
Code:
OS gpm kernel vim result Ubuntu 16.04.5 1.20.4 4.15.0 7.4.1689 fail Ubuntu 18.04 1.20.7 4.15.0 8.0.1453 fail Gentoo 1.20.7 4.14.70 8.0.1298 pass (The Gentoo was from systemrescuecd 5.3.1.)
I'd appreciate it if anyone here could try it out and report whether it works on their systems, whatever version of Linux they run. Neither vim with mouse support nor gpm are installed by default on Ubuntu, just vim-tiny which does not have mouse support. So if you want to check it out, install "vim" or "vim-gtk" or "vim-gnome", and gpm, and login to a Linux console, start vim and type
Code:
:set mouse=a :help
Comment