sponsor Vim development Vim logo Vim Book Ad

ambicmd.vim : You can use ambiguous command.

 script karma  Rating 1/1, Downloaded by 727  Comments, bugs, improvements  Vim wiki

created by
thinca
 
script type
utility
 
description
*ambicmd* is a Vim plugin to use ambiguous command.
Some plugins provide many useful command, but sometimes these are very long.
At this time, you will define the key mappings to execute these. but:

- You will have to define quite a lot of key mappings.
- You should find unused key sequence for mapping.
- Do you define a key mapping for a command only occasionally used?

This plugin expands a ambiguous command by some patterns.  For example,

  ("|" is cursor)
  " Expands to the correct name from the lowercase.
  :ref<Space>  =>  :Ref |

  " Expands from the capital letter of the command.
  :qr<Space>   =>  :QuickRun |

  " There are some commands with "NeoComplCache" prefix.
  :ncc<Space>  =>  :NeoComplCache|

This plugin does nothing by default.
You need write some settings to vimrc as follows.

  cnoremap <expr> <Space> ambicmd#expand("\<Space>")
  cnoremap <expr> <CR>    ambicmd#expand("\<CR>")


Latest Version:
https://github.com/thinca/vim-ambicmd
 
install details
 

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
vim-ambicmd-0.5.0.zip 0.5.0 2012-01-13 7.3 thinca Initial upload
ip used for rating: 18.204.214.205

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.
   
Vim at Github