On 11/11/08 20:48, Penz wrote:
> Hi
>
> I use syntax folding in C, so that functions are all folded away.
> Then, everytime I hit C-X,C-O to start omnicompletion, the fold of the
> function I'm in closes (I guess only when it has to search other
> files).
>
> I have in my ~/.vim/ftplugin/c.vim:
> ---
> setlocal fdm=syntax
> source $VIMRUNTIME/ftplugin/c.vim
> ---
> If I remove the 'fdm' line, it works. Is there a better place to set
> syntax folding so that omnicompletion does not get folded?
>
> Cheers
> Leandro Penz
You don't need that ":source" line, $VIMRUNTIME/ftplugin/c.vim will be
sourced anyway, immediately after ~/.vim/ftplugin/c.vim (and
$VIM/vimfiles/ftplugin/c.vim if it exists), at the FileType event for C
sources.
Best regards,
Tony.
--
MAN: Fetchez la vache!
GUARD: Quoi?
MAN: Fetchez la vache!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---