On 2014-08-16, Charles E Campbell wrote:
> Gary Johnson wrote:
> >On 2014-08-11, Gary Johnson wrote:
> >>On 2014-08-11, Charles Campbell wrote:
> >>>Gary Johnson wrote:
> >>>>On 2014-08-09, Charles E Campbell wrote:
> >>>>>Gary Johnson wrote:
> >>>>>>set -o ignoreeof            # Don't let Ctrl-D exit the shell.
> >>>>>Hello, Gary:
> >>>>>
> >>>>>Are you actually using the old Bourne shell?   This problem does not
> >>>>>appear when using the Korn/Posix shell or the Bash shell.  Try
> >>>>>reading a bit of :help sh.vim .
> >>>Hello, Gary:
> >>>
> >>>Please try the attached syntax/sh.vim.
> >>Chip,
> >>
> >>Thank you.  It works great.
> >Chip,
> >
> >I installed this file into ~/.vim/syntax and as I said, it works
> >fine with a current Vim.  But then I happened to run an older
> >version of Vim (7.2.330) that shares that same ~/.vim and got a
> >number of errors about the and() function:
> >
> >     E117: Unknown function: and
> >
> >I just added
> >
> >     if !exists("*and")
> >         finish
> >     endif
> >
> >near the top of the syntax file so that the older Vim would fall
> >back to using $VIMRUNTIME/syntax/sh.vim.
> >
> >Maybe this file now needs a version test such as the ones you use in
> >plugin/netrwPlugin.vim.
> >
> Please try the syntax file syntax/sh.vim from my website:
> http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH.  With it
> older vims not having and() will simply allow toggling of folding
> instead of supporting particular subsets.

That fixed it.  Thanks again.

Regards,
Gary

-- 
-- 
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/d/optout.

Raspunde prin e-mail lui