Re: insert space after comma based on context

2006-06-30 Thread Luc Hermitte
Hello, * On Fri, Jun 30, 2006 at 09:03:57AM +0800, Dr Bean <[EMAIL PROTECTED]> wrote: > > > Is there a way to not insert a space based on context around the > > > cursor so that if the text before cursor is [xxx, or (xxx, no space > > > will be inserted? > > > He used the function InsertIfNotAfte

Re: Disable Windows shortcuts in GVIM

2006-06-30 Thread Marc Demlenne
That's it ... Thanks very much ! On 6/29/06, Tim Chase <[EMAIL PROTECTED]> wrote: > How is it possible, using GVIM, to forbid Windows executing commands > destinated to VIM? > e.g CTRL-V (Virtual select) is interpreted as "Paste" by MS. CTRL-A as > "select all", ... > How can I disable this, an

Preserving undo through save

2006-06-30 Thread Thomas Michael Engelke
Hello! I'm not sure if it was always the case or if this is a recent change (through vim 7). I am not able to undo anything after saving a file. Is this normal? What settings are involved? How can I change this behaviour? The help-file for "undo" is pretty silent regarding this. Regards, Thomas

Re: Preserving undo through save

2006-06-30 Thread Anthony Campbell
On 30 Jun 2006, Thomas Michael Engelke wrote: > Hello! > > I'm not sure if it was always the case or if this is a recent change > (through vim 7). I am not able to undo anything after saving a file. > Is this normal? What settings are involved? How can I change this > behaviour? The help-file for

Get hold of a function name

2006-06-30 Thread Preben Randhol
Hi I use the script pydoc.vim (http://www.vim.org/scripts/script.php?script_id=910) to pull out the documentation of functions in python. It is a great script. One can use \pW or \pw to get the documentation of the function under the cursor (by using Word, word). Problem is that if one has the fo

Re: Preserving undo through save

2006-06-30 Thread Michael Naumann
Do you have :set hidden If not, you should. HTH, Michael On Friday 30 June 2006 11:59, Thomas Michael Engelke wrote: > Hello! > > I'm not sure if it was always the case or if this is a recent change > (through vim 7). I am not able to undo anything after saving a file. > Is this normal? What se

reloading of current file blows off syntaxhighlighting

2006-06-30 Thread tosch
Hi, i'm using vim for viewing logfiles, because vims syntaxhighlighting gives me a quick and good overview on any messages. When the log-file is modified by an external application, vim notices that and prompts a W11-warning. If i now push the file-read-button, the file is reloaded. All syntaxhig

Re: Preserving undo through save

2006-06-30 Thread Thomas Michael Engelke
2006/6/30, Michael Naumann <[EMAIL PROTECTED]>: Do you have :set hidden If not, you should. HTH, Michael On Friday 30 June 2006 11:59, Thomas Michael Engelke wrote: > Hello! > > I'm not sure if it was always the case or if this is a recent change > (through vim 7). I am not able to undo anythi

Re: Get hold of a function name

2006-06-30 Thread Preben Randhol
Preben Randhol <[EMAIL PROTECTED]> wrote on 30/06/2006 (13:01) : > Hi > > I use the script pydoc.vim > (http://www.vim.org/scripts/script.php?script_id=910) > to pull out the documentation of functions in python. It is a great > script. One can use \pW or \pw to get the documentation of the funct

Problem doing diffs using win 2000

2006-06-30 Thread Wolfgang Schmidt
Hi, I just installed gvim70 (from the self-extracting exe) on WIN 2K system. Everything seems to work, exept the diff functionality. If I do a diff, e.g. C:\Programme\Vim>vim _vimrc -d _vimrc.bak I get 2 Dateien zum Editieren Das angegebene Programm kann nicht ausgeführt werden. E97: Ka

s?

2006-06-30 Thread Wim R. Crols
Hi, Not really a request for help, but I was wondering if you guys ever use the 's' command. It's just a shortcut for 'cl', which I almost never need. Since I don't assume it was put in to be complete or something, I'm intrigued by it's enigmatic purpose. :) Thanks, Wim

Re: s?

2006-06-30 Thread Tim Chase
Not really a request for help, but I was wondering if you guys ever use the 's' command. It's just a shortcut for 'cl', which I almost never need. Since I don't assume it was put in to be complete or something, I'm intrigued by it's enigmatic purpose. :) I'll admit that it took me a while (sev

Re: s?

2006-06-30 Thread Peter Slizik
> Not really a request for help, but I was wondering if you guys ever use > the 's' command. > It's just a shortcut for 'cl', which I almost never need. Since I don't > assume it was put in to be complete or something, I'm intrigued by it's > enigmatic purpose. :) Well, I use it when I want to re

Re: s?

2006-06-30 Thread Wim R. Crols
Peter Slizik wrote: Not really a request for help, but I was wondering if you guys ever use the 's' command. It's just a shortcut for 'cl', which I almost never need. Since I don't assume it was put in to be complete or something, I'm intrigued by it's enigmatic purpose. :) Well, I use it

Re: s?

2006-06-30 Thread Michael Naumann
On Friday 30 June 2006 15:16, Wim R. Crols wrote: > Peter Slizik wrote: > >> Not really a request for help, but I was wondering if you guys ever use > >> the 's' command. > >> It's just a shortcut for 'cl', which I almost never need. Since I don't > >> assume it was put in to be complete or somethi

RE: s?

2006-06-30 Thread Gene Kwiecinski
>Not really a request for help, but I was wondering if you guys ever use >the 's' command. All the time... >It's just a shortcut for 'cl', which I almost never need. Since I don't >assume it was put in to be complete or something, I'm intrigued by it's >enigmatic purpose. :) Comes in handy when

Re: s?

2006-06-30 Thread Eric Arnold
I can't remember why or when (it was so long ago), but I've always used 's' and 'S' in 'vi'. It never really occured to me to use 'cl' instead. It was just another command in the list. It was part of the original 'vi', but I'm not sure if you meant that by 'put in to be complete'. It is no mo

Re: s?

2006-06-30 Thread Russell Bateman
Hehehe, if the expense of a keyboard were anywhere near the top of the list of my concerns, life would be grand indeed! Best, Russ Gene Kwiecinski wrote: [snip] All those keystrokes add up, so why wear out your keyboard prematurely?

Re: Disable Windows shortcuts in GVIM

2006-06-30 Thread Robert Hicks
Marc Demlenne wrote: That's it ... Thanks very much ! I did this recently as well. I figure why would I want platform specific when I use it multi-platform. For me, just learning, I have learn a whole lot more about how to use Vim. Plus the mswin stuff can cause issues with things (I read th

strange :w behavior

2006-06-30 Thread Dimitriy V. Masterov
I am having a strange issue with :w. Instead of just writing the whole buffer to the current file, it also creates another copy of the file. I don't think this is normal behavior. Is there a way to turn it off? I am running Vim 7.0 on XP. Dimitriy

Re: strange :w behavior

2006-06-30 Thread Yakov Lerner
On 6/30/06, Dimitriy V. Masterov <[EMAIL PROTECTED]> wrote: I am having a strange issue with :w. Instead of just writing the whole buffer to the current file, it also creates another copy of the file. Copy where ? Under which name ? Yakov

Re: strange :w behavior

2006-06-30 Thread Yakov Lerner
On 6/30/06, Dimitriy V. Masterov <[EMAIL PROTECTED]> wrote: > > I am having a strange issue with :w. Instead of just writing the whole > > buffer to the current file, it also creates another copy of the file. > > Copy where ? Under which name ? In the same directory, with the the same name, but

Re: Problem doing diffs using win 2000

2006-06-30 Thread Yegappan Lakshmanan
Hello, On 6/30/06, Wolfgang Schmidt <[EMAIL PROTECTED]> wrote: Hi, I just installed gvim70 (from the self-extracting exe) on WIN 2K system. Everything seems to work, exept the diff functionality. If I do a diff, e.g. C:\Programme\Vim>vim _vimrc -d _vimrc.bak I get 2 Dateien zum Editiere

Re: strange :w behavior

2006-06-30 Thread Dimitriy V. Masterov
> I am having a strange issue with :w. Instead of just writing the whole > buffer to the current file, it also creates another copy of the file. Copy where ? Under which name ? It is copied to the same directory, with the the same name, but a tilde added at the end, like file.txt~. DVM

Re: strange :w behavior

2006-06-30 Thread Yakov Lerner
On 6/30/06, Dimitriy V. Masterov <[EMAIL PROTECTED]> wrote: > > I am having a strange issue with :w. Instead of just writing the whole > > buffer to the current file, it also creates another copy of the file. > > Copy where ? Under which name ? In the same directory, with the the same name, but

Re: strange :w behavior

2006-06-30 Thread Dimitriy V. Masterov
Great advice. Putting "set nobackup" in my _gvimrc remedies the problem. I believe that the underlying issue was the compatible setting. DVM

Any programs to format numbers out there?

2006-06-30 Thread Mun Johl
Hi, When in vim, I often want to format numbers. For example, when editing a Verilog file, I want to quickly change 12345678 to 12_345_678 for readability; and when editing an email, sometimes I'd like to change 12345678 to 12,345,678 . I did a search for programs to format numbers, but didn't r

Re: Any programs to format numbers out there?

2006-06-30 Thread Jean-Pierre Radley
Mun Johl typed (on Fri, Jun 30, 2006 at 03:43:34PM -0700): | Hi, | | When in vim, I often want to format numbers. For example, when editing | a Verilog file, I want to quickly change 12345678 to 12_345_678 for | readability; and when editing an email, sometimes I'd like to change | 12345678 to 12

Re: Any programs to format numbers out there?

2006-06-30 Thread Trent Gamblin
On Fri, 2006-06-30 at 15:43 -0700, Mun Johl wrote: > Hi, > > When in vim, I often want to format numbers. For example, when editing > a Verilog file, I want to quickly change 12345678 to 12_345_678 for > readability; and when editing an email, sometimes I'd like to change > 12345678 to 12,345,678