> In vim 7+ this works:
>
> set listchars+=nbsp:=
>
> but vim 6 does not have the option 'nbsp:c' and will give an error.
>
> How to check? Only by version number?
>
> if v:version>= 700 "vim6.2
> set listchars+=nbsp:= " show non-breaking space
> endif
>
> Something like this does not seem to work:
>
> echo exists("+nbsp")
>
> Since I do not always know what version has an option, testing
> v:version is not reliable.
>
> Bill
Can you just ignore the error (?):
:sil! set listchars+=nbsp:= " show non-breaking space
Works or fails silently.
--
Andy
--
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
No comments:
Post a Comment