On Jun 11, 1:42 pm, David Bürgin <[email protected]> wrote:
>
> Right. For future reference, the simple solution is to identify Vim 7.3
> as version '703':
>
> if version >= 703
> set conceallevel=0
> autocmd FileType * setlocal conceallevel=0
> endif
>
> Still learning, apparently.
>
Glad you figured it out! I'm a little surprised it worked...the
"correct" variable name is v:version.
Even better, though, would be to test for the feature rather than the
version. This lets it continue working even if you use a Vim that is
the right version but the wrong feature set (like if you ran into a
"tiny Vim" compile):
if has("conceal")
...
endif
(for that matter, it can be useful to check for has("autocmd") as well
but that's not as likely to be missing)
--
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