Re: vimgrep/j messes up folds

2007-09-14 Fir de Conversatie Bram Moolenaar


A.Politz wrote:

> Have 2 files, both with foldmarkers.
> A viminfo file, with a mark of
> file2.
> 
> $ cat .vimrc
> 
> set nocp
> set fdm=marker
> "This is a suggested (simplified) autocmd from vimrc_example
> autocmd BufReadPost * normal g`"
> 
> $ vim -U NONE --noplugin file1
> :vimgrep /foo/j file2
> 
> Now file1 has the folds set as if it were file2.

I see the problem.  I'll make a patch.

-- 
ARTHUR:I command you as King of the Britons to stand aside!
BLACK KNIGHT:  I move for no man.
  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



vimgrep/j messes up folds

2007-09-13 Fir de Conversatie A.Politz

Have 2 files, both with foldmarkers.
A viminfo file, with a mark of
file2.

$ cat .vimrc

set nocp
set fdm=marker
"This is a suggested (simplified) autocmd from vimrc_example
autocmd BufReadPost * normal g`"

$ vim -U NONE --noplugin file1
:vimgrep /foo/j file2

Now file1 has the folds set as if it were file2.

-ap


--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---