Re: Disabling *system-wide* plugins

2006-12-01 Thread DervishD
Hi Bill :)) * Bill McCarthy [EMAIL PROTECTED] dixit: On Thu 30-Nov-06 2:26pm -0600, DervishD wrote: I want to be able to NOT load the plugins in my system-wide runtime directory, and instead loading my own set of plugins, and only those. So far, I know that set noloadplugins will do

Re: suggestions for ssh under windows

2006-12-01 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: A.J.Mechelynck [EMAIL PROTECTED] 写于 2006-12-01 04:58:02: For individual Unix-like programs needed for work in a native-Windows environment, I recommend getting them from the GnuWin32 project on sourceforge if it has them ( http://gnuwin32.sourceforge.net/ or something

Re: multiples search and replace in the same command?

2006-12-01 Thread Vigil
This could be construed as one command: %s/e/EEE/g | %s/a/AAA/g On Thu, 30 Nov 2006, Tanoor Dieng wrote: Hi, i'm trying to replace all occurrences of characaters like é, è, ê etc ... by their corresponding htmlentities. To do that, i use the following command: %s/é/\eacute;/g The problem

Re: multiples search and replace in the same command? (fwd)

2006-12-01 Thread Vigil
-- Forwarded message -- Date: Fri, 1 Dec 2006 11:05:48 +0100 From: Tanoor Dieng [EMAIL PROTECTED] To: Vigil [EMAIL PROTECTED] Subject: Re: multiples search and replace in the same command? On 12/1/06, Vigil [EMAIL PROTECTED] wrote: This could be construed as one command:

Re: Matching JUST the nth occurence of a text in a line

2006-12-01 Thread zzapper
A.J.Mechelynck [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Bill McCarthy wrote: On Thu 30-Nov-06 11:49pm -0600, Peter Hodge wrote: --- Bill McCarthy wrote: On Thu 30-Nov-06 10:24pm -0600, Peter Hodge wrote: --- Bill McCarthy wrote: On Thu 30-Nov-06 9:20pm -0600, Peter Hodge wrote:

Re: Disable mapleader in insert mode

2006-12-01 Thread Ying Bian
Tony, Yes, you got it. I just checked it and found a couple insert mode mappings with an initial comma. They are defined by a plugin. I uninstalled that plugin and the delay went away. Thanks, -- B.Y. On 11/30/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Ying Bian wrote: Vimers, I set

Call a vim function from the command line

2006-12-01 Thread Samuel Wright
Hi All, Is it possible to invoke a function in vim automatically? I'd like to process a text file automatically. I *could* write an onload for the specific file that calls a functions, saves and exists, but it does not strike me as very elegant. Is there anything like vim -auto -text_file

Re: suggestions for ssh under windows

2006-12-01 Thread Charles E Campbell Jr
Charles E Campbell Jr wrote: I have a netrw user using WinXP who wants to use ssh; currently, he doesn't have such an executable. I tend to use cygwin, but that's like asking one to build a home instead of new cabinets for the kitchen. So, where can he get ssh for WinXP? I'm likely to put a

Re: Call a vim function from the command line

2006-12-01 Thread Thomas
Is it possible to invoke a function in vim automatically? I'd like to process a text file automatically. I *could* write an onload for the specific file that calls a functions, saves and exists, but it does not strike me as very elegant. Is there anything like vim -auto -text_file -function

Re: Matching JUST the nth occurence of a text in a line

2006-12-01 Thread Charles E Campbell Jr
Peter Hodge wrote: Try: /^.\{-}home.\{-}\zshome for your reference: \{-} makes the '.' match as little as possible \zs makes the search match begin at this point in the pattern To generalize to the n-th occurrence: (put the qty of skipped matches in N)

Knowing the name vim was invoked under

2006-12-01 Thread DervishD
Hi all :) I would like to share the same .vimrc for vim and view, so I can use view as a pager without having to use -u in the command line. So far, I've thought that the only way of knowing if I'm under vim or view mode is to check the value of readonly. Not perfect, but it will do.

Inverse Folding?

2006-12-01 Thread Vigil
Because I often want to concentrate on a small section of code in a large script, and because my terminal window is large, I wondered if it was possible to select some text and have all other text, ie. the surrounding text, fade out in colour, or use a darker colour or something, so that when I

Re: Inverse Folding?

2006-12-01 Thread Charles E Campbell Jr
Vigil wrote: Because I often want to concentrate on a small section of code in a large script, and because my terminal window is large, I wondered if it was possible to select some text and have all other text, ie. the surrounding text, fade out in colour, or use a darker colour or

Re: Matching JUST the nth occurence of a text in a line

2006-12-01 Thread mzyzik
All, I am puzzled by a slightly more complicated version: how to match a '%' character following the 2nd occurrence of home? --Matt On Fri, Dec 01, 2006 at 09:09:17AM -0500, Charles E Campbell Jr wrote: Peter Hodge wrote: Try: /^.\{-}home.\{-}\zshome for your reference:

Re: Matching JUST the nth occurence of a text in a line

2006-12-01 Thread Charles E Campbell Jr
[EMAIL PROTECTED] wrote: I am puzzled by a slightly more complicated version: how to match a '%' character following the 2nd occurrence of home? /^.\{-}\%(home.\{-1,}\)\{N}home.\{-}\zs% where N is 1 for the 2nd occurrence (N is 2 for the third occurrence, etc). This pattern

Re: Useful Tools to Assist Editing (Not just VIM)

2006-12-01 Thread Aaron Griffin
On 11/30/06, zzapper [EMAIL PROTECTED] wrote: I've done a page to describe these tools in more details. http://successtheory.com/tips/vimtools.php Related note, but not on topic: I like slimKEYS under windows for global hotkey management: http://slimcode.com/slimKEYS/

RE: I can't make gvim the default application for .txt files in WinXP

2006-12-01 Thread Jeffrey Robertson
Thanks for replying. I do this and it doesn't work. By gvim, I assume you mean gvim.exe. When I do this, after I select gvim.exe and that dialog closes, the Open with dialog still shows Notepad selected. I can't get gvim to show up as an option in the program chooser list. I can get vim,

question on gf and path

2006-12-01 Thread Ben K.
Is there a way to make gf open some.file from this line? Include(/includes/some.file); where the file is actually sitting under web server root, like /var/www/html/includes/some.file I tried adding /var/www/html to the :set path but vim will not recognize it. /var/www/html/;

RE: I can't make gvim the default application for .txt files in WinXP

2006-12-01 Thread Krall, Ed-P27726
I have many file types mapped into GVIM: .txt, .lst, .cfg, and others. Go to Windows explorer (my computer), tools -- Folder Options, and select the File Types tab. Select the extestion or file type, click the Change button, and select or specify the application. Ed -Original

RE: I can't make gvim the default application for .txt files in WinXP

2006-12-01 Thread Jeffrey Robertson
That's just a different way into the same dialog box I used in the first place. It doesn't work for me. Although I can select gvim.exe, it doesn't actually take effect. To be clear: 1) I click Change It says notepad is the default. 2) I click browse, and pick gvim.exe, and click Open. 3)

Re: I can't make gvim the default application for .txt files in WinXP

2006-12-01 Thread Russell Bateman
I have had inexplicable and inconsistent trouble with Windoz doing this at least since back in version 98. It's infuriating. Jeffrey Robertson wrote: That's just a different way into the same dialog box I used in the first place. It doesn't work for me. Although I can select gvim.exe, it

Re: suggestions for ssh under windows

2006-12-01 Thread A.J.Mechelynck
Charles E Campbell Jr wrote: Charles E Campbell Jr wrote: I have a netrw user using WinXP who wants to use ssh; currently, he doesn't have such an executable. I tend to use cygwin, but that's like asking one to build a home instead of new cabinets for the kitchen. So, where can he get ssh

Re: Useful Tools to Assist Editing (Not just VIM)

2006-12-01 Thread zzapper
Gary Johnson [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On 2006-12-01, Troy Piggins [EMAIL PROTECTED] wrote: * zzapper [EMAIL PROTECTED] : I've been using 'external' for quite a while and am very happy with it. http://bur.st/~benc/?p=external I found out about it from

Re: Matching JUST the nth occurence of a text in a line

2006-12-01 Thread Bill McCarthy
On Fri 1-Dec-06 1:59am -0600, A.J.Mechelynck wrote: He gave it. In the above case, you highlight not only the 2nd occurrence but also the 4th, 6th, etc. Of course. I was so focused on (1) the second on the line and (2) the shortest match first algorithm of non-greedy constructs (which

Re: Useful Tools to Assist Editing (Not just VIM)

2006-12-01 Thread Karl Guertin
I'm surprised nobody's mentioned AutoHotkey, the swiss army knife of windows utilities. http://www.autohotkey.com/

RE: I can't make gvim the default application for .txt files in WinXP

2006-12-01 Thread Jeffrey Robertson
Doesn't matter whether that box is ticked or not. I can't open with gvim. From: Dudley Fox [mailto:[EMAIL PROTECTED] Sent: Friday, December 01, 2006 1:14 PM To: Robertson, Jeffrey (CAR:QW32); vim@vim.org Subject: Re: I

Re: I can't make gvim the default application for .txt files in WinXP

2006-12-01 Thread Sean Plank
When I use tools -- Folder Options File Types tab, Select the extestion or file type, click the Change button, browse to gvim. gvim shows up as Vi Improved - A Text Editor in the Open with dialog box. Is that what you are seeing? Vi Improved - A Text Editor is gvim Sean Plank 253.815.9626

Re: question on gf and path

2006-12-01 Thread Yakov Lerner
On 12/1/06, Ben K. [EMAIL PROTECTED] wrote: Is there a way to make gf open some.file from this line? Include(/includes/some.file); where the file is actually sitting under web server root, like /var/www/html/includes/some.file I tried adding /var/www/html to the :set path

Pasting utf8

2006-12-01 Thread Bill Moseley
VIM - Vi IMproved 7.0 (2006 May 7, compiled Nov 15 2006 16:24:17) Included patches: 1-164 I don't normally use utf8, but I have a uxterm running on Linux. If I copy and paste some UTF8 text from Firefox into Vim I see: Weeding for Your Library\u2019s Health

Re: question on gf and path

2006-12-01 Thread Ben K.
On Fri, 1 Dec 2006, Yakov Lerner wrote: Also can be that leading '/' in /includes/some.file makes vim believe this is absolute pathname. Try on Include(includes/some.file); That's where I want to get advice... That notation using DocumentRoot like /includes/some.file is universal in web

Re: I can't make gvim the default application for .txt files in WinXP

2006-12-01 Thread A.J.Mechelynck
Jeffrey Robertson wrote: Thanks for replying. I do this and it doesn't work. By gvim, I assume you mean gvim.exe. [...] By gvim what is meant under Windows is the entry labeled VI Improved - A Text Editor. Best regards, Tony.

RE: I can't make gvim the default application for .txt files in WinXP

2006-12-01 Thread Jeffrey Robertson
No. That's my problem. How does gvim tell Windows to make itself an option in this list? -Original Message- From: Sean Plank [mailto:[EMAIL PROTECTED] Sent: Friday, December 01, 2006 2:27 PM To: vim@vim.org Subject: Re: I can't make gvim the default application for .txt files in

Re: if \xe4==\xe4 failes,why?

2006-12-01 Thread Charles E Campbell Jr
mbbill wrote: I met a very strange problem recently, that is when I set the following options: set encoding=utf-8 set ignorecase then the expression: if \xe4==\xe4 fails. I test it using: if \xe4==\xe4 echo test endif but I got nothing output, why ? Try set encoding=utf-8 if \xe4 ==

Re: question on gf and path

2006-12-01 Thread Yegappan Lakshmanan
Hi, On 12/1/06, Ben K. [EMAIL PROTECTED] wrote: Is there a way to make gf open some.file from this line? Include(/includes/some.file); where the file is actually sitting under web server root, like /var/www/html/includes/some.file I tried adding /var/www/html to the :set

Re: Knowing the name vim was invoked under

2006-12-01 Thread A.J.Mechelynck
DervishD wrote: Hi all :) I would like to share the same .vimrc for vim and view, so I can use view as a pager without having to use -u in the command line. So far, I've thought that the only way of knowing if I'm under vim or view mode is to check the value of readonly. Not perfect,

Re: question on gf and path

2006-12-01 Thread Ben K.
I'll check it out. Thanks. On Fri, 1 Dec 2006, Yegappan Lakshmanan wrote: Hi, On 12/1/06, Ben K. [EMAIL PROTECTED] wrote: Is there a way to make gf open some.file from this line? Include(/includes/some.file); where the file is actually sitting under web server root, like

Re: question on gf and path

2006-12-01 Thread Tim Chase
Is there a way to make gf open some.file from this line? Include(/includes/some.file); where the file is actually sitting under web server root, like /var/www/html/includes/some.file I tried adding /var/www/html to the :set path but vim will not recognize it. /var/www/html/; was the same.

Re: if \xe4==\xe4 failes,why?

2006-12-01 Thread A.J.Mechelynck
Charles E Campbell Jr wrote: mbbill wrote: I met a very strange problem recently, that is when I set the following options: set encoding=utf-8 set ignorecase then the expression: if \xe4==\xe4 fails. I test it using: if \xe4==\xe4 echo test endif but I got nothing output, why ? Try

Re: Matching JUST the nth occurence of a text in a line

2006-12-01 Thread mzyzik
On Fri, Dec 01, 2006 at 10:34:14AM -0500, Charles E Campbell Jr wrote: [EMAIL PROTECTED] wrote: I am puzzled by a slightly more complicated version: how to match a '%' character following the 2nd occurrence of home? /^.\{-}\%(home.\{-1,}\)\{N}home.\{-}\zs% This pattern doesn't

Re: I can't make gvim the default application for .txt files in WinXP

2006-12-01 Thread A.J.Mechelynck
Jeffrey Robertson wrote: No. That's my problem. How does gvim tell Windows to make itself an option in this list? [...] I'm not sure; I think it's something in the registry. Maybe the install program should do it. Have you installed Vim from Steve Hall's self-installer

Re: if \xe4==\xe4 failes,why?

2006-12-01 Thread Charles E Campbell Jr
A.J.Mechelynck wrote: Charles E Campbell Jr wrote: mbbill wrote: I met a very strange problem recently, that is when I set the following options: set encoding=utf-8 set ignorecase then the expression: if \xe4==\xe4 fails. I test it using: if \xe4==\xe4 echo test endif but I got nothing

Re: Matching JUST the nth occurence of a text in a line

2006-12-01 Thread Charles E Campbell Jr
[EMAIL PROTECTED] wrote: On Fri, Dec 01, 2006 at 10:34:14AM -0500, Charles E Campbell Jr wrote: [EMAIL PROTECTED] wrote: I am puzzled by a slightly more complicated version: how to match a '%' character following the 2nd occurrence of home?

Re: Inverse Folding?

2006-12-01 Thread Tim Chase
Because I often want to concentrate on a small section of code in a large script, and because my terminal window is large, I wondered if it was possible to select some text and have all other text, ie. the surrounding text, fade out in colour, or use a darker colour or something, so that when I

Re: if \xe4==\xe4 failes,why?

2006-12-01 Thread A.J.Mechelynck
Charles E Campbell Jr wrote: A.J.Mechelynck wrote: [...] It's not as simple as that, Dr. Chip: I get 0 (zero) as reply to :echo (\xe4 == \xe4) when 'encoding' is UTF-8. However, the byte 0xE4 by itself is not a valid character in UTF-8. I also get 1 (one) in reply to :echo (ä ==

Re: question on gf and path

2006-12-01 Thread Marc Weber
On Fri, Dec 01, 2006 at 10:30:26AM -0600, Ben K. wrote: Is there a way to make gf open some.file from this line? Include(/includes/some.file); where the file is actually sitting under web server root, like /var/www/html/includes/some.file I tried adding /var/www/html to

Re: question on gf and path

2006-12-01 Thread Marc Weber
Include(includes/some.file) it's somewhat OK, but gf requires me to actually save the source file before it will accept the change from /includes... to includes. Do I have missed something or would set nocompatible first line in your .vimrc ! set hidden prevent vim

highlighting tabs

2006-12-01 Thread Lev Lvovsky
Can anyone suggest the best way to be able to highlight tabs (versus softtabs) selectively? meaning, at the push of a button I can have that feature turned on, and pressing it again turns it off - all the while not messing with my search buffer? thanks! -lev

Re: highlighting tabs

2006-12-01 Thread Yakov Lerner
On 12/2/06, Lev Lvovsky [EMAIL PROTECTED] wrote: Can anyone suggest the best way to be able to highlight tabs (versus softtabs) selectively? meaning, at the push of a button I can have that feature turned on, and pressing it again turns it off - all the while not messing with my search buffer?

Re: highlighting tabs

2006-12-01 Thread Lev Lvovsky
On Dec 1, 2006, at 4:53 PM, Yakov Lerner wrote: On 12/2/06, Lev Lvovsky [EMAIL PROTECTED] wrote: Can anyone suggest the best way to be able to highlight tabs (versus softtabs) selectively? meaning, at the push of a button I can have that feature turned on, and pressing it again turns it off -

Re: highlighting tabs

2006-12-01 Thread A.J.Mechelynck
Lev Lvovsky wrote: Can anyone suggest the best way to be able to highlight tabs (versus softtabs) selectively? meaning, at the push of a button I can have that feature turned on, and pressing it again turns it off - all the while not messing with my search buffer? thanks! -lev Method I.

Re: highlighting tabs

2006-12-01 Thread Yakov Lerner
On 12/2/06, Lev Lvovsky [EMAIL PROTECTED] wrote: On Dec 1, 2006, at 4:53 PM, Yakov Lerner wrote: On 12/2/06, Lev Lvovsky [EMAIL PROTECTED] wrote: Can anyone suggest the best way to be able to highlight tabs (versus softtabs) selectively? meaning, at the push of a button I can have that

Re: Matching JUST the nth occurence of a text in a line

2006-12-01 Thread Yakov Lerner
On 12/1/06, Bill McCarthy [EMAIL PROTECTED] wrote: One might think so, but also note: :help non-greedy I don't have tag 'non-greedy' in the help. I have vim 7.9.164 from svn. Where do I get more updated helpfiles ? Yakov

RE: save as in Windows menu

2006-12-01 Thread Leiss, Jack
I click on save as in the file menu of Windows. I do not get the save as window. Nothing happens. It used to work, but suddenly stopped. Some other menu selections work and some don't. How can I get save as to work from the file menu? I am using VIM version 5.3 and

Re: highlighting tabs

2006-12-01 Thread A.J.Mechelynck
Yakov Lerner wrote: On 12/2/06, Lev Lvovsky [EMAIL PROTECTED] wrote: Can anyone suggest the best way to be able to highlight tabs (versus softtabs) selectively? meaning, at the push of a button I can have that feature turned on, and pressing it again turns it off - all the while not messing

Re: Matching JUST the nth occurence of a text in a line

2006-12-01 Thread Yakov Lerner
On 12/2/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 12/1/06, Bill McCarthy [EMAIL PROTECTED] wrote: One might think so, but also note: :help non-greedy I don't have tag 'non-greedy' in the help. I have vim 7.9.164 7.0.164, sorry, not 7.9.164. Still, where do I get more updated

Re: save as in Windows menu

2006-12-01 Thread A.J.Mechelynck
Leiss, Jack wrote: I click on save as in the file menu of Windows. I do not get the save as window. Nothing happens. It used to work, but suddenly stopped. Some other menu selections work and some don't. How can I get save as to work from the file menu? I am using VIM

Re: Matching JUST the nth occurence of a text in a line

2006-12-01 Thread A.J.Mechelynck
Yakov Lerner wrote: On 12/1/06, Bill McCarthy [EMAIL PROTECTED] wrote: One might think so, but also note: :help non-greedy I don't have tag 'non-greedy' in the help. I have vim 7.9.164 from svn. Where do I get more updated helpfiles ? Yakov By ftp:

Re: Matching JUST the nth occurence of a text in a line

2006-12-01 Thread Bill McCarthy
On Fri 1-Dec-06 7:19pm -0600, Yakov Lerner wrote: On 12/1/06, Bill McCarthy [EMAIL PROTECTED] wrote: One might think so, but also note: :help non-greedy I don't have tag 'non-greedy' in the help. I have vim 7.9.164 from svn. Where do I get more updated helpfiles ? I see Tony already