Windows, 'path', and "~"/$HOME

2006-06-26 Thread Maciej Kalisiak
I'm under Windows XP, and I'm having a devil of a time trying to set 'path' to a bunch of directories in my home directory. My $HOME (and thus presumably "~") point at c:\Documents and Settings\User\My Documents\Home. Doing something like set path=$HOME/src does not work (e.g., ":find" does not

Re: foldmethod=marker confusing brace matching syntax highlighting?

2006-06-26 Thread A.J.Mechelynck
Kamil Kisiel wrote: I've started using foldmethod=marker for folding in my C++ source files. Usually it works okay, but I find that several times a day the syntax highlighting seems to get confused and start highlighting braces after a particular fold in red, as if they did not have a matching br

foldmethod=marker confusing brace matching syntax highlighting?

2006-06-26 Thread Kamil Kisiel
I've started using foldmethod=marker for folding in my C++ source files. Usually it works okay, but I find that several times a day the syntax highlighting seems to get confused and start highlighting braces after a particular fold in red, as if they did not have a matching brace. This is never ac

Re: Man command not working with Vim 7

2006-06-26 Thread Trent Michael Gamblin
Benji Fisher wrote: I understand some of what is going on, but not all. The part I did not snip seems to be where the problem is. When I try it, I get something similar but with 1323 more lines, presumably the whole man page, instead of 17 lines. The GetPage() function is defined

Re: Man command not working with Vim 7

2006-06-26 Thread Eric Arnold
This $ vim -u NONE :runtime ftplugin/man.vim :Man cvs worked for me, and :r! man cvs | col -b failed with my normal .vimrc , so I tracked it down to needing: set shellxquote=\" The backslash is required. I had shellxquote=' for other situations. I seems like I've got some shell comman

Re: Man command not working with Vim 7

2006-06-26 Thread Benji Fisher
On Sun, Jun 25, 2006 at 08:16:54PM -0600, Trent Michael Gamblin wrote: > I'm having trouble getting the Man command working with Vim. I have the > line: > >runtime ftplugin/man.vim > > in my ~/.vimrc. When I type :Man I get this: > > >Vim: Warning: Output is not to a terminal > >Vim: Warni

RE: How to replace CR with LF

2006-06-26 Thread Steve Baldwin
Marvellous. Thanks again to all who responded. Steve > -Original Message- > From: Michael Naumann > Sent: Tuesday, 27 June 2006 7:30 AM > To: vim@vim.org > Subject: Re: How to replace CR with LF > > Yes there is, strange as it may seem: > > s/\r/\r/ > > does it > > HTH, Michael > >

Re: How to replace CR with LF

2006-06-26 Thread Michael Naumann
Yes there is, strange as it may seem: s/\r/\r/ does it HTH, Michael On Monday 26 June 2006 23:20, Steve Baldwin wrote: > Thanks all. That worked very nicely. > > I'm curious though - is there any way to substitute CR with LF using > regexp's? > > Thanks, > > Steve > > > -Original Messa

Re: Man command not working with Vim 7

2006-06-26 Thread Eric Arnold
On 6/26/06, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: Eric Arnold wrote: > I was having some problems getting manpageview to work on Windows: Thank you for the feedback! I'll look into it (I hope) later on my WinXP machine. Do you use cygwin? Yes.

Re: Man command not working with Vim 7

2006-06-26 Thread Charles E Campbell Jr
Eric Arnold wrote: I was having some problems getting manpageview to work on Windows: Thank you for the feedback! I'll look into it (I hope) later on my WinXP machine. Do you use cygwin? Regards, Chip Campbell

Re: How to replace CR with LF

2006-06-26 Thread Tim Chase
I'm curious though - is there any way to substitute CR with LF using regexp's? You could try the somewhat odd-looking :%s/\r/\r/g which has worked in some cases for me... -tim

RE: How to replace CR with LF

2006-06-26 Thread Steve Baldwin
Thanks all. That worked very nicely. I'm curious though - is there any way to substitute CR with LF using regexp's? Thanks, Steve > -Original Message- > From: Bill McCarthy > Sent: Tuesday, 27 June 2006 6:54 AM > To: Steve Baldwin > Cc: Vim List > Subject: Re: How to replace CR with LF

Re: Man command not working with Vim 7

2006-06-26 Thread Eric Arnold
I was having some problems getting manpageview to work on Windows: For :Man cat I got: Error detected while processing function 29_ManPageView: line 282: E485: Can't read file c:/DOCUME~1/Owner/LOCALS~1/Temp/VIo20F.tmp Error detected while processing C:/cygwin/home/Owner/vimfile

Re: How to replace CR with LF

2006-06-26 Thread Bill McCarthy
On Mon 26-Jun-06 3:06pm -0600, Steve Baldwin wrote: > I have a file containing carriage returns and I want to > replace them with line feeds. Note it is not CR-LF -> LF, > but just CR -> LF. Can someone please enlighten me as to > how to do this. If you don't have mac format in your 'ffs', firs

Re: How to replace CR with LF

2006-06-26 Thread A.J.Mechelynck
Steve Baldwin wrote: Dear Guru's, This is probably a silly question, but I can't work it out :-( I have a file containing carriage returns and I want to replace them with line feeds. Note it is not CR-LF -> LF, but just CR -> LF. Can someone please enlighten me as to how to do this. Thanks v

Re: How to replace CR with LF

2006-06-26 Thread Yakov Lerner
On 6/26/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 6/26/06, Steve Baldwin <[EMAIL PROTECTED]> wrote: > Dear Guru's, > > This is probably a silly question, but I can't work it out :-( > > I have a file containing carriage returns and I want to replace them with > line feeds. Note it is not CR

Re: How to replace CR with LF

2006-06-26 Thread Yakov Lerner
On 6/26/06, Steve Baldwin <[EMAIL PROTECTED]> wrote: Dear Guru's, This is probably a silly question, but I can't work it out :-( I have a file containing carriage returns and I want to replace them with line feeds. Note it is not CR-LF -> LF, but just CR -> LF. Can someone please enlighten me

How to replace CR with LF

2006-06-26 Thread Steve Baldwin
Dear Guru's, This is probably a silly question, but I can't work it out :-( I have a file containing carriage returns and I want to replace them with line feeds. Note it is not CR-LF -> LF, but just CR -> LF. Can someone please enlighten me as to how to do this. Thanks very much.

Re: Man command not working with Vim 7

2006-06-26 Thread Charles E Campbell Jr
Trent Michael Gamblin wrote: I'm having trouble getting the Man command working with Vim. May I suggest trying out manpageview, which implements (IMHO) an improved :Man command. Its available at: http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs (see "Man Page Viewer") and at

Re: Man command not working with Vim 7

2006-06-26 Thread Benji Fisher
On Sun, Jun 25, 2006 at 08:16:54PM -0600, Trent Michael Gamblin wrote: > I'm having trouble getting the Man command working with Vim. I have the > line: > >runtime ftplugin/man.vim > > in my ~/.vimrc. When I type :Man I get this: > > >Vim: Warning: Output is not to a terminal > >Vim: Warni

Re: search '/' command

2006-06-26 Thread Eric Arnold
Sorry, when I said I'd put in a "plug" it was kinda pun (i.e. plug==advertisement) :-) It is actually a source patch (not a Vim script plugin), which is the only real way to intercept character events. You can get it on sourceforge, http://www.vim.org/scripts/script.php?script_id=1541 but you

Re: Adding keywords if a line starts with a certain word

2006-06-26 Thread Robert Hicks
Tim Chase wrote: Yes, I believe that is correct. Actually it might be easier to find if "snit" is anywhere in the file at the beginning of the line (it will always be at the beginning) and then adding some extra keywords in to be colored. Did I clarify anything? I hope so. Very much so. As

Re: Trouble getting the backupskip option to work

2006-06-26 Thread A.J.Mechelynck
Tom Purl wrote: Tom Purl wrote: I would like to force Vim to not make backups of files in my wiki folder, but still create backups for all of my other docs. I therefore tried the following command in my _vimrc: set backupskip=$HOME/gtd/wiki/* This, however, didn't work. I also tried quot

Re: Adding keywords if a line starts with a certain word

2006-06-26 Thread Tim Chase
Yes, I believe that is correct. Actually it might be easier to find if "snit" is anywhere in the file at the beginning of the line (it will always be at the beginning) and then adding some extra keywords in to be colored. Did I clarify anything? I hope so. Very much so. As described in

Re: Trouble getting the backupskip option to work

2006-06-26 Thread Tom Purl
> Tom Purl wrote: > I would like to force Vim to not make backups of files in my wiki > folder, > but still create backups for all of my other docs. I therefore tried > the > following command in my _vimrc: > > set backupskip=$HOME/gtd/wiki/* > > This, howev

Re: Trouble getting the backupskip option to work

2006-06-26 Thread A.J.Mechelynck
Tom Purl wrote: I would like to force Vim to not make backups of files in my wiki folder, but still create backups for all of my other docs. I therefore tried the following command in my _vimrc: set backupskip=$HOME/gtd/wiki/* This, however, didn't work. I also tried quoting the path, usi

Re: Trouble getting the backupskip option to work

2006-06-26 Thread Tom Purl
>>> I would like to force Vim to not make backups of files in my wiki >>> folder, >>> but still create backups for all of my other docs. I therefore tried >>> the >>> following command in my _vimrc: >>> >>> set backupskip=$HOME/gtd/wiki/* >>> >>> This, however, didn't work. I also tried quoti

Re: How to open file readonly from inside vim ?

2006-06-26 Thread A.J.Mechelynck
Yakov Lerner wrote: There is a file x that is opened in another vim, and .x.swp file exists. I have another instance of vim that has many buffers already open. I want to open file x in this vim readonly, without the 'E325 Found swapfile' dialog. (like vim -R would, but without starting new vim

Re: How to open file readonly from inside vim ?

2006-06-26 Thread Yakov Lerner
Thanks Yakov On 6/26/06, Max Dyckhoff <[EMAIL PROTECTED]> wrote: If you open the file with :view it will set the readonly buffer option and not give you that warning. See ":help readonly" Max > -Original Message- > From: Yakov Lerner [mailto:[EMAIL PROTECTED] > Sent: Monday, June 26,

Re: Adding keywords if a line starts with a certain word

2006-06-26 Thread Robert Hicks
Tim Chase wrote: I would like to add additional keywords if the first word or first 4 characters of the statement is "snit". snit::type dog { method {tail wag} {} {return "Wag, wag"} method {tail droop} {} {return "Droop, droop"} } Since "snit" is there then I would like to added "me

RE: How to open file readonly from inside vim ?

2006-06-26 Thread Max Dyckhoff
If you open the file with :view it will set the readonly buffer option and not give you that warning. See ":help readonly" Max > -Original Message- > From: Yakov Lerner [mailto:[EMAIL PROTECTED] > Sent: Monday, June 26, 2006 9:06 AM > To: Vim List > Subject: How to open file readonly from

How to open file readonly from inside vim ?

2006-06-26 Thread Yakov Lerner
There is a file x that is opened in another vim, and .x.swp file exists. I have another instance of vim that has many buffers already open. I want to open file x in this vim readonly, without the 'E325 Found swapfile' dialog. (like vim -R would, but without starting new vim) How do I do it ?

Re: Trouble getting the backupskip option to work

2006-06-26 Thread A.J.Mechelynck
A.J.Mechelynck wrote: Tom Purl wrote: I use the potwiki plugin (which is pretty sweet by the way) to keep a plain-text wiki on my desktop that I can edit using Vim. All of my documents are stored under my `$HOME/gtd/wiki` directory. Occasionally, I need to do a "full-text" search of my wiki pa

Re: Trouble getting the backupskip option to work

2006-06-26 Thread A.J.Mechelynck
Tom Purl wrote: I use the potwiki plugin (which is pretty sweet by the way) to keep a plain-text wiki on my desktop that I can edit using Vim. All of my documents are stored under my `$HOME/gtd/wiki` directory. Occasionally, I need to do a "full-text" search of my wiki pages, which I do using t

Re: Adding keywords if a line starts with a certain word

2006-06-26 Thread Tim Chase
I would like to add additional keywords if the first word or first 4 characters of the statement is "snit". snit::type dog { method {tail wag} {} {return "Wag, wag"} method {tail droop} {} {return "Droop, droop"} } Since "snit" is there then I would like to added "method" as a keyword

Trouble getting the backupskip option to work

2006-06-26 Thread Tom Purl
I use the potwiki plugin (which is pretty sweet by the way) to keep a plain-text wiki on my desktop that I can edit using Vim. All of my documents are stored under my `$HOME/gtd/wiki` directory. Occasionally, I need to do a "full-text" search of my wiki pages, which I do using the `vimgrep` comma

Re: How to recognize different matching classes

2006-06-26 Thread Dr Bean
On Mon, 26 Jun 2006, Luc Hermitte wrote: > * On Sun, Jun 25, 2006 at 12:06:51AM +0800, Dr Bean <[EMAIL PROTECTED]> wrote: > > Another common idiom in perl is q//,qq//,qw//,qr// ... > The main code is defined in plugin/common_brackets.vim, the filetype > (C&C++) specializations beeing in ftplugin

Adding keywords if a line starts with a certain word

2006-06-26 Thread Robert Hicks
I would like to add additional keywords if the first word or first 4 characters of the statement is "snit". snit::type dog { method {tail wag} {} {return "Wag, wag"} method {tail droop} {} {return "Droop, droop"} } Since "snit" is there then I would like to added "method" as a keyword.

Re: View Helper class naming breaking convention? --sorry wrong list!

2006-06-26 Thread Nick Lo
Agh ...sorry wrong list! Too distracted by the Australia v's Italy game that is about to start! Sorry everyone, Nick Does it niggle anyone else that there is an inconsistency with naming Zend_View helper classes? When subclassing controllers there is the following recommendation in the m

Re: Capturing source errors

2006-06-26 Thread Robert Hicks
A.J.Mechelynck wrote: Robert Hicks wrote: When I statup Vim I am getting source errors for a syntax file I am modifying but they go away so fast I cannot read what the errors are. How do I get Vim to show me those errors? Robert :messages HTH, Tony. Thanks, it does. Robert

View Helper class naming breaking convention?

2006-06-26 Thread Nick Lo
Does it niggle anyone else that there is an inconsistency with naming Zend_View helper classes? When subclassing controllers there is the following recommendation in the manual... - 2.3.2.1. Prefix Classes included with the Zend Framework follow a convention where every cl

Re: Capturing source errors

2006-06-26 Thread A.J.Mechelynck
Robert Hicks wrote: When I statup Vim I am getting source errors for a syntax file I am modifying but they go away so fast I cannot read what the errors are. How do I get Vim to show me those errors? Robert :messages HTH, Tony.

Re: Capturing source errors

2006-06-26 Thread Jürgen Krämer
Hi, Robert Hicks wrote: > > When I statup Vim I am getting source errors for a syntax file I am > modifying but they go away so fast I cannot read what the errors are. > How do I get Vim to show me those errors? :mes Regards, Jürgen -- Jürgen Krämer Softwareen

Capturing source errors

2006-06-26 Thread Robert Hicks
When I statup Vim I am getting source errors for a syntax file I am modifying but they go away so fast I cannot read what the errors are. How do I get Vim to show me those errors? Robert

Re: simple map question for changing window size

2006-06-26 Thread A.J.Mechelynck
Johannes Schwarz wrote: Hi all, I want to have mappings for resizing splitted windows. For increasing and decreasing the width the following mappings are working: nmap + > nmap - < But the mapping for increasing and decreasing the heights don't work: nmap + nmap - I think I have to esca

Re: Replace all on a line

2006-06-26 Thread Jerin Joy
Sorry, missed the ?. gdefault was the problem, it was set in my settings.vim file. thanks! Jerin On 6/26/06, Jürgen Krämer <[EMAIL PROTECTED]> wrote: Hi, Jerin Joy wrote: > > maybe the 'gdefault' option is on. What does > > > > :verbose set gdefault? > > output? > > it doesn't output anythi

Re: Replace all on a line

2006-06-26 Thread Jürgen Krämer
Hi, Jerin Joy wrote: > > maybe the 'gdefault' option is on. What does > > > > :verbose set gdefault? > > output? > > it doesn't output anything. Cursor just comes back to the file. did you enter the question mark after "gdefault"? This is necessary to query the state of a boolean option. Mit

Re: Replace all on a line

2006-06-26 Thread Jerin Joy
maybe the 'gdefault' option is on. What does :verbose set gdefault? output? it doesn't output anything. Cursor just comes back to the file. Jerin Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH & Co. KGmailto:[EMAIL PROT

Re: Replace all on a line

2006-06-26 Thread Jürgen Krämer
Hi, Jerin Joy wrote: > > I tried the command with the \s instead of '\ ' and it doesn't work > > the command :%s/]\s\+/] /g changed > task init (input [1:0] u, input [3:0]hash, input [3:0]hash_index1) > > to > task init (input [1:0] u, input [3:0]hash, input [3:0]hash_index1)

Re: Replace all on a line

2006-06-26 Thread Jerin Joy
Hi, I tried the command with the \s instead of '\ ' and it doesn't work the command :%s/]\s\+/] /g changed task init (input [1:0] u, input [3:0]hash, input [3:0]hash_index1) to task init (input [1:0] u, input [3:0]hash, input [3:0]hash_index1) Could something be hardcoded in

RE: Replace all on a line

2006-06-26 Thread Vishnu
Hi Jerin, Your regular expression is working fine for me (Vim 7.0). You can simplify your regular exp. As follows: :%s/]\s\+/] /g \s -> whitespaces (includes tab character also) ~Vishnu -Original Message- From: Jerin Joy [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 4:48 PM To

Re: Replace all on a line

2006-06-26 Thread Matthew Winn
On Mon, Jun 26, 2006 at 04:48:25PM +0530, Jerin Joy wrote: > The replace all option 'g' doesn't seem to be working in my case. It > replaces only the first occurrence on a line. > > for eg. in the following line I wanted to remove the extra whitespaces > between input [] and the name of the variab

Re: Replace all on a line

2006-06-26 Thread Jürgen Krämer
Hi, Jerin Joy wrote: > > The replace all option 'g' doesn't seem to be working in my case. It > replaces only the first occurrence on a line. > > for eg. in the following line I wanted to remove the extra whitespaces > between input [] and the name of the variable: > task init (input [1:0] u,

Replace all on a line

2006-06-26 Thread Jerin Joy
Hi. The replace all option 'g' doesn't seem to be working in my case. It replaces only the first occurrence on a line. for eg. in the following line I wanted to remove the extra whitespaces between input [] and the name of the variable: task init (input [1:0] u, input [3:0]hash, input [3:0