Tony Mechelynck wrote:
On 11/07/11 22:33, niva wrote:
On 11 juil, 21:48, Bram Moolenaar<[email protected]> wrote:
Tony Mechelynck wrote:
On 10/07/11 14:50, niva wrote:
Hi,
I recently install Vim 7.3 under win seven and I got some errors when
I navigate through vim's help system.
"pattern.txt" [RO] 1289L, 54946C
Erreur d tect e en traitant C:\Program Files (x86)\Vim\vim73\ftplugin
\help.vim :
ligne 16 :
E518: Option inconnue: cole=2
Erreur d tect e en traitant C:\Program Files (x86)\Vim\vim73\syntax
\help.vim :
ligne 24 :
E475: Argument invalide : helpBar^I^Icontained "|" conceal
Maybe comes from Program Files (x86)
Thank you for help
Hm, it seems that the latest versions of ftplugin/help.vim and
syntax/help.vim don't make provision for the possibility that the
+conceal feature might have been left out at compile-time. I'm adding
the maintainers of these scripts to the CC list of this post.
Niva, you've found a bug in the runtime files: there should be ":if
has('conceal')" bracketing where appropriate.
Yeah, I'll update the syntax file.
--
This sentence is not sure that it exists, but if it does, it will
certainly consider the possibility that other sentences exist.
/// Bram Moolenaar -- [email protected]
--http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features
--http://www.Vim.org/sponsor/\\\
\\\ an exciting new programming language
--http://www.Zimbu.org ///
\\\ help me help AIDS victims
--http://ICCF-Holland.org ///
With the help.vim file modified with this :
I got those errors when I search for modifiable files
:h modifiable
" setlocal formatoptions+=tcroql textwidth=78 cole=2 cocu=nc
setlocal formatoptions+=tcroql textwidth=78
if has("conceal")
setlocal cole=2 cocu=nc
endif
"options.txt" [RO] 8049L, 351601C
Erreur détectée en traitant C:\Program Files (x86)\Vim\vim73\syntax
\help.vim :
ligne 24 :
E475: Argument invalide : helpBar^I^Icontained "|" conceal
ligne 25 :
E475: Argument invalide : helpStar^I^Icontained "\*" conceal
ligne 33 :
E475: Argument invalide : helpIgnore^I^I"." contained conceal
Erreur détectée en traitant function<SNR>10_LoadFTPlugin :
ligne 2 :
E518: Option inconnue: cole<
Erreur détectée en traitant C:\Program Files (x86)\Vim\vim73\syntax
\help.vim :
ligne 24 :
E475: Argument invalide : helpBar^I^Icontained "|" conceal
ligne 25 :
E475: Argument invalide : helpStar^I^Icontained "\*" conceal
ligne 33 :
E475: Argument invalide : helpIgnore^I^I"." contained conceal
Yeah, that's the other half of the bug you found. I think (and hope)
that Bram (maintainer of that syntax script) will update both
syntax/help.vim and ftplugin/help.vim, since AFAICT Nikolai Weibull
(maintainer of the ftplugin) has washed his hands of it.
Its easy enough to fix (I think -- I don't have a vim w/o +conceal); try
the attached patch.
Regards,
Chip Campbell
--
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
*** syntax/orig_help.vim 2011-07-12 10:19:27.678799635 -0400
--- syntax/help.vim 2011-07-12 10:18:56.515100501 -0400
***************
*** 22,29 ****
syn match helpHyperTextEntry "\*[#-)!+-~]\+\*$" contains=helpStar
endif
! syn match helpBar contained "|" conceal
! syn match helpStar contained "\*" conceal
syn match helpNormal "|.*====*|"
syn match helpNormal ":|vim:|" " for :help modeline
syn match helpVim "Vim version [0-9.a-z]\+"
--- 22,34 ----
syn match helpHyperTextEntry "\*[#-)!+-~]\+\*$" contains=helpStar
endif
! if has("conceal")
! syn match helpBar contained "|" conceal
! syn match helpStar contained "\*" conceal
! else
! syn match helpBar contained "|"
! syn match helpStar contained "\*"
! endif
syn match helpNormal "|.*====*|"
syn match helpNormal ":|vim:|" " for :help modeline
syn match helpVim "Vim version [0-9.a-z]\+"
***************
*** 31,37 ****
syn match helpOption "'[a-z]\{2,\}'"
syn match helpOption "'t_..'"
syn match helpHeader "\s*\zs.\{-}\ze\s\=\~$" nextgroup=helpIgnore
! syn match helpIgnore "." contained conceal
syn keyword helpNote note Note NOTE note: Note: NOTE: Notes Notes:
syn match helpSpecial "\<N\>"
syn match helpSpecial "\<N\.$"me=e-1
--- 36,46 ----
syn match helpOption "'[a-z]\{2,\}'"
syn match helpOption "'t_..'"
syn match helpHeader "\s*\zs.\{-}\ze\s\=\~$" nextgroup=helpIgnore
! if has("conceal")
! syn match helpIgnore "." contained conceal
! else
! syn match helpIgnore "." contained
! endif
syn keyword helpNote note Note NOTE note: Note: NOTE: Notes Notes:
syn match helpSpecial "\<N\>"
syn match helpSpecial "\<N\.$"me=e-1
*** ftplugin/orig_help.vim 2011-07-12 10:20:10.884799895 -0400
--- ftplugin/help.vim 2011-07-11 10:57:11.470713716 -0400
***************
*** 11,18 ****
let s:cpo_save = &cpo
set cpo&vim
! let b:undo_ftplugin = "setl fo< tw< cole< cocu<"
! setlocal formatoptions+=tcroql textwidth=78 cole=2 cocu=nc
let &cpo = s:cpo_save
unlet s:cpo_save
--- 11,23 ----
let s:cpo_save = &cpo
set cpo&vim
! if has("conceal")
! let b:undo_ftplugin = "setl fo< tw< cole< cocu<"
! setlocal formatoptions+=tcroql textwidth=78 cole=2 cocu=nc
! else
! let b:undo_ftplugin = "setl fo< tw< cocu<"
! setlocal formatoptions+=tcroql textwidth=78 cocu=nc
! endif
let &cpo = s:cpo_save
unlet s:cpo_save