I turn on `vimode` in Geany, had it on before but have toggled it off/on, after upgrading to Ubuntu 22.04 and there is no Visual Mode anymore even though the cursor changes it still is in Insert Mode with no way to go to Visual Mode.
Please always post the version of Geany and GTK/Glib versions, just post the top few lines of `Help->Debug messages` we don't know what version makes what distro, especially (IIUC) an LTS like Ubuntu 22.04.
Sorry, I thought I had included the version.
Geany: 1.38 GTK/Glib: Using GTK+ v3.24.33 and GLib v2.72.1 runtime libraries
Debug Messages: ``` 13:37:01.771873: GLib-GIO DEBUG : _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’ 13:37:01.775554: GLib-GIO DEBUG : _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’ 13:37:01.824318: Geany INFO : Geany 1.38, en_US.UTF-8 13:37:01.824327: Geany INFO : GTK 3.24.33, GLib 2.72.1 13:37:01.824346: Geany INFO : OS: Pop!_OS 22.04 LTS (jammy) 13:37:01.824349: Geany INFO : System data dir: /usr/share/geany 13:37:01.824353: Geany INFO : User config dir: /home/tnolte/.config/geany 13:37:02.168508: Geany INFO : Loaded GTK+ CSS theme '/usr/share/geany/geany.css' 13:37:02.169883: Geany INFO : Loaded GTK+ CSS theme '/usr/share/geany/geany-3.20.css' 13:37:02.174839: Geany INFO : System plugin path: /usr/lib/x86_64-linux-gnu/geany 13:37:02.182203: Geany INFO : Added filetype CUDA (64). 13:37:02.182212: Geany INFO : Added filetype Groovy (65). 13:37:02.182217: Geany INFO : Added filetype Cython (66). 13:37:02.182220: Geany INFO : Added filetype Swift (67). 13:37:02.182224: Geany INFO : Added filetype Clojure (68). 13:37:02.182228: Geany INFO : Added filetype JSON (69). 13:37:02.182232: Geany INFO : Added filetype Meson (70). 13:37:02.182236: Geany INFO : Added filetype Nim (71). 13:37:02.182240: Geany INFO : Added filetype Graphviz (72). 13:37:02.182243: Geany INFO : Added filetype Kotlin (73). 13:37:02.182247: Geany INFO : Added filetype Genie (74). 13:37:02.182253: Geany INFO : Added filetype Scala (75). 13:37:02.182257: Geany INFO : Added filetype Arduino (76). 13:37:02.182261: Geany INFO : Added filetype TypeScript (77). 13:37:02.192420: Geany INFO : Loaded libvte from libvte-2.91.so.0 13:37:02.195005: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/codenav.so (Code navigation) 13:37:02.195385: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/defineformat.so (Define formatter) 13:37:02.199031: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/filebrowser.so (File Browser) 13:37:02.211595: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/git-changebar.so (Git Change Bar) 13:37:02.212327: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/htmlchars.so (HTML Characters) 13:37:02.213760: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/lineoperations.so (Line Operations) 13:37:02.214241: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/lipsum.so (Lipsum) 13:37:02.215339: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/overview.so (Overview) 13:37:02.215918: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/pairtaghighlighter.so (Pair Tag Highlighter) 13:37:02.216361: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/shiftcolumn.so (Shift Column) 13:37:02.217829: SpellCheck DEBUG : Initializing Enchant library version 2.3.2 13:37:02.221578: GLib DEBUG : unsetenv() is not thread-safe and should not be used after threads are created 13:37:02.230667: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/spellcheck.so (Spell Check) 13:37:02.231403: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/splitwindow.so (Split Window) 13:37:02.233064: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/updatechecker.so (Updatechecker) 13:37:02.236884: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/vimode.so (Vimode) 13:37:02.238012: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/pretty-printer.so (XML PrettyPrinter) 13:37:02.238371: Geany INFO : Loaded: /usr/lib/x86_64-linux-gnu/geany/xmlsnippets.so (XML Snippets) 13:37:02.243604: Geany INFO : unknown : None (UTF-8) 13:37:02.334786: (null) DEBUG : Name com.canonical.AppMenu.Registrar does not exist on the session bus ```
OK, sorry, noticed this bug report just now.
vimode in 1.38 is quite broken because of the problems described in https://github.com/geany/geany-plugins/issues/1136 (which I think I fixed in #1141 and #1139 but these haven't been merged yet).
The problem with the visual mode is new to me (unless by "visual mode" you actually mean "command mode" in which case it's the numlock-related problem that should be fixed by #1141). I seem to be able to enter visual mode from the command mode by `v` without any problem.
No I did mean Visual Mode, whereas when I type `v` I'm dropped into Insert Mode. However, based on what you described with the Command Mode issues I suspect that may ultimately be the issue.
based on what you described with the Command Mode issues I suspect that may ultimately be the issue.
It should be easy for you to test - does it help when you disable numlock?
OK, yep, the Num Lock key was the issue. As soon as I turned off the Num Lock things were working as expected.
OK, good, so this is what #1141 should fix.
Closed #1174 as completed.
github-comments@lists.geany.org