1

I'm aware of vim menu and plugins such as vim-venu and quickmenu, but they need to be manually configured.

Is there a way to populate vim menus with all commands available organized in a hierarchical structure based on (for instance) the installed plugins from which each command derives?

I'm thinking to a way to find commands for which you don't remember the name. Something like spacemacs. You open the menu, see the options (e.g. plugins or integrated), chose one (e.g. plugins), chose a plugin (e.g. FZF), chose a command from that plugin... In all of this you don't have to exactly remember any name, neither the plugin itself, and you can also "discover" some new feature, maybe

  • 1
    Are you thinking of something like emacs's helm? There are several plugins that offer similar things, but they do require some configuration. Auto-discovering all available commands/mappings is do-able, but messy – D. Ben Knoble Dec 3 '19 at 16:28
  • Yep, something which enhance the discoverability of vim commands. Why is it so hard to do automatically? – Federico Simonetta Dec 4 '19 at 9:00
  • I think you would need the complete function, or some other similar mechanism. Is there something wrong with : completion? Or are you thinking more of normal mode commands? – D. Ben Knoble Dec 4 '19 at 12:11
  • I'm thinking to a way to find commands for which you don't remember the name. Something like spacemacs. You open the menu, see the options (e.g. plugins or integrated), chose one (e.g. plugins), chose a plugin (e.g. FZF), chose a command from that plugin... In all of this you don't have to exactly remember any name, neither the plugin itself, and you can also "discover" some new feature, maybe – Federico Simonetta Dec 4 '19 at 13:33
  • You can also parse split(execute('verbose command'), "\n") result. From the path, you can isolate the (highlevel) plugin name -- depending on the plugin manager used, there would be slight differences. It would be more tricky for filetype related commands as they won't always appear. It'd be better if their plugins were populating themselves the menus from the commands and mappings that we can never remember. – Luc Hermitte Dec 4 '19 at 13:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.