135283Re: Having trouble using conceal
- Jan 1, 2013On 02/01/13 07:13, HarleyPig wrote:
> Hmm ... I thought I could have a global syntax. I wanted this to work across any syntax and/or filetype.Try sourcing it from an autocommand, as follows:
> If I manually source the file it works, or if I make a after/syntax/perl.vim file it will work in my perl files, at least partially--I can't seem to make it work when the timestamp is part of a comment.
> I'll have to experiment further.
au VimEnter * au Syntax * source ~/.vim/ownsyntax.vim
The VimEnter autocommand is there to add the Syntax autocommand as late
as possible among Syntax autocommands (I hope it will add it late
enough, I didn't check); the Syntax autocommand (defined by the VimEnter
autocommand) will then be triggered (and source the script) by setting
the 'syntax' option for any file. This ownsyntax.vim script should then
change only settings local to the current editfile (using :setlocal,
:map <buffer>, etc.).
Have an adequate day.
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
- << Previous post in topic Next post in topic >>