quickmenu : A nice popup menu for vim
script karma |
Rating 185/64,
Downloaded by 3813 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Wei Lin |
|
script type |
utility |
|
description |
There are many keymaps defined in my `.vimrc`. Tired to check my `.vimrc` again and again when I forget some, so I made this `quickmenu` plugin which can be fully customized:
- Well formatted and carefully colored to ensure neat and handy.
- Press `<F12>` to popup `quickmenu` on the right, use `j` and `k` to move up and down.
- Press `<Enter>` or `1` to `9` to select an item.
- `Help` details will display in the cmdline when you are moving around the cursor.
- Items can be filtered by `filetype`, different items for different filetypes.
- Macros in `%{...}` form from `text` and `help` will be evaluated and expanded.
- No longer have to be afraid for forgetting keymaps.
Just see this GIF demonstration below:
http://skywind3000.github.io/word/images/menu/menu-2.gif
Trying to share my configuration to my friends, I found that they did't have patience to remember all the keymaps in my vimrc, but a quickmenu is quite accaptable for them. Vim is lack of ui components, that's ok for experienced user, but hard for the others, but a quickmenu is easier for them.
Homepage:
https://github.com/skywind3000/quickmenu.vim
Setup:
" clear all the items
call g:quickmenu#reset()
" section 1
call g:quickmenu#append('# Develop', '')
call g:quickmenu#append('item 1.1', 'echo "1.1 is selected"', 'select item 1.1')
call g:quickmenu#append('item 1.2', 'echo "1.2 is selected"', 'select item 1.2')
call g:quickmenu#append('item 1.3', 'echo "1.3 is selected"', 'select item 1.3')
" section 2
call g:quickmenu#append('# Misc', '')
call g:quickmenu#append('item 2.1', 'echo "2.1 is selected"', 'select item 2.1')
call g:quickmenu#append('item 2.2', 'echo "2.2 is selected"', 'select item 2.2')
call g:quickmenu#append('item 2.3', 'echo "2.3 is selected"', 'select item 2.3')
call g:quickmenu#append('item 2.4', 'echo "2.4 is selected"', 'select item 2.4')
|
|
install details |
Extract the zip to your ~/.vim/ and edit your .vimrc:
" choose a favorite key to show/hide quickmenu
noremap <silent><F12> :call quickmenu#toggle(0)<cr>
" enable cursorline (L) and cmdline help (H)
let g:quickmenu_options = "LH"
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 35.170.81.33
|