Monday, August 17, 2020

Prepending an string option

Hello, all

How can one prepend a Vim string option? I need to prepent
formatlistpat for Markdown. I have tried to combine `set'
and `execute()', but to no avail. `execute()' is documented
as returning the command output as a string, yet I can't
seem to call it as a function and use the return value in
`set':

set formatlistpat=prepend|execute('set formatlistpat?')

Also I fear I will lose escapes this way. Is it possible to
preserve them?

--
--
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/20200817133330.5130b92b6df0c50799fcea8a%40gmail.com.

No comments: