Paste buffer

2007-02-14 Thread Bin Chen
Hi, When I copy a line use yy, then I need to paste it to a line. But before the paste, I delete a char using 'x', the paste buffer will be overwriten to the deleted word. How can i avoid this? Thanks. ABAI

Re: :wq vs ZZ

2007-02-14 Thread Matthew Winn
On Tue, 13 Feb 2007 18:22:34 -0500, Theerasak Photha [EMAIL PROTECTED] wrote: On 2/13/07, Gene Kwiecinski [EMAIL PROTECTED] wrote: I imagine there is a rationale for 'ZZ', but it's not readily apparent. (Something to do with C-z in DOS, or the end of the alphabet?) 'z' is already used,

Re: 8 bit problem

2007-02-14 Thread Ulrich Lauther
Ulrich Lauther wrote: A problem with German Umlauts Under Linux I have modified my key map in a way that for instance ALT a generates Umlaut a (a in Tex notation). Now when I start vi like this: /usr/bin/X11 rxvt -meta8 -e vim I can type in Umlauts using the ALT key.

:!start command: need to be root

2007-02-14 Thread Régis B .
Hello there, I use gVim on a Linux computer (KUbuntu), and I am trying to launch a program from inside gvim with the !start command, so for instance: :!start kdvi or :!start /usr/bin/kdvi But I get the following error: start: need to be root shell returned 1 So obviously I need to be root to

Re: :!start command: need to be root

2007-02-14 Thread Jürgen Krämer
Hi, Régis B. wrote: I use gVim on a Linux computer (KUbuntu), and I am trying to launch a program from inside gvim with the !start command, so for instance: :!start kdvi or :!start /usr/bin/kdvi But I get the following error: start: need to be root shell returned 1 So obviously

Re: :!start command: need to be root

2007-02-14 Thread Albie Janse van Rensburg
Régis B. wrote: Hello there, I use gVim on a Linux computer (KUbuntu), and I am trying to launch a program from inside gvim with the !start command, so for instance: :!start kdvi or :!start /usr/bin/kdvi But I get the following error: start: need to be root shell returned 1 So obviously I

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

2007-02-14 Thread Régis B .
Albi, Jürgen, thank you, you are both right: I just realised start is a root only specific command in my Linux, and it is sufficient to execute :!kdvi in order to make it work. The reason why I asked this question is because I am trying to use latex-suite and to view dvi compiled documents

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

2007-02-14 Thread Albie Janse van Rensburg
Régis B. wrote: Albi, Jürgen, thank you, you are both right: I just realised start is a root only specific command in my Linux, and it is sufficient to execute :!kdvi in order to make it work. The reason why I asked this question is because I am trying to use latex-suite and to view dvi

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

[OT?] copying on a mac

2007-02-14 Thread Lev Lvovsky
Hello, I'm almost positive that this is OT, but if someone point me in the right direction, that would be great - I'm finding (through the help of vim actually), that text highlighted and copied from Terminal (or even X11 xterm) on OS X ends up with an extra space at the end of a line

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

2007-02-14 Thread frank wang
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

Re: Workspace concept ala TextPad

2007-02-14 Thread Eric Leenman
Hi Yeggapan, [...] You can try using the workspace manager plugin: http://vim.sourceforge.net/scripts/script.php?script_id=1410 [...] I got it so far working. One question. When I give the command af(AddFile) in the filebuffer, the plugin comes with the message give file name (or something

Re: :wq vs ZZ

2007-02-14 Thread Theerasak Photha
On 2/14/07, Matthew Winn [EMAIL PROTECTED] wrote: On Tue, 13 Feb 2007 18:22:34 -0500, Theerasak Photha [EMAIL PROTECTED] wrote: On 2/13/07, Gene Kwiecinski [EMAIL PROTECTED] wrote: I imagine there is a rationale for 'ZZ', but it's not readily apparent. (Something to do with C-z in DOS, or

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

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

2007-02-14 Thread Tom Purl
You can use a third-party tool called dos2unix to convert the files. Also, vim has functionality that can do this, but I don't remember it right now. HTH! Tom Purl 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

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

2007-02-14 Thread Michael Wookey
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? There is a good discussion of this topic here: http://www.vim.org/tips/tip.php?tip_id=26 cheers

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

2007-02-14 Thread A.J.Mechelynck
frank wang wrote: 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 :set fileformats=dos,unix or :set fileformats=dos,unix,mac If

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

2007-02-14 Thread frank wang
Thanks for the help. My gvim version is 7.0. The files are edited by Matlab editor. gvim cannot automatically handle the ^M. No matter what file format I set. The only thing to do is repleace them with %s/\r/\r/g. Frank On 2/14/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: frank wang wrote:

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 A.J.Mechelynck
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

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

Re: Web-based editing [Was :wq vs ZZ]

2007-02-14 Thread Bram Moolenaar
Pete Johns wrote: On Tue, 2007-02-13 at 16:07:32 -0700, [EMAIL PROTECTED] sent: (Sorry guys, my web-based editor, which I must use at work becauseof IT paranoia about SMTP, simply will not let me reply at the end rather than beginning of the thread.)=20 Web-based editor? Why not use Vim

Re: Web-based editing [Was :wq vs ZZ]

2007-02-14 Thread Pete Johns
On Thu, 2007-02-15 at 03:31:21 +0100, Bram Moolenaar sent: Web-based editor? Why not use Vim as your editor from within Firefox? Works a treat for me! ViewSourceWith http://dafizilla.sourceforge.net/viewsourcewith/ Don't see something about Vim here... Sorry, Bram, I should have mentioned that

Re: Web-based editing [Was :wq vs ZZ]

2007-02-14 Thread Cameron Simpson
On 15Feb2007 13:39, Pete Johns [EMAIL PROTECTED] wrote: | [...] It provides a menu item for you to launch | your favourite text editor (Vim) from a textarea. [...] I'sAT puts a little edit button on the bottom right corner of the text area. An ergonomic win. -- Cameron Simpson [EMAIL PROTECTED]

Re: Web-based editing [Was :wq vs ZZ]

2007-02-14 Thread Pete Johns
On Thu, 2007-02-15 at 14:21:46 +1100, Cameron Simpson sent: I'sAT puts a little edit button on the bottom right corner of the text area. An ergonomic win. I shall be trying it next time I get ten minutes :-) Best; --paj -- Pete Johns http://johnsy.com/

weird autotab action

2007-02-14 Thread Simon Jackson
when i start to write a php function with gvim.. function dostuff() { ..as soon as i hit return it inserts a tab with an aditional 2 spaces how do i get rid of those extra spaces? and for that matter is there a way to close off the function automatically?.. function dostuff() { }

Re: Security Center Advisory !

2007-02-14 Thread Bram Moolenaar
Tony Mechelynck wrote: If you delete a message _unopened_ it cannot harm you. If your email application shows the subject, it means it must open the email to find it. Usually it only reads the header, but it may do more. E.g., if it displays an icon to indicate there is an attachment it reads

Re: help file: where I can get it?

2007-02-14 Thread A.J.Mechelynck
Dr. Uwe Schneider wrote: 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

RE: File name completion for files residing in multiple directories

2007-02-14 Thread Hari Krishna Dara
On Mon, 12 Feb 2007 at 8:07pm, Max Dyckhoff wrote: This is a bug which I have actually informed Hari of a while ago, but perhaps my bug email got lost :) The email is not lost, just extremely busy with work and personal life :) Also, lately I have been using eclipse more and more at my new

Problem with the expand() function

2007-02-14 Thread Yegappan Lakshmanan
Hi all, I am seeing a problem using the expand() function and the netrw plugin. I have the following autocmd: autocmd BufEnter * echomsg Entering buffer . expand(afile:p) I edit the current directory using the e . command and select a file for editing and then go back to editing the

Re: Web-based editing [Was :wq vs ZZ]

2007-02-14 Thread Peter Hodge
--- Bram Moolenaar [EMAIL PROTECTED] wrote: Pete Johns wrote: On Tue, 2007-02-13 at 16:07:32 -0700, [EMAIL PROTECTED] sent: (Sorry guys, my web-based editor, which I must use at work becauseof IT paranoia about SMTP, simply will not let me reply at the end rather than beginning of

Re: Web-based editing [Was :wq vs ZZ]

2007-02-14 Thread Cameron Simpson
On 15Feb2007 17:32, Peter Hodge [EMAIL PROTECTED] wrote: | Mozex (http://mozex.mozdev.org/) is working quite well for me on Windows and | Mac. It's good, but buries the edit function in a submenu of the context menu. It's also not live - you need to quit the editor then click in the text area to

Re: help file: where I can get it?

2007-02-14 Thread A.J.Mechelynck
Dr. Uwe Schneider wrote: Dear Tony! Thanx for your detailed answer. :echo $VIMRUNTIME results in: /usr/local/share/vim/vim70 as expected. But, :verbose set helpfile? produces: helpfile=/usr/local/share/vim/vim70/vim.hlp [...] What does it print below that (Last set from...)? That vim.hlp

Re: Vim + MzScheme on Ubuntu

2007-02-14 Thread A.J.Mechelynck
Alexei Alexandrov wrote: Hi Bram Moolenaar, you wrote: I think the best method is to obtain all the files from subversion and then get the latest runtime files with rsync. Get spell files manually (this can be done automatically if you use a language for the first time). I tried to use the

Vim crashing while starting nibbles game

2007-02-14 Thread Hari Krishna Dara
After I updated the nibbles game, a user reported that his gvim crashes while starting the game. He is using gvim on mandriva linux with patchlevel upto 178. Strangely it doesn't crash on his console vim. I couldn't reproduce the crash on XP and tried with gvim with patchlevels 148 as well as

Subject: Re: vim on cygwin using win32 clipboard

2007-02-14 Thread Bram Moolenaar
Frodak Baksik wrote: I realized that I forgot to update the dependency data for winclip.c in makefile. The following is a patch after vim_patch.diff is applied. Index: Makefile Thanks. Also, is there anything I can do to help get the original patch accepted? Ask a few people to try it

Re: Multiple Opens to Write

2007-02-14 Thread Bram Moolenaar
Bill McCarthy wrote: I'm alpha testing software for Windows that archives files whenever they are opened for writing. Testing with Gvim, I noticed that the program's log showed multiple open for write entries by simply opening a file with Gvim and doing a :wq command. The author of the

Re: RFC: use hunspell dictionaries

2007-02-14 Thread Bram Moolenaar
Karsten Hopp wrote: Caolan McNamara wrote a patch for vim-7 to use hunspell dictionaries directly. This allows us to use one single set of dictionaries for OpenOffice, maybe firefox/thunderbird and vim. Please have a look at his comments at

RE: Win64-related patches

2007-02-14 Thread Michael Wookey
Michael Wookey wrote: One bug that I didn't fix. Build gvim.exe with OLE=no, run 'gvim - register', and watch it crash while trying to display an error message. This seems to fix the bug... Index: src/message.c ===