Nelo-Thara Wallus wrote:

> Attached is a modified patch from justinmk for neovim that allows other
> ex-commands besides :help to be used in keywordprg.
> 
> E.g.
> 
>     ru plugin/manpager.vim
>     set keywordprg=:Man
> 
> would open man pages in a split when 'K' is pressed over a keyword
> instead of opening it in a pager, instead of relying on hacky maps from
> plugins.
> 
> The original functionality is otherwise preserved.
> 
> My C isn't particularly good, but I tried to fit the patch to the
> existing code style and to make as few changes as possible.
> 
> Especially the changes from L5560 to L5559 could probably be written
> better.

Thanks.  Looks like a good idea.  I'll rewrite the code a bit to really
make it backwards compatible.

-- 
For society, it's probably a good thing that engineers value function over
appearance.  For example, you wouldn't want engineers to build nuclear power
plants that only _look_ like they would keep all the radiation inside.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui