Yasuhiro Matsumoto wrote:
> Hi bram.
>
> When, add following into runtime path,
>
> --- plugin/foo.vim ---
> cnoremap <expr> <c-u> foo#toupper()
>
> --- autoload/foo.vim ---
> function! foo#toupper()
> let cmdline = getcmdline()
> return repeat("\<bs>", len(cmdline)) . toupper(cmdline)
> endfunction
>
> typing ":foo<c-u>" make command line scroll down like following
>
> :foo
> :Foo
>
> it should be following
>
> :Foo
>
> in eval.c, ex_function is set msg_scroll while evaluating. but i guess that
> it isn't needed.
> i checked following cases.
>
> 1. ":function" in command line
>
> $vim -u NONE -U NONE
> :set nocp
> :function Foo()
> : echo "foo"
> : endfunction
>
> 2. ":source foo.vim" that include function command.
>
> Below is a patch. please check and include.
Thanks for the patch. I'll look into it later.
--
Any resemblance between the above views and those of my employer, my terminal,
or the view out my window are purely coincidental. Any resemblance between
the above and my own views is non-deterministic. The question of the
existence of views in the absence of anyone to hold them is left as an
exercise for the reader. The question of the existence of the reader is left
as an exercise for the second god coefficient. (A discussion of
non-orthogonal, non-integral polytheism is beyond the scope of this article.)
(Ralph Jennings)
/// 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