sponsor Vim development Vim logo Vim Book Ad

command-list : create a list of command and display as needed

 script karma  Rating 0/2, Downloaded by 284    Comments, bugs, improvements  Vim wiki

created by
Vinh Tran
 
script type
utility
 
description
Command list allowed you to define a list(group) of command
Define a shortcut to display the list, from there you can choose a command to execute. Command list is written in ruby so your vim need +ruby supported

Screenshot:

http://vim.wikia.com/wiki/File:Screen_shot.png

For any question please put it on this script's wiki page

http://vim.wikia.com/wiki/Script:3268
 
install details
unzip it in to you vim space. please read the doc/command-list.txt for how to set up the command list.

If you set up the map for the list, you can use the map shortcut to display
the shortcut or you can do it manually in your .vimrc as follow

map mapkey :ruby CommandList::display_command_list('Jump')<CR>

you can add multiple list into a single display by adding it to the parameters
of the display_command_list call. For example:

map mapkey :ruby CommandList::display_command_list('Jump', 'Format')<CR>

If no parameters is given, all the list will be displayed

There is a sample file: plugin/command-list.rb.sample for your reference.

*Updated*: you could also use the line number to choose the command, but only from 1 - 9 :D
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
command-list.zip 1.1 2010-10-06 7.0 Vinh Tran Update the doco
command-list.zip 1.0 2010-10-06 7.0 Vinh Tran Initial upload
ip used for rating: 54.204.182.118

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo