On Monday, October 15, 2012 12:03:30 PM UTC-5, tjg wrote:
> 
> I would rather not use plugins, and anyway, ctags is most certainly overkill
> for me, because I only write plain text (on Terminal Vim in my MBpro ... and
> on an Android smartphone with VimTouch). 
> 
> 

You're going to need a plugin of some sort here, even if you must write it 
yourself. Vim doesn't do syntax highlighting of any kind without one, and 
certainly not syntax highlighting of a configurable dictionary of words. The 
plugin could be a very lightweight syntax file only if you want, but you'll 
need one.

> 
> Your second suggestion brings other - naïve - questions :
> 
> - Where is the vimlog.txt file ? Must I create it ?
> 

You created it already. You told us in your original post:

> So, I create a tag file : .vim/doc/vimlog.txt, in which I have both *Inc* 
> and *Gmbh*. 
> (NB :I have verified that I have, too, .vim/doc/tags)

> - Is it impossible to parse the .vim/doc/tags file for *keywords* through a
> function ?
> 

You can get all tags Vim knows about which match a regular expression using the 
taglist() function. Or you can use readfile() to read in the contents of a file 
and parse it line by line in whatever way you wish.

You could also make a static syntax file with your desired keywords.

Or, if your keywords are set off from normal text in some way, with special 
tokens or something, make a syntax file to highlight them based on the special 
tokens.

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