Re: why does :save not work with -stdin-

2007-06-05 Thread Edward L. Fox

Hi Mohsin,

On 6/6/07, Mohsin <[EMAIL PROTECTED]> wrote:

I usually do search like this:

$ grep  Word *.* | vim -u myvimrc -

$ cat myvimrc

   :autocmd StdinReadPost * :sav! /tmp/x

but when I quit :q, vim always asks me to save the file again,
why is the file marked as modified?

I tried all combinations of flags, but can't get vim to
mark the file as "saved",


It's a bug. Here is the patch. Please test it carefully, thanks very
much for reporting this to me. I'll ask Bram to add it to the official
release soon.

Index: buffer.c
===
--- buffer.c(revision 296)
+++ buffer.c(working copy)
@@ -171,14 +171,6 @@
   /* Put the cursor on the first line. */
   curwin->w_cursor.lnum = 1;
   curwin->w_cursor.col = 0;
-#ifdef FEAT_AUTOCMD
-# ifdef FEAT_EVAL
-   apply_autocmds_retval(EVENT_STDINREADPOST, NULL, NULL, FALSE,
-   curbuf, &retval);
-# else
-   apply_autocmds(EVENT_STDINREADPOST, NULL, NULL, FALSE, curbuf);
-# endif
-#endif
   }
}

@@ -207,6 +199,18 @@
   unchanged(curbuf, FALSE);
save_file_ff(curbuf);  /* keep this fileformat */

+#ifdef FEAT_AUTOCMD
+if (read_stdin)
+{
+# ifdef FEAT_EVAL
+apply_autocmds_retval(EVENT_STDINREADPOST, NULL, NULL, FALSE,
+   curbuf, &retval);
+# else
+apply_autocmds(EVENT_STDINREADPOST, NULL, NULL, FALSE, curbuf);
+# endif
+}
+#endif
+
/* require "!" to overwrite the file, because it wasn't read completely */
#ifdef FEAT_EVAL
if (aborting())



any insights appreciated,
mosh.



Regards,

Edward L. Fox


why does :save not work with -stdin-

2007-06-05 Thread Mohsin

I usually do search like this:

$ grep  Word *.* | vim -u myvimrc -

$ cat myvimrc

  :autocmd StdinReadPost * :sav! /tmp/x

but when I quit :q, vim always asks me to save the file again,
why is the file marked as modified?

I tried all combinations of flags, but can't get vim to
mark the file as "saved",

any insights appreciated,
mosh.


RE: VimWiki - released finally

2007-06-05 Thread Larson, David
> Sebastian,
> 
> Why not utilize the "talk:" pages for the comments (see 
> discussion tab at top of each wiki page)?
> 
> Just curious.
> 
> -Robert

Lets avoid using the vim-announce mailing list for a discussing of vim
wiki and stick to vim-dev.

David


Re: VimWiki - released finally

2007-06-05 Thread Robert Lee

Sebastian,

Why not utilize the "talk:" pages for the comments (see discussion tab 
at top of each wiki page)?


Just curious.

-Robert

Sebastian Menge wrote:

[cross-posted to vim, vim-dev, vim-announce, wikia-l]

Hi all

Finally I have imported all the vim tips from http://vim.org/tips to 


http://vim.wikia.com

and set up a minimal infrastructure to keep things going. Not everything
is perfect, but I think it is usable now.

Thanks to all the support from [EMAIL PROTECTED] and especially to the very
kind wikia community (#wikia on freenode and the mailing list,
Greetings!).

Some words on contribution: A good wiki depends on two main factors:
Excellent content and a lively community. We have a lot of good content
now, but to make it excellent we need You!

If you ever posted a tip or a comment to the old tips database, please
have a look at it on the wiki, and review the page. Every little bit
helps!

See you on the wiki, Sebastian.


  




RE: VimWiki - released finally

2007-06-05 Thread Larson, David
 
> > Finally I have imported all the vim tips from http://vim.org/tips to
> > 
> > http://vim.wikia.com
> > 
> > and set up a minimal infrastructure to keep things going. Not 
> > everything is perfect, but I think it is usable now.

The links to scripts on the tips pages don't show up correctly, they
look like this:

[/scripts/script.php?script_id=31 vimscript #31]

Take a look at this example:
http://vim.wikia.com/wiki/VimTip384


Re: VimWiki - released finally

2007-06-05 Thread Bram Moolenaar

Sebastian Menge wrote:

> [cross-posted to vim, vim-dev, vim-announce, wikia-l]
> 
> Hi all
> 
> Finally I have imported all the vim tips from http://vim.org/tips to 
> 
> http://vim.wikia.com
> 
> and set up a minimal infrastructure to keep things going. Not everything
> is perfect, but I think it is usable now.
> 
> Thanks to all the support from [EMAIL PROTECTED] and especially to the very
> kind wikia community (#wikia on freenode and the mailing list,
> Greetings!).
> 
> Some words on contribution: A good wiki depends on two main factors:
> Excellent content and a lively community. We have a lot of good content
> now, but to make it excellent we need You!
> 
> If you ever posted a tip or a comment to the old tips database, please
> have a look at it on the wiki, and review the page. Every little bit
> helps!
> 
> See you on the wiki, Sebastian.

Great!

Let's await comments for a few days, then I'll add a few links on
www.vim.org to the tips wiki.  That should give the wiki quite a bit
more traffic.

How about redirecting http://www.vim.org/tips/tip.php?tip_id=805
to http://vim.wikia.com/wiki/VimTip805  (where 805 is an arbitrary
number)?

The Tips pages appear to load a bit slow, but otherwise it looks like
all the info from the old pages is there.

-- 
I wish there was a knob on the TV to turn up the intelligence.
There's a knob called "brightness", but it doesn't seem to work. 

 /// 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///


Re: [Cygwin] Configure Detects Incorrect Ruby Version

2007-06-05 Thread Alexey I. Froloff
* Taylor Venable  [070605 06:48]:
>   ruby: no such file to load -- ubygems (LoadError)
> This is pretty clearly supposed to be the "rubygems" module,
You have "-rubygems" somewhere in your $RUBYOPTS environment
variable.  Either unset this variable before building vim, check
your configuration files (shell profile?) or install rubygems in
case you really need it;-)

> not the "ubygems" module, so probably there's a misspelling in
> the code somewhere.
Nope, it's for use with '-r' option.

-- 
Regards,
Sir Raorn.


signature.asc
Description: Digital signature


Re: VimWiki - released finally

2007-06-05 Thread Nico Weber

Hi,


Finally I have imported all the vim tips from http://vim.org/tips to

http://vim.wikia.com


if you must have ads, would it be possible to go with text-only ads?  
Additionally, the "Digg this story" button at the bottom is stupid ;-)


Just my destructive 2 cents,
Nico



Re: VimWiki - released finally

2007-06-05 Thread fREW

On 6/5/07, Sebastian Menge <[EMAIL PROTECTED]> wrote:

[cross-posted to vim, vim-dev, vim-announce, wikia-l]

Hi all

Finally I have imported all the vim tips from http://vim.org/tips to

http://vim.wikia.com

and set up a minimal infrastructure to keep things going. Not everything
is perfect, but I think it is usable now.

Thanks to all the support from [EMAIL PROTECTED] and especially to the very
kind wikia community (#wikia on freenode and the mailing list,
Greetings!).

Some words on contribution: A good wiki depends on two main factors:
Excellent content and a lively community. We have a lot of good content
now, but to make it excellent we need You!

If you ever posted a tip or a comment to the old tips database, please
have a look at it on the wiki, and review the page. Every little bit
helps!

See you on the wiki, Sebastian.




I am EXCITED!

--
-fREW