>I can’t omit this part of Vim commands. But I can hide it. Also note that we
>are not talking about user. There is exactly no difference for user between
>modifying option initally set by
> import re
> import json
> lcs = vim.eval('&lcs')
> lcs = re.sub(',?eol:.,?', lcs, ',')
> lcs += ',eol:$'
> lcs = lcs.strip(',').replace(',,', ',')
> vim.command("let &lcs="+json.dumps(lcs))
>,
> vim.command("set lcs+=eol:$")
>,
> # Same as first, but with two modifications:
> …
> lcs = vim.options['lcs']
> …
> vim.options['lcs']=lcs
>and
> vim.options['lcs']['eol']='$'
>. Neither there is a difference in the result. But there is difference for
>developers as only the last interface is most convenient one.
This is too hard to implement in C though and will break backwards
compatibility
since my patch for *.options was already included. Should be written in python
as a module shipped with vim.
--
--
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/groups/opt_out.