Hi Mikolaj,
I get:
Vim: Reading from stdin
What happens when you do this:
date | /usr/bin/vim -u NONE -
Assuming that your vim is installed at /usr/bin/vim.
What version of Vim are you using?
--Eljay
Hi Jorge,
Vim does its job, and after quitting vim I get:
Actually, you are getting the Vim: Reading from stdin... first, and then Vim
does it's job.
When Vim quits, it restores the screen (available in some termcaps), which
includes the prior Vim message that it was reading from stdin.
I
Hi Jorge,
That would be worse than the message!
You should modify the Vim source code so it does not emit the message, and
compile your own version.
Note: the message is there so it does not appear that your machine is hung
if vim is being sent a large amount of input, or a input from a slow
Hi Robert,
Is there some tutorial out there for a newbie starting with Vim7 to
learn how to program for it?
There's a general tutorial to get you started with Vim at:
http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html
I don't think it covers any Vim 7.0 features.
And I don't
^E and ^Y will move the visual window by one line. Comes in handy to
adjust the screen to center a block of text.
Also very handy are these keyboard sequences:
z. put line-with-cursor in middle of screen
zCR put line-with-cursor at top of screen
z- put line-with-cursor at bottom of
Hi Ivan,
The FAQ contains some obscure information that goes beyond your average
Vim cheat sheet.
For the aforementioned average Vim cheat sheet...
http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html
--Eljay
Hi Arménio,
Isn't this a kind of nasty trick? :-) Does anyone know a cleaner solution?
That is the clean, simple solution.
The nasty solution is to modify the Vim source code, change the behavior of
auto-indent to your preference, and rebuild.
Sincerely,
--Eljay
Hi Eric,
Do this to see which line-endings the buffer is associated with...
:set ff?
Do this to change them...
:set ff=unix
:wq
For info...
:help 'fileformat
On WinXP, I strictly use the unix (0A) line endings, I do not use mac (0D)
or dos (0D 0A). I wish Vim internally supported nul (00)