On Thu, Feb 4, 2010 at 2:27 PM, Chris Sutcliffe <[email protected]> wrote: >> Thinking maybe something in my config was compensating for something, >> I tried again: >> >> gvim -N -u NONE -i NONE >> :set rtp-=$HOME/vimfiles >> :set rtp-=$HOME/vimfiles/after >> :filetype plugin indent on >> :syntax on >> :e test.c >> :set fdm=syntax >> >> I then open a fold for a function, edit the function, and :w. >> >> The fold continues to stay open. >> >> Maybe there's something in YOUR config causing the issue? Can you >> reproduce with none of your customizations, as I have tried? > > It is indeed an issue in my config, in particular this line: > > au BufWritePost * nested filetype detect > > Which I use to re-read the ctags file so that Omni-complete has the > latest information after a file is written.
You shouldn't need to do this. If you have something automatically updating the tags database, Vim will always be up-to-date. Vim doesn't cache tags info. It always reads from the file. If you're seeing otherwise, then it may be that the omnicompletion script is caching the tag information and I'd consider that a bug. -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]> -- You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php
