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, input

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
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

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

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

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. Robert

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. Your

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

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

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: 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 method as

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

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 quoting the path, using a

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

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 man page I get this: Vim: Warning: Output is not to a terminal Vim:

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-LF - LF,

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

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', first add

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: 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: 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: 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: 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 Message-

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 On Monday 26

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 man page I get this: Vim: Warning: Output is not to a terminal Vim:

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

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

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