In my case I just do following steps:
1. I put ifdef.vim in $VIMRUNTIME/syntax
2. Edit $VIMRUNTIME/syntax/c.vim, I add folowing line at the end of c.vim
"source $VIMRUNTIME/syntax/ifdef.vim"
3. Create ".defines" file in your root directory of your source code then
you
can put your defined or undefined macro on it. Please read the
instructions
how to put macro in ".defines" file in ifdef.vim
You can read detail instructions in ifdef.vim file itself.
Hope this can help you.
Best Regards,
Gusman Dharma P
On Thu, Jun 10, 2010 at 4:42 PM, <[email protected]> wrote:
> On Wed, 09 Jun 2010 03:53:56 +0100, Gusman <[email protected]> wrote:
>
> I think you can try Ifdef script on
>> http://www.vim.org/scripts/script.php?script_id=7
>> Hope it's helpful.
>>
>
> Thanks Gusman - that looks just what I need.
>
> I'll have to be honest and say I have no idea how to use this script(!) I
> don't understand enough to follow the installation instructions. Could a
> kind person help me out? The instructions say (slightly edited to apply to
> C):
>
> - Use as a syntax plugin (source ifdef.vim from
> ~/vimfiles/after/syntax/c.vim)
>
> Already I'm stumped. I haven't got a vimfiles/after/ directory, but have
> got $VIM/vim72/syntax/c.vim. Would I edit this one, or copy it to
> vimfiles/after/syntax/ and work on it from there?
>
> [later] ... I was going to type up some more of what I'd found, but this is
> just too advanced for me to understand in the time I've got available. If
> someone uses this plugin and could easily post a couple of steps on how to
> use it I'd be really grateful, otherwise I'll have to drop it.
>
>
> --
> 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
>
--
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