Ben Schmidt wrote the following on 19.05.2011 20:26

> On 20/05/11 4:16 AM, AMDx64BT wrote:
>> I would like to edit the file syntax cpp.vim and include some new extensions 
>> to
>> highlight. I would like to add these news extension as a vertical list, and 
>> not in
>> the same line.
>>
>> The normal way:
>> *syn keyword ITK a b c d e*
>>
>> The way that I would like to get, using a vertical list
>> *syn keyword ITK
>> a
>> b
>> c
>> d
>> e*
>>
>> Is there any way to add a vertical list of items?
> 
> Is line continuation acceptable?
> 
> syn keyword ITK
> \ a
> \ b
> \ c
> \ d
> \ e
> 
> Ben.

I have learned when one uses line continuation in there one has to make sure
'cpo' is set correct. That is without 'C'.


,----[ see e.g. runtime/filetype.vim  ]--------

" Line continuation is used here, remove 'C' from 'cpoptions'
let s:cpo_save = &cpo
set cpo&vim
.
.
.
" Restore 'cpoptions'
let &cpo = s:cpo_save
unlet s:cpo_save
`----------------------------------------------


regards
-- 
bye Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6  7C18 89A4 A2A0 C70B 1A8F


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

Reply via email to