buffer list count

2006-11-12 Thread mzyzik
All, I am trying to keep track of the number of buffers in the buffer list. I'm doing this with the following code: autocmd BufAdd * let g:zbuflistcount += 1 autocmd BufDelete * let g:zbuflistcount -= 1 The problem is I found this to be very unreliable in some circumstances, and

Re: buffer list count

2006-11-12 Thread mzyzik
On Sun, Nov 12, 2006 at 07:14:49PM -0600, Bill McCarthy wrote: On Sun 12-Nov-06 6:17pm -0600, [EMAIL PROTECTED] wrote: I am trying to keep track of the number of buffers in the buffer list. I'm doing this with the following code: autocmd BufAdd * let g:zbuflistcount += 1

Re: buffer list count

2006-11-12 Thread Bill McCarthy
On Sun 12-Nov-06 7:54pm -0600, [EMAIL PROTECTED] wrote: Well I'm reporting the above g:zbuflistcount in my 'rulerformat'. Don't you think you should have mentioned that? I really don't think I can afford the baggage of calling your function from within my 'rulerformat'. No, for 100 buffers,

Re: Two other problems while diting a big table

2006-11-12 Thread Yakov Lerner
On 11/12/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: Hi, Currently I want to reformat a huge table of data of shortwave broadcasters. This table is build from lines of 318 characters each (***none is shorter or longer***). The entries are speperated by char/byte offsets only

Re: What can cause long load/search

2006-11-12 Thread Donald Axel
On Sat, 11 Nov 2006 22:34:52 -0500 Benji Fisher [EMAIL PROTECTED] wrote: What can cause a program to search through the whole tree of the source of an installed software package? There are lots of things that could cause this. For example, a line like :vimgrep /todo/g

regular expression with character '@'

2006-11-12 Thread Rui Gonçalves
if i use the character '@' in a regular expression, i need use the '\' before? i try do [EMAIL PROTECTED] and [EMAIL PROTECTED] but didn't work

Re: regular expression with character '@'

2006-11-12 Thread A.J.Mechelynck
Rui Gonçalves wrote: if i use the character '@' in a regular expression, i need use the '\' before? i try do [EMAIL PROTECTED] and [EMAIL PROTECTED] but didn't work 1. Don't escape the @ if you want to match a @ 2. Do escape the + if you want to match one or more, as many as possible.

RE: Your best text/code formatting trick

2006-11-12 Thread Max Dyckhoff
I use =a{ all the time. I often write blocks of code using snippets from other places (function prototypes, member variables, conditionals, and so on), and =a{ will format just that block. It also looks vaguely like a smiley face, which is nice :) Max -Original Message- From: Kim

RE: Your best text/code formatting trick

2006-11-12 Thread Suresh Govindachar
Kim Schulz asked on November 12, 2006 12:30 PM Hi, I am currently looking into different tricks for formatting text, code, etc. in Vim. I guess most users know the format- paragraph command gqq or the reindent entire code 1G=G But are there any other neat tricks - which

Re: Your best text/code formatting trick

2006-11-12 Thread Tim Chase
I am currently looking into different tricks for formatting text, code, etc. in Vim. I guess most users know the format-paragraph command gqq or the reindent entire code 1G=G But are there any other neat tricks - which ones are your favorites? Well, though not exactly text/code

Re: Your best text/code formatting trick

2006-11-12 Thread panshizhu
Kim Schulz [EMAIL PROTECTED] 写于 2006-11-13 04:29:53: I am currently looking into different tricks for formatting text, code, etc. in Vim. I guess most users know the format-paragraph command gqq or the reindent entire code 1G=G But are there any other neat tricks - which ones are your