Re: [Vim-latex-devel] [vim-latex - Help] A bug?
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2003-06-16 06:30:35
|
> https://sourceforge.net/forum/message.php?msg_id=2061707 > By: zlb > Unfortunately, it looks like a vim bug: do the following: open up a new file and type: bar baz foo baz Set fdm=manual and fold up the whole file (using ggVGzf). Open the fold, put yourself on the first baz line. now close fold again. with fold closed, search for baz using /baz. You will still be on the first baz line, not the second. This seems to be due to the default fold-behavior described at: -----------------------------------%<----------------------------------- For Ex commands the range is adjusted to always start at the first line of a fold and end at the last line of a fold. Thus this command: > :s/foo/bar/g when used with the cursor on a closed fold, will replace "foo" with "bar" in all lines of the fold. This does not happen for |:folddoopen| and |:folddoclosed|. -----------------------------------%<----------------------------------- It will be kind of non-trivial to fix this! :( Basically, it will involve opening up the whole file, doing the package scanning and folding it back the way it was... Srinath |