Re: External command with arguments (WinXP): cmd /c problem

2007-02-15 Thread Dr. Uwe Schneider
Hi Joachim!

This seems to correlate with the space in the directory name.

Try C:\Programme\Microsoft\ Office\Office10\OUTLOOK.EXE

Regards, Doc


Hm, this is strange, the windows shell cmd (not vim!) has problems with the
following:
cmd.exe /c C:\Programme\Microsoft Office\Office10\OUTLOOK.EXE /a
c:\Dokumente und Einstellungen\hofjoa41\Eigene Dateien\test.txt

- C:\Programme\Microsoft not found

If I use the command above directly at the shell *without* the cmd /c part it
works properly!

I think I will ask also at alt.msdos.batch.nt if cmd /c has a special
problem.



Joachim 
###

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/



RE: typing cmds 2x for cygwin shell

2007-02-15 Thread Dr. Uwe Schneider
@Kevin

vim passes the date command somehow to the shell invoked. If you set the shell 
to your script, which is calling the real shell, the information about to 
invoke the date command gets lost.

Regards, Doc

I use the cygwin shell from within Vim by using the following in my _vimrc
: set shell=c:\cygwin\cygwin.bat
If I use :r!date to insert the current date, the shell will open and I 
have to type the command date again. Then after typing exit the 
shell exits and the date is placed in the buffer. Any suggestions on how 
to avoid typing the command a second time?
Thanks, Kevin


Re: [Was :wq vs ZZ] :!start command: need to be root

2007-02-14 Thread Dr. Uwe Schneider
@Régis

 Now, I don't understand at all what this option does ...

The man page says: This option should be used when Vim is executed by a 
program that will wait for the edit session to finish (e.g. mail).

This means: if vim usually forks, i.e. creates a new process, another process, 
which invoked vim (e.g. mail). Suppressing the fork, the parent process can 
call wait() in order to block until vim terminates. This is not possible, if 
vim forkes away.

Greetz, Doc





Alright, I found the solution to my problem. Albi, you gave me the idea to
try to launch gvim from shell, so I launched:

gvim filetoedit.tex

and the \lv command worked, meaning gvim managed to launch kdvi. Fine.

So what was happening when I was opening the file by double-clicking on it?
gvim was executed with the -f option, meaning the file was started with the
following command:

gvim -f filetoedit.tex

Here is was the man page of gvim tells us about this option :

-f  Foreground.  For the GUI version, Vim will not  fork  and detach 
from  the shell it was started in.  On the Amiga,   Vim is
not restarted to open a new window.   This  option should  be  used  when 
Vim is executed by a program that   will wait for the edit
session to finish (e.g. mail).  On the Amiga the :sh and :! commands
will not work.

Now, I don't understand at all what this option does but executing gvim
without it solves the problem. All I had to do was to tell Konqueror that
after double-clicking on a .tex file the command gvim %U is executed.

Thanks everyone
Régis B.
-- 
View this message in context: 
http://www.nabble.com/%3A%21start-command%3A-need-to-be-root-tf3226307.html#a89
64458
Sent from the Vim - General mailing list archive at Nabble.com.



RE: how to read the file created in PC in Linux correctly?

2007-02-14 Thread Dr. Uwe Schneider
@frank wang

Which version of vim you are using?

I thought, vim can handle different linefeeds automatically.

Greetz, Doc

Hi,

I have a lot of text files created in PC. When I open them in Linux
using gvim, I get a lot of ^M and no line breaking. It is messy. How
can I read the file correctly in Linux?

Thanks

Frank


help file: where I can get it?

2007-02-14 Thread Dr. Uwe Schneider
Hi!

I have vim version 7.0 installed, but unfortunately no vim.hlp is delivered 
with the package. Where I can get vim.hlp?

Any idea?

I would appreciate to get a hint on where I can download the help file or to 
simply receive it per email attachment.

Thanx in advance!

Regards, Doc


Re: help file: where I can get it?

2007-02-14 Thread Dr. Uwe Schneider
Hi!

Thanx a lot for your fast response!

At my PC at home, :help works (that's why I can't tell you more about the 
missing help feature in the moment), but at my office PC (there I ran vim per 
X-Term under Unix, SunSolaris), there comes an error message, like no help 
file found in /usr/local/share/vim7.0/vim/.../vim.hlp. The directory exists 
and all files, like the syntax files, are already there, but no vim.hlp.

What's wrong?

Best Regards, Doc

Dr. Uwe Schneider wrote:
 Hi!
 
 I have vim version 7.0 installed, but unfortunately no vim.hlp is delivered 
with the package. Where I can get vim.hlp?
 
 Any idea?
 
 I would appreciate to get a hint on where I can download the help file or to 
simply receive it per email attachment.
 
 Thanx in advance!
 
 Regards, Doc
 

There is no vim.hlp. The vim help is called from within Vim using

   :help

or

   F1

or

   :help subject

The help system consists of a number of text files located in 
$VIMRUNTIME/doc/*.txt and indexed by $VIMRUNTIME/doc/tags

If you are a beginner to Vim, you can also start the vimtutor program, which 

should have been installed together with Vim. It accepts one optional argument 

which is a two-letter language code such as fr for French, nl for Dutch, etc. 

If it doesn't find a tutor script in the required language, or if you omit the 

language, you get the English tutor.


Best regards,
Tony.
-- 
Save Soviet Jewry -- Win Valuable Prizes


Re: :wq vs ZZ

2007-02-13 Thread Dr. Uwe Schneider
Sure, ZZ is quite faster than :wq, but :wq is more consistent, thinking 
about other actions, like :wn.

Greetz, Doc