CRDispatcher : dispatch CR in the command line
| script karma
Downloaded by 46
Comments, bugs, improvements
script versions (upload new version)
|# CRDispatcher Vim Plugin
This is a utility plugin which is used in my other Vim plugins. It let
regieter callback functions which transform the command line after hitting
enter: for example EnchantedVim is using it to add `\v` to patterns.
It also has a nice hack to make `c_CTRL-f` work nicely: it will transform
the line when entering the command line. The `crdispatcher#CRDsiaptcher` dict
which is passed to callbacks has `ctrl_f` entry which is `1` in this case.
This is useful if a callback should only be used with `<cr>` or `ctrl-f`.
The plugins that depend on it are:
Every callback function axcepts one argument: the crdispatcher#CRDispatcher
dictionary, and it can modify the cmdline value.
You can use the expression register with Vim 7.3.686 or later. With an earlier version
you will not be able to use it.
This plugin is a simple example of OO programing in VimL.
* Copyright: © Marcin Szamotulski, 2014
* License: vim-license, see `:help license`
|Open the vimball file in vim and source it with :so%|
Click on the package to download.
ip used for rating: 18.104.22.168