Sunday, April 1, 2018

Re: feedkeys \ Enter key

Ni Va wrote:

> It results in that, I think double quote is needed to embrace call feedkey
> and inside double single quote ''
>
> "D:/Logiciels/Vim/feedkeys(:WEATHER/" Illegal file name
> Error detected while processing command line:

[...]

> >>>> In order to easily test command I have mapped this following.
> >>>>
> >>>> feedkeys enters well WEATHER chars but not <Enter> key.
> >>>>
> >>>> nnoremap <F5> :!start gvim -c "call
> >>>> feedkeys(':WEATHER\<cr>')"<cr>

The problem is that this is inside a mapping. I haven't tried it, but
most likely the mapping will eat the backslash. Either leave out the
backslash, so the mapping converts it to a real CR, or add another
backslash.

--
From "know your smileys":
=):-) Uncle Sam

/// Bram Moolenaar -- Bram@Moolenaar.net -- 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_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment