> Thanks.  I'll check it out soon and probably include it.
> 
> Problem is that when we update indent files to use shiftwidth() they
> won't work with older versions of Vim.  Can you think of a simple way to
> use shiftwidth() only when available?  Possibly by defining a
> s:Shiftwidth() function that uses has() and falls back to &sw.

I would rather suggest not having s:Shiftwidth with has(), but have has() at 
the top level:

    if exists('*shiftwidth')
        let s:Shiftwidth=function('shiftwidth')
    else
        function s:Shiftwidth()
            return &sw
        endfunction
    endif

-- 
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

Raspunde prin e-mail lui