Monday, August 8, 2022

Re: Setting termcap entries: avoid literal Esc?



пн, 8 авг. 2022 г. в 15:06, Lifepillar <lifepillar@lifepillar.me>:
In my vimrc I have entries such as these:

    set <s-right>=^[f
    set <a-h>=^[h

where ^[ is a literal Esc. Is it possible to perform such assignments
without using a literal Esc? For other entries I am able to use the
& form (say, &t_BE = "\033[?2004h"). I am asking specifically about
entries like the above, which either don't have a corresponding option
in Vim AFAIK (<a-h>) or which have an option with special characters
(t_%i).

I am using Vim 9 script, if that matters.

Thanks,
Life.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/tcqu7q%24ddd%241%40ciao.gmane.io.

I believe it's only possible by using execute

    execute "set <a-h>=\<esc>h"

Kind regards,
Matvey

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAFsTB%2BLYZbZ9H%2BpTwMvD97bU26wJVnvPk-kd5O44E8E9Hze%2Bjw%40mail.gmail.com.

No comments: