I have a file consisting in a list of Vim usage definitions, eg :
zo : opens a fold on the cursor
zc : closes a fold on the cursor
etc...

The terms to define are always at the beginning of a line.

I would like to highlight the words to define and for that purpose use
matchadd() with a more specific separator, such as :: instead of : and
thus have :
zo :: opens a fold on the cursor  (with zo :: highlighted)
zc :: closes a fold on the cursor  (d°)
etc...

I have put in my .vimrc :

:highlight MyGroupMA ctermbg=White ctermfg=Black
:let m = matchadd("MyGroupMA", '\^\%::')

which does not work. Where did I go wrong ? Thanks in advance from a
beginner.

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