SUMMARY Kate has an action to toggle commenting using "ctrl+/". In Vim and NeoVim this is done using the "gc" movement. It would be nice to have this movement in VIMode in kate, since it's muscle memory for many vimmers. References: https://github.com/neovim/neovim/pull/28176 https://github.com/numToStr/Comment.nvim https://github.com/tpope/vim-commentary (the original) Motions aren't super necessary as long as it also works from visual mode.
This seems like it wouldn't be too much work to implement
If somebody wants to add it, merge requests welcome.
Git commit 4b9b8c5f9085c398ed52a05a2a99e79c06484913 by Waqar Ahmed, on behalf of Kshetrimayum Abo. Committed on 04/03/2025 at 08:40. Pushed by waqar into branch 'master'. Add "gc" motion for vim to Toggle Comment Used similar code for toggle comment by pressing shortcut "Ctrl+/" and mapped it to "gc" in vim visual mode to toggle comment FIXED-IN: 6.12 M +10 -0 autotests/src/vimode/modes.cpp M +6 -0 src/vimode/modes/normalvimode.cpp M +2 -0 src/vimode/modes/normalvimode.h M +1 -0 src/vimode/modes/visualvimode.cpp https://invent.kde.org/frameworks/ktexteditor/-/commit/4b9b8c5f9085c398ed52a05a2a99e79c06484913