If you're using Vim2 (which I highly recommend) you can use the yi excommand like so:
:yi *action action* is evaluated using execEditorAction and can run any YiAction (YiA, EditorA, or BufferA) (it uses ghci under the hood). So for instance reload has type YiM (): :yi reload works. If you want to bind a key to a YiM () use Yi.Keymap.Vim2.Utils.mkBindingY which takes a mode (like Normal), and a tuple with an event (like ctrlCh 'y'), a YiM () (like reload), and a function from VimState to VimState if you are changing registers, modes, that sort of thing (can usually just be id). On Wednesday, August 28, 2013 7:02:09 AM UTC-5, Dmitry Bogatov wrote: > > > Hello! > > Given I wrote some function of type YiM() how can I evaluate it? > I tried to search source, and it seems that functions like > :hoogle-search > are hardcoded. > I use vim keybindings, athough it does not matter, Emacs ones(M-x) do > not find them either. > > Sorry for simple question, but I found no source of wisdom aside source > code. > > -- > Best regards, Dmitry Bogatov <kac...@gnu.org <javascript:>>, > Free Software supporter and netiquette guardian. > git clone git://kaction.name/rc-files.git --depth 1 > GPG: 54B7F00D > Html mail and proprietary format attachments are forwarded to /dev/null. > -- -- Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel --- You received this message because you are subscribed to the Google Groups "yi.devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.