Re: How to insert text via script/function call ?

2006-08-18 Thread Marius Roets
On 8/18/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: Hi, I often need to place a header above a function defintion (C-source) fpr documentational purposes. What I treid is to write a short function for vim, which dioes insert the text skeleton -- but I did not find any already exis

an indentation question

2006-08-18 Thread steven woody
i use vim on both linux and windows. but i found their indentation behavior a little differently. say i was coding a c program on the below line void foo_fun( int p1 then i press return on linux, the cursor come to a pleasant position, that became, void foo_fun( int p1

Re: an indentation question

2006-08-18 Thread A.J.Mechelynck
steven woody wrote: i use vim on both linux and windows. but i found their indentation behavior a little differently. say i was coding a c program on the below line void foo_fun( int p1 then i press return on linux, the cursor come to a pleasant position, that became, void foo_fun( int p1

set listchars=tab:>-,trail:-,eol:$

2006-08-18 Thread Adam Gray
So basically I have the following in my .vimrc set listchars=tab:>-,trail:-,eol:$ But it's slightly intrusive in the colour it is at the moment (dark blue), and I was wondering if there was any easy way to set it to something less overt, for example dark grey (I use a dark background). Thanks!

Re: set listchars=tab:>-,trail:-,eol:$

2006-08-18 Thread A.J.Mechelynck
Adam Gray wrote: So basically I have the following in my .vimrc set listchars=tab:>-,trail:-,eol:$ But it's slightly intrusive in the colour it is at the moment (dark blue), and I was wondering if there was any easy way to set it to something less overt, for example dark grey (I use a dark back

Search all text files in a directory for text

2006-08-18 Thread Jerin Joy
Hi, I have a lot of source code distributed over a directory hierarchy structure. I always need to find class declarations, instances where variables are set etc. Usually I just go to command line and run something like find . -name "*.vr" -print | xargs grep 'class foo' Isn't there an easier wa

Re: Search all text files in a directory for text

2006-08-18 Thread A. S. Budden
Oops, forgot to send this to the list... On 18/08/06, Jerin Joy <[EMAIL PROTECTED]> wrote: Hi, I have a lot of source code distributed over a directory hierarchy structure. I always need to find class declarations, instances where variables are set etc. Usually I just go to command line and run

Re: Search all text files in a directory for text

2006-08-18 Thread Marius Roets
On 8/18/06, Jerin Joy <[EMAIL PROTECTED]> wrote: Hi, I have a lot of source code distributed over a directory hierarchy structure. I always need to find class declarations, instances where variables are set etc. Usually I just go to command line and run something like find . -name "*.vr" -print

Problem or bug?

2006-08-18 Thread David Venus
Hi! I ran across a problem today where I could not enter 2 ">" characters in a row into a KSH script I was editing. You could enter the first one, then the screen would "flash" and repaint itself, then you could type any other character except a ">". I had to enter a space than the 2nd ">", then d

Re: Search all text files in a directory for text

2006-08-18 Thread A.J.Mechelynck
Jerin Joy wrote: Hi, I have a lot of source code distributed over a directory hierarchy structure. I always need to find class declarations, instances where variables are set etc. Usually I just go to command line and run something like find . -name "*.vr" -print | xargs grep 'class foo' Isn't

Re: windows unicode (iso10646-1) font for vim

2006-08-18 Thread Robert Hicks
Alan G Isaac wrote: On Mon, 31 Jul 2006, (BST) Georg Dahn apparently wrote: I personally need Latin only and use Consolas: http://www.microsoft.com/downloads/details.aspx?familyid=22e69ae4-7e40-4807-8a86-b3d36fab68d3&displaylang=en which (IMHO) is a great font. "This package is only intended

tabedit readonly

2006-08-18 Thread SHANKAR R-R66203
Hi, How do I open a new file in a new tab, but in the read only mode. :tabedit -R file_name Does not seem to work. Thanks Shankar

Re: Problem or bug?

2006-08-18 Thread A.J.Mechelynck
David Venus wrote: Hi! I ran across a problem today where I could not enter 2 ">" characters in a row into a KSH script I was editing. You could enter the first one, then the screen would "flash" and repaint itself, then you could type any other character except a ">". I had to enter a space tha

Re: tabedit readonly

2006-08-18 Thread Jürgen Krämer
Hi, SHANKAR R-R66203 wrote: > > How do I open a new file in a new tab, but in the read only mode. > > :tabedit -R file_name > > Does not seem to work. :tab sview file_name Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH & Co. KG

Re: tabedit readonly

2006-08-18 Thread A.J.Mechelynck
SHANKAR R-R66203 wrote: Hi, How do I open a new file in a new tab, but in the read only mode. :tabedit -R file_name Does not seem to work. Thanks Shankar :tab sview foobar.txt see :help :tab :help :sview Best regards, Tony.

Re: windows unicode (iso10646-1) font for vim

2006-08-18 Thread Robert Hicks
Georg Dahn wrote: I am not sure, if they have CJK included yet, but http://dejavu.sourceforge.net/wiki/index.php/Main_Page is a set of Unicode fonts which are being worked at intensely. --- "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote: As I already mentioned, on Windows I use Courier_New for Russ

Re: Search all text files in a directory for text

2006-08-18 Thread Charles E Campbell Jr
Jerin Joy wrote:, I have a lot of source code distributed over a directory hierarchy structure. I always need to find class declarations, instances where variables are set etc. Usually I just go to command line and run something like find . -name "*.vr" -print | xargs grep 'class foo' Isn't th

Re: Search all text files in a directory for text

2006-08-18 Thread A.J.Mechelynck
Jerin Joy wrote: Hi, I'll try the ctags. Both vera and verilog are supported. I'm running vim 6.4 so no vimgrep. Can't change it since I work on a remote login. thanks, Jerin You can still invoke grep from Vim 6.4 (since you have an external grep program installed): see ":help :grep". Tags

Re: How to insert text via script/function call ?

2006-08-18 Thread Benji Fisher
On Fri, Aug 18, 2006 at 04:44:26AM +0200, Meino Christian Cramer wrote: > Hi, > > I often need to place a header above a function defintion (C-source) > fpr documentational purposes. > > What I treid is to write a short function for vim, which dioes insert > the text skeleton -- but I did not

Re: an indentation question

2006-08-18 Thread Benji Fisher
On Fri, Aug 18, 2006 at 10:36:32AM +0200, A.J.Mechelynck wrote: > steven woody wrote: > >i use vim on both linux and windows. but i found their indentation > >behavior a little differently. > > > >say i was coding a c program on the below line > > > >void foo_fun( int p1 > > > >then i press return

Re: an indentation question

2006-08-18 Thread A.J.Mechelynck
steven woody wrote: On 8/18/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: steven woody wrote: > i use vim on both linux and windows. but i found their indentation > behavior a little differently. > > say i was coding a c program on the below line > > void foo_fun( int p1 > > then i press return

Re: tabedit readonly

2006-08-18 Thread Charles E Campbell Jr
SHANKAR R-R66203 wrote: How do I open a new file in a new tab, but in the read only mode. :tabedit -R file_name Does not seem to work. Why would you think it would? I see no mention of a "-R" modifier for tabedit. Here's the help for tabedit: :tabe[dit] *

Re: an indentation question

2006-08-18 Thread Charles E Campbell Jr
A.J.Mechelynck wrote: P.S. I'm no Vim official, just a user like you. Next time, please use "reply to all" rather than "reply to sender" so the list gets it and, if e.g. I've gone to bed, someone else can reply. But, Anthony -- you get paid the top salary available for Vim mailing list per

Re: an indentation question

2006-08-18 Thread Tim Chase
But, Anthony -- you get paid the top salary available for Vim mailing list personnel! :) Of course, it's probably a bit difficult to buy a cup of coffee with it... And you're both still making twice my vim mailing-list salary! :) -a mock-disgruntled tim

Re: an indentation question

2006-08-18 Thread A.J.Mechelynck
Charles E Campbell Jr wrote: A.J.Mechelynck wrote: P.S. I'm no Vim official, just a user like you. Next time, please use "reply to all" rather than "reply to sender" so the list gets it and, if e.g. I've gone to bed, someone else can reply. But, Anthony -- you get paid the top salary avail

Re: How to insert text via script/function call ?

2006-08-18 Thread Meino Christian Cramer
From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: How to insert text via script/function call ? Date: Fri, 18 Aug 2006 07:29:05 +0200 > Meino Christian Cramer wrote: > > Hi, > > > > I often need to place a header above a function defintion (C-source) > > fpr documentational purposes. > >

Re: How to insert text via script/function call ?

2006-08-18 Thread Meino Christian Cramer
From: "Marius Roets" <[EMAIL PROTECTED]> Subject: Re: How to insert text via script/function call ? Date: Fri, 18 Aug 2006 09:52:42 +0200 > On 8/18/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I often need to place a header above a function defintion (C-source) > > fpr d

RE: use '/' to find both upper and lower case instances

2006-08-18 Thread Gene Kwiecinski
>I have a need to use '/' to find something in a file, but I wish it >to ignore case. >So say I'm looking for 'foo' then I want to find all instances for >'foo' and 'FOO' Can try :set ignorecase or :set ic to do so. Former will almost always work, latter works on some variants

Re: How to insert text via script/function call ?

2006-08-18 Thread A.J.Mechelynck
Meino Christian Cramer wrote: From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: How to insert text via script/function call ? Date: Fri, 18 Aug 2006 07:29:05 +0200 Meino Christian Cramer wrote: Hi, I often need to place a header above a function defintion (C-source) fpr documentationa

Re: ANN: vcscommand beta 4 (supercedes cvscommand)

2006-08-18 Thread Alan G Isaac
On Wed, 9 Aug 2006, Bob Hiestand apparently wrote: > http://vim.sourceforge.net/scripts/script.php?script_id=90 I see that many people are liking this plugin. Could you please add a few details about how it works and why it is better than just using the SVN executables. Thank you, Alan Isaac

comment command tightness

2006-08-18 Thread Dimitriy V. Masterov
I am using this commenting mapping to place /* */ around text: map :s/^\(.*\)$/\/\* \1 \*\//:nohls However, I would like it be tighter, meaning that instead of /* blah blah blah */ I would like to see /* blah blah blah */ Is there a way to do this? DVM

Paragraph formatting options

2006-08-18 Thread Noah Spurrier
I use the :gwap command a lot. I'd like to fine-tune it. Can the following be done? I'd like to reformat only those lines with the same indentation (and keep the indent). I tend to write a lot of HTML and documentation with indented blocks. For example: hive.py This script creates SSH connect

Re: comment command tightness

2006-08-18 Thread Tim Chase
I am using this commenting mapping to place /* */ around text: map :s/^\(.*\)$/\/\* \1 \*\//:nohls However, I would like it be tighter, meaning that instead of /* blah blah blah */ I would like to see /* blah blah blah */ Is there a way to do this? DVM Depending on how you inde

Re: Search all text files in a directory for text

2006-08-18 Thread Gary Johnson
On 2006-08-18, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: > Jerin Joy wrote:, > > > > > I have a lot of source code distributed over a directory hierarchy > > structure. I always need to find class declarations, instances where > > variables are set etc. Usually I just go to command line and

SORBS, etc.

2006-08-18 Thread Gene Kwiecinski
Piqued my curiosity, asked around, got back this as a possible explanation: See http://www.us.sorbs.net/faq/spamdb.shtml I have *no* idea who Joey McNichols be, or why he needs a legal defense, etc., but it seems as though the whole SORBS thing might be on the up-and-up, if unpopular o th

Re: Paragraph formatting options

2006-08-18 Thread Alan G Isaac
Try this: set fo+=w and then leave no white space after your outdented header. Then you can gwap to your hearts content. Not quite what you asked for ... hth, Alan Isaac

Re: Paragraph formatting options

2006-08-18 Thread Keith Warno
On 8/18/06, Noah Spurrier <[EMAIL PROTECTED]> wrote: I use the :gwap command a lot. I'd like to fine-tune it. Can the following be done? I'd like to reformat only those lines with the same indentation (and keep the indent). [...] I'm sure it could be scripted up fairly easily. In the meantime

RE: SORBS, etc.

2006-08-18 Thread Gene Kwiecinski
>>Piqued my curiosity, asked around, got back this as a possible >>explanation: >> >> See http://www.us.sorbs.net/faq/spamdb.shtml >> >>I have *no* idea who Joey McNichols be, or why he needs a legal defense, >>etc., but it seems as though the whole SORBS thing might be on the >>up-and-up, if

Re: Search all text files in a directory for text

2006-08-18 Thread Charles E Campbell Jr
Gary Johnson wrote: On 2006-08-18, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: Read :help netrw-starstarpat : :Explore **//class foo for example. You'll be presented with an netrw browser display in each subdirectory with matching files and the cursor on the first file that matc

Re: Search all text files in a directory for text

2006-08-18 Thread Gary Johnson
On 2006-08-18, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: > Gary Johnson wrote: > > > On 2006-08-18, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: > > > > > >> Read :help netrw-starstarpat : > >> > >> :Explore **//class foo > >> > >> for example. You'll be presented with an netrw b

Re: Search all text files in a directory for text

2006-08-18 Thread Charles E Campbell Jr
Gary Johnson wrote: Thanks. That removes the error and gives me a list of files, but included in that list are non-*.c names such as INSTALL Makefile README.txt :Explore **/*.c doesn't give a list of just *.c files. Instead, it opens a browser listing of every directory wit

Re: Search all text files in a directory for text

2006-08-18 Thread Gary Johnson
On 2006-08-18, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote: > Gary Johnson wrote: > > > > > Thanks. That removes the error and gives me a list of files, but > > included in that list are non-*.c names such as > > > >INSTALL > >Makefile > >README.txt > > > > > > :Explore **/*.c

Re: Paragraph formatting options

2006-08-18 Thread cga2000
On Fri, Aug 18, 2006 at 02:12:19PM EDT, Alan G Isaac wrote: > Try this: > set fo+=w and then leave no white space after your > outdented header. Then you can gwap to your hearts > content. > > Not quite what you asked for ... > I realize that this is not what you asked f

Re[2]: Paragraph formatting options

2006-08-18 Thread Alan G Isaac
On Fri, 18 Aug 2006, apparently wrote: > but what is this > gwap (or :gwap ..) command? > Seems it is not recognized by Vim 6.3 :h gw Enjoy. Alan Isaac

ksh93s

2006-08-18 Thread John Little
Hi all The wikipedia entry for the Korn shell http://en.wikipedia.org/wiki/Korn_shell has a tantalizing parenthetical note: ksh93s will add a 4th vim mode Googling for ksh93s + vim only finds the wikipedia article, or copies of it, and ksh93 + "vim mode" the same, and ksh93 + vim nothing I

Tip: selecting a file to edit with the handy completion feature

2006-08-18 Thread Fan Decheng
Only recently did I read the vim manual for command line completion. In the documentation, I found that the following is a handy way to open a file when using the :e command. 1. Type :e followed with a space. 2. Type the first a few characters of the file you want to edit. 3. Press CTRL-L. Vim wil

Re: Paragraph formatting options

2006-08-18 Thread cga2000
On Fri, Aug 18, 2006 at 08:12:01PM EDT, Alan G Isaac wrote: > On Fri, 18 Aug 2006, apparently wrote: > > but what is this > > gwap (or :gwap ..) command? > > Seems it is not recognized by Vim 6.3 > > :h gw > guess what .. I was mistyping it .. .. something like gwa- I guess .. didn't realiz

Re: Paragraph formatting options

2006-08-18 Thread Gary Johnson
On 2006-08-18, cga2000 <[EMAIL PROTECTED]> wrote: > I there a way I can enter effortlessly stuff like the following: > > 1. this is a numbered paragraph several lines long and I would like all > lines aligned with the "this" which starts in column 4. I don't know if > it's good typography but I

Re: Paragraph formatting options

2006-08-18 Thread Gary Johnson
On 2006-08-18, Gary Johnson <[EMAIL PROTECTED]> wrote: > For bulleted lists using '-', > > set com+=fb:- > > or '*', > > set com+=fb:* > > but those should already be part of the default 'comments' option > unless you have changed it. I just checked again. "fb:-" is there by default;

Re: Tip: selecting a file to edit with the handy completion feature

2006-08-18 Thread A.J.Mechelynck
Fan Decheng wrote: Only recently did I read the vim manual for command line completion. In the documentation, I found that the following is a handy way to open a file when using the :e command. 1. Type :e followed with a space. 2. Type the first a few characters of the file you want to edit. 3.

Re: Paragraph formatting options

2006-08-18 Thread cga2000
On Sat, Aug 19, 2006 at 12:15:10AM EDT, Gary Johnson wrote: > On 2006-08-18, cga2000 <[EMAIL PROTECTED]> wrote: > [help creating numbered and bulleted lists in Vim] > > For numbered lists, > > set fo+=n > > For bulleted lists using '-', > > set com+=fb:- > > or '*', > > set com+=

Re: Paragraph formatting options

2006-08-18 Thread cga2000
On Sat, Aug 19, 2006 at 12:22:56AM EDT, Gary Johnson wrote: > On 2006-08-18, Gary Johnson <[EMAIL PROTECTED]> wrote: > > > For bulleted lists using '-', > > > > set com+=fb:- > > > > or '*', > > > > set com+=fb:* > > > > but those should already be part of the default 'comments' option

Re: How to insert text via script/function call ?

2006-08-18 Thread Meino Christian Cramer
From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: How to insert text via script/function call ? Date: Fri, 18 Aug 2006 18:05:13 +0200 > Meino Christian Cramer wrote: > > From: "A.J.Mechelynck" <[EMAIL PROTECTED]> > > Subject: Re: How to insert text via script/function call ? > > Date: Fri, 1

Re: Tip: selecting a file to edit with the handy completion feature

2006-08-18 Thread Hari Krishna Dara
On Sat, 19 Aug 2006 at 8:37am, Fan Decheng wrote: > Only recently did I read the vim manual for command line completion. In > the documentation, I found that the following is a handy way to open a > file when using the :e command. > > 1. Type :e followed with a space. > 2. Type the first a few ch

Re: Paragraph formatting options

2006-08-18 Thread A.J.Mechelynck
cga2000 wrote: On Sat, Aug 19, 2006 at 12:22:56AM EDT, Gary Johnson wrote: On 2006-08-18, Gary Johnson <[EMAIL PROTECTED]> wrote: For bulleted lists using '-', set com+=fb:- or '*', set com+=fb:* but those should already be part of the default 'comments' option unless you have chan

Re: Paragraph formatting options

2006-08-18 Thread Gary Johnson
On 2006-08-19, cga2000 <[EMAIL PROTECTED]> wrote: > On Sat, Aug 19, 2006 at 12:15:10AM EDT, Gary Johnson wrote: > > On 2006-08-18, cga2000 <[EMAIL PROTECTED]> wrote: > > > [help creating numbered and bulleted lists in Vim] > > > > For numbered lists, > > > > set fo+=n > > > > For bulleted l

Re: How to insert text via script/function call ?

2006-08-18 Thread A.J.Mechelynck
Meino Christian Cramer wrote: From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: How to insert text via script/function call ? Date: Fri, 18 Aug 2006 18:05:13 +0200 Meino Christian Cramer wrote: From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: How to insert text via script/function