On 2014-03-19, celelibi wrote:
> Le mercredi 19 mars 2014 13:30:13 UTC+1, cptstubing a écrit :
> > You can still make use of the termcap values by calling
> > system('tput kPRV') rather than hard coding the escapes. This
> > would be a little better if vim exposed tgetstr and friends to
> > avoid the overhead of invoking tput.
>
> Oh, yes, now that's a workaround I like. :)
> I didn't know the tput command.
> But that's still just a workaround.
> I however, don't know how to write properly :set t_%e=system('tput
> kPRV'). This doesn't work because the right-hand side is not
> evaluated.
This should work, but it doesn't work for me for t_%s on this
system.
:let &t_%e = system('tput kPRV')
See
:help let-&
Alternatively, you could use this.
:exe 'set t_%s='.system('tput kPRV')
See
:help :exe
HTH,
Gary
--
--
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.