Re [2]: again: % does not work with ' ( '

2006-08-30 Thread A.J.Mechelynck
A.J.Mechelynck wrote: Peter Hodge wrote: Sorry, In my example I meant to use if("string(string") and not if('string(string') because double-quotes DO work, single-quotes do not. - Peter I don't know if it's a bug or a feature, but parens/brackets/braces which are _alone_ inside sing

Re: Re [2]: again: % does not work with ' ( '

2006-08-30 Thread Peter Hodge
Hey, Thanks for that important clue. It seems the secret to making it work is in the values of the b:match_skip and b:match_words variables. Thank you, this problem has been bugging me for a while. regards, Peter > > Addendum: It depends on the 'filetype' and possibly on whether %-jumping >

Re: Re [2]: again: % does not work with ' ( '

2006-08-30 Thread A.J.Mechelynck
Peter Hodge wrote: Hey, Thanks for that important clue. It seems the secret to making it work is in the values of the b:match_skip and b:match_words variables. Thank you, this problem has been bugging me for a while. regards, Peter Addendum: It depends on the 'filetype' and possibly on whet

Re: Re [2]: again: % does not work with ' ( '

2006-08-30 Thread Benji Fisher
Yes, b:match_skip is relevant here. The matchit default is to skip strings and comments (unless you use % starting inside a string or comment). The matchit script relies on the syntax mechanism to recognize strings and comments. HTH --Benji Fisher On Wed

Re: vim modes switching problem

2006-08-30 Thread Benji Fisher
On Thu, Aug 24, 2006 at 12:17:45PM +0200, Radoslaw Garbacz wrote: > > Hello, > > I have a problem with switching from the command-line mode to the normal one > and back to the command-line. > > The command I would like to do is (just an example): > command-line:>call search("class","")

Printing in Windows

2006-08-30 Thread Chris Sutcliffe
I'm using vim 7.0.076 on Windows and I'm trying to print the current buffer. Doing a ':ha' doesn't work because it is trying to copy the file to LPT1: C:\WINDOWS\system32\cmd.exe /c copy C:\WINDOWS\TEMP\VIp1C.tmp LPT1: C:\WINDOWS\TEMP\VIo1D.tmp 2>&1 which on my system doesn't work because I u

Re: Contextual highlighting problem

2006-08-30 Thread Yongwei Wu
On 8/28/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: Yongwei Wu wrote: [...] > However, it is only a *little* better. Scroll down to make the first > comment line disappear on the top of the Vim window, and press Ctrl-L, > highlighting will have problems. C comments have not this problem. > > Mo

Re: Printing in Windows

2006-08-30 Thread Noel Henson
On Wednesday 30 August 2006 07:09, you wrote: > I'm using vim 7.0.076 on Windows and I'm trying to print the current > buffer. Doing a ':ha' doesn't work because it is trying to copy the > file to LPT1: > > C:\WINDOWS\system32\cmd.exe /c copy C:\WINDOWS\TEMP\VIp1C.tmp LPT1: > >C:\WINDOWS\TEMP\VIo1

Re: [VIM] Re: search/replace from a given column

2006-08-30 Thread Walter Cazzola
On Tue, 29 Aug 2006, Tim Chase wrote: :%s/\%>15cfoo\%<30c/bar/g will substitute "foo" with "bar" only between columns 15 and 30 (adjust for the off-by-one that may or not may occur) great this one is doing exactly what I was looking for, thanks a lot. I imagine that regular express

Re: Printing in Windows

2006-08-30 Thread Chris Sutcliffe
> According to ':help ha' a dialog is supposed to be displayed to allow > selection of printer, paper size, etc. Unfortunately this isn't > happening, is there something I'm missing? Go to your printer and fax settings. Right-click on the printer and select properties. Click the Ports tab. Click

Re: Printing in Windows

2006-08-30 Thread Tim Chase
It will work. The problem is I have mulitple network printers and depending on where I am I will have to set the LPT1 port each time. I'm just curious since the help states that the print dialog should be displayed why it is not. You are correct...or your expectations are. :) It does work as

Re: Printing in Windows

2006-08-30 Thread Chris Sutcliffe
Though you didn't specify whether you're using vim or gvim, I don't know if using non-gvim would exhibit odd behaviors like you describe. Additionally, are you using the default build, or perhaps something like a cygwin build? Don't know if that has anything to do with it. I'm using gvim compi

Re: Printing in Windows

2006-08-30 Thread Tim Chase
I'm using gvim compiled from source with MinGW. I've tried using 'Print' from the 'File' menu as well as ':ha' and they both behave the same. Under the covers, they should be the same thing, so I'm not surprised you get the same behavior. :) pexpr? printexpr=system('copy' . ' ' . v:fname

Latex-Spellchecker and C-s freezes Vi

2006-08-30 Thread Thomas Unternaehrer
Hi, I'm really happy with ViM and its possibilities so far, but I was not able to fix the following two problems: 1. Is it possible to define some Latex environments (\begin{verbatim}... \end{verbatim}) and fonts (\texttt{...}) that are not checked by the spellchecker? And is it possible to

Re: Printing in Windows

2006-08-30 Thread Tim Chase
:set pexpr= I get E15: Invalid expression errors. Additionally, the "Compilation" section of the output from ":version" might give further hints. Particularly information about being linked to comdlg32.lib, comctl32.lib, gdi32.lib, shell32.lib, and winspool.lib (though others might be

Re: Printing in Windows

2006-08-30 Thread Chris Sutcliffe
Solved!!! Strangely, I get an error about pexpr not being available in my default win32 build (I don't have +postscript built in). Maybe having +postscript precludes the use of the Win32 common print dialog? That is indeed the issue. I disabled postscript and now the print dialog displays wh

Re: Latex-Spellchecker and C-s freezes Vi

2006-08-30 Thread Yakov Lerner
On 8/30/06, Thomas Unternaehrer <[EMAIL PROTECTED]> wrote: 2. Every time I hit Vi freezes immediately (have to close the window). I tried to unmap it with "map " and "map! " and tried to map it to something different with "imap :wi" but nothing helped. This is issue of your terminal emulato

Can I make my sesion forget it's a session

2006-08-30 Thread Marius Roets
Hi everybody, I have several sessions that I have been using for quite some time. My .vimrc and plugins/ftplugins change constantly, and I am missing several more recent features in some of my saved sessions. Is there a way I can make a saved session forget all it's settings, and read the latest .

RE: Latex-Spellchecker and C-s freezes Vi

2006-08-30 Thread Gene Kwiecinski
>2. Every time I hit Vi freezes immediately (have to close the >window). I tried to unmap it with "map " and "map! >" and tried to map it to something different with "imap >:wi" but nothing helped. ^Q/^S (DC1/DC3) are terminal xon/xoff characters, respectively, typically used to momentarily pa

Re: Printing in Windows

2006-08-30 Thread A.J.Mechelynck
Chris Sutcliffe wrote: Solved!!! Strangely, I get an error about pexpr not being available in my default win32 build (I don't have +postscript built in). Maybe having +postscript precludes the use of the Win32 common print dialog? That is indeed the issue. I disabled postscript and now the

Re: Can I make my sesion forget it's a session

2006-08-30 Thread A.J.Mechelynck
Marius Roets wrote: Hi everybody, I have several sessions that I have been using for quite some time. My .vimrc and plugins/ftplugins change constantly, and I am missing several more recent features in some of my saved sessions. Is there a way I can make a saved session forget all it's settings,

Re: Latex-Spellchecker and C-s freezes Vi

2006-08-30 Thread Thomas Unternaehrer
Ok, thanks for your answers. helps a lot. Gene Kwiecinski wrote: 2. Every time I hit Vi freezes immediately (have to close the window). I tried to unmap it with "map " and "map! " and tried to map it to something different with "imap :wi" but nothing helped. ^Q/^S (DC1/DC3) are term

Copy/paste to another console

2006-08-30 Thread budsz
Hi, I've a little problem, I do remote box A with console A using putty (under MS) then using vim open file A, I do copy a line with yy in file A, so I do remote to box B with console B using putty (under MS), then open file B, the question how to do paste to file B in console B without mouse (I

Re: Copy/paste to another console

2006-08-30 Thread Yakov Lerner
On 8/30/06, budsz <[EMAIL PROTECTED]> wrote: Hi, I've a little problem, I do remote box A with console A using putty (under MS) then using vim open file A, I do copy a line with yy in file A, so I do remote to box B with console B using putty (under MS), then open file B, the question how to do

Re: Copy/paste to another console

2006-08-30 Thread Gabriel B.
Shift+insert because it's a pain to have to use the mouse. btw, i think the first ctrl+ins, shift+ins, shift+del copy/paste/cut where intended to use with the mouse with the left hand. just a random tought :) On 8/30/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 8/30/06, budsz <[EMAIL PROTE

Re: Copy/paste to another console

2006-08-30 Thread Tim Chase
I've a little problem, I do remote box A with console A using putty (under MS) then using vim open file A, I do copy a line with yy in file A, so I do remote to box B with console B using putty (under MS), then open file B, the question how to do paste to file B in console B without mouse (I do us

Re: Copy/paste to another console

2006-08-30 Thread Gabriel B.
Ooops. i don't think you can do that btw. ignore my previous answer, please you are copying from two putty under windows. so you must pass the text to the windows clipboard. i don't have a windows box right now, but i'm pretty sure putty don't gets vim's yanks. but if you manage to pass it to t

gvim + gnome nautilus

2006-08-30 Thread Gabriel B.
I've used gvim with gnome for some time. Now when i try to open a file with right click in the file nautilus' icon, open with gvim. I get: Erreur détectée en traitant BufReadCmd Auto commandes pour "file://*": error detected treating BufReadCmd Auto commandes for "file://*": is it something i m

Re: Copy/paste to another console

2006-08-30 Thread A.J.Mechelynck
budsz wrote: Hi, I've a little problem, I do remote box A with console A using putty (under MS) then using vim open file A, I do copy a line with yy in file A, so I do remote to box B with console B using putty (under MS), then open file B, the question how to do paste to file B in console B wit

Re: Copy/paste to another console

2006-08-30 Thread Gary Johnson
On 2006-08-31, budsz <[EMAIL PROTECTED]> wrote: > Hi, > > I've a little problem, I do remote box A with console A using putty > (under MS) then using vim open file A, I do copy a line with yy in > file A, so I do remote to box B with console B using putty (under MS), > then open file B, the questi

Re: gvim + gnome nautilus

2006-08-30 Thread A.J.Mechelynck
Gabriel B. wrote: I've used gvim with gnome for some time. Now when i try to open a file with right click in the file nautilus' icon, open with gvim. I get: Erreur détectée en traitant BufReadCmd Auto commandes pour "file://*": error detected treating BufReadCmd Auto commandes for "file://*":

I have got one "ml_get" error

2006-08-30 Thread Akria Sheng
I have got one error to crash vim. It happened when meet the following condition: A. must in Linux(solaris and winxp is OK) B. vim7.0(6.4 is ok) C. open one huge file(exceed 368710 bytes) then type ":sp ./" In general, it will split one window to show the filebrowse. But Vim will c

The location of dialog box

2006-08-30 Thread Akria Sheng
The dialog box which notice the file changed somtimes appear at strange location. my environment: 1. vim7.0(gtk) 2. "Hummingbird Exceed" to connect server and the display mode is multiple. It make the total task will appear on the taskbar of winXP, like a normal windows program. When I cli

Re: vim modes switching problem

2006-08-30 Thread Radoslaw Garbacz
On Wednesday 30 August 2006 15:18, Benji Fisher wrote: > On Thu, Aug 24, 2006 at 12:17:45PM +0200, Radoslaw Garbacz wrote: > > I have a problem with switching from the command-line mode to the normal > > one and back to the command-line. > > :help :execute Thank you very much for the hint. --

Re: I have got one "ml_get" error

2006-08-30 Thread A.J.Mechelynck
Akria Sheng wrote: I have got one error to crash vim. It happened when meet the following condition: A. must in Linux(solaris and winxp is OK) B. vim7.0(6.4 is ok) C. open one huge file(exceed 368710 bytes) then type ":sp ./" In general, it will split one window to show the filebrows