Skip to content

dstein64/vim-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build

vim-menu

vim-menu is a plugin providing a console interface to Vim's built-in menu.

Requirements

  • vim or nvim

Installation

A package manager can be used to install vim-menu.

Examples
  • Vim8 packages:
    • git clone https://github.com/dstein64/vim-menu ~/.vim/pack/plugins/start/vim-menu
  • Vundle:
    • Add Plugin 'dstein64/vim-menu' to ~/.vimrc
    • :PluginInstall or $ vim +PluginInstall +qall
  • Pathogen:
    • git clone --depth=1 https://github.com/dstein64/vim-menu ~/.vim/bundle/vim-menu
  • vim-plug:
    • Add Plug 'dstein64/vim-menu' to ~/.vimrc
    • :PlugInstall or $ vim +PlugInstall +qall
  • dein.vim:
    • Add call dein#add('dstein64/vim-menu') to ~/.vimrc
    • :call dein#install()
  • NeoBundle:
    • Add NeoBundle 'dstein64/vim-menu' to ~/.vimrc
    • Re-open vim or execute :source ~/.vimrc

Usage

Vim comes with a default set of menu items. :menu and :unmenu can be used for adding and removing menu items. See :help creating-menus and :help delete-menus for documentation. See vim-menu's documentation for details on modifying or disabling the default menus.

Enter vim-menu with <leader>m or :Menu.

  • Arrows, hjkl keys, and <cr> are used for selecting and executing menu items.
  • Number keys can be used to jump to items.
  • Press g followed by a shortcut key to execute the corresponding item.
  • Press K to show more information for the selected item.
  • Press ? to show a help message.
  • Press <esc> to leave vim-menu.

See :help menu-usage for additional details.

Documentation

:help vim-menu

The underlying markup is in menu.txt.

Demo

License

The source code has an MIT License.

See LICENSE.