Undocumented Keybinding: Where is Alt-/ (Toggle Comment) officially mentioned? #4177
|
Hi, I am a new micro editor user. I accidentally found I could use |
Replies: 1 comment 3 replies
|
That page calls it the default comment/uncomment binding and also lists You can bind another key to |
Alt-/is documented, just not in the core keybindings page. It comes from the built-incommentplugin, whose help topic is> help comment.That page calls it the default comment/uncomment binding and also lists
CtrlUnderscore, which is equivalent toCtrl-/in most terminals. The plugin registersAlt-/aslua:comment.commentduring initialization; that separate plugin registration explains why it is absent from the static core binding table inhelp keybindings.You can bind another key to
lua:comment.comment, or run> commentdirectly. The same help text and binding are present in both currentmasterand v2.0.15.