Re: BufWritePre and :wqa

2007-03-06 Thread A.J.Mechelynck
Cyril Slobin wrote: On 3/6/07, Bram Moolenaar [EMAIL PROTECTED] wrote: It will help a lot to understand what you are talking about if you include an example script. Details might matter. Well. In my _vimrc I set up an autocommand autocmd BufWritePre * ks|call TimeStamp()|'s I believe that

dos32 colors

2007-03-06 Thread Cyril Slobin
Hi all! In color xterm color 1 for is #0c (red), but in dos32 it is #0c (blue). (Strictly speaking, VGA standard palette is different, but xterm colors are good enough approximation in practice). This makes very hard to write portable scripts dealing with colors. Does a better way to

FW: Adding quotes around html attribute values

2007-03-06 Thread Timothy Adams
Hi, I've been given some html which, oddly, is half in nicely quoted attributes+values: span class=good and half not span class=bad I'm trying to write a regex to add quotes around the ones without. I can do this in perl, but not in vim, and I'd like to know what I'm doing wrong because

Re: FW: Adding quotes around html attribute values

2007-03-06 Thread Tim Chase
span class=good and half not span class=bad I'm trying to write a regex to add quotes around the ones without. I can do this in perl, but not in vim, and I'd like to know what I'm doing wrong because I've run across this problem before. This was my attempt: :%s/=\([^]\+\)\{-}\([

Re: VimTips Wiki: New Direction

2007-03-06 Thread Hari Krishna Dara
On Mon, 5 Mar 2007 at 1:26pm, Tom Purl wrote: Here's my view of where we are regarding the Vim Tips wiki conversion project: 1. The Google wiki seems to be a poor option due to the difficulty involved in registering. 2. Multiple other wiki engines have been discussed, and the clear

Re: Omnicomplete for C - pattern not found problem

2007-03-06 Thread Zarko Coklin
I found a partial answer to my question here: http://tech.groups.yahoo.com/group/vim/message/68078 However, not sure why would the following be declared as an invalid C code: struct foo { /* ... */ }; typedef struct foo foo_t; int main() { foo myfoo; /* ... */ } In fact, I have a lot of

Re: VimTips Wiki: New Direction

2007-03-06 Thread A.J.Mechelynck
Hari Krishna Dara wrote: [...] I have been reading posts on this subject with interest and think that this is going to be a good decision. My only concern is on how we are planning to support the existing rating system going forward and if we can enforce a fixed style on commenting such that the

Re: Omnicomplete for C - pattern not found problem

2007-03-06 Thread Vissale NEANG
Hi, You can try this C++ omnicomplete plugin http://www.vim.org/scripts/script.php?script_id=1520 It will work for C files if you copy the file ~/.vim/after/ftplugin/cpp.vim to ~/.vim/after/ftplugin/c.vim (I'll add it for the next release). Best regards, Vissale 2007/3/6, Zarko Coklin [EMAIL

RE: VimTips Wiki: New Direction

2007-03-06 Thread Steve Hall
From: Hari Krishna Dara, Tue, March 06, 2007 11:33 am My only concern is on how we are planning to support the existing rating system going forward I don't see how this can be accomplished in a wiki, but on the plus side we'll be able to categorize and structure the tips better, as well as

Re: FW: Adding quotes around html attribute values

2007-03-06 Thread Bill Moseley
On Tue, Mar 06, 2007 at 11:04:11AM -0500, Timothy Adams wrote: Hi, I've been given some html which, oddly, is half in nicely quoted attributes+values: Have you considered using a tool that is designed to fix up your html? Such as HTML Tidy? -- Bill Moseley [EMAIL PROTECTED]

RE: FW: Adding quotes around html attribute values

2007-03-06 Thread Timothy Adams
Yes, there are tools, but I had it open in vim for editing already, anyways. Plus, the \{- is something I've been missing out on for a long time, so I'm glad I got it sorted out now. Tim's solutions all worked well. (the other) *tim* -Original Message- From: Bill Moseley

Re: VimTips Wiki: New Direction

2007-03-06 Thread Brian McKee
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6-Mar-07, at 3:34 PM, Denis Perelyubskiy wrote: On Tue, 06 Mar 2007 11:31:53 -0700, Steve Hall [EMAIL PROTECTED] said: From: Hari Krishna Dara, Tue, March 06, 2007 11:33 am and if we can enforce a fixed style on commenting such that the

RE: VimTips Wiki: New Direction

2007-03-06 Thread Tom Purl
On Tue, March 6, 2007 2:34 pm, Denis Perelyubskiy wrote: Finally, on the subject of converting the comments - it is entirely a manual process, that can not be automated. Comments need to be integrated into the body of the main tip (maybe the tip needs to be adjusted, reworded, etc). We

RE: VimTips Wiki: New Direction

2007-03-06 Thread Denis Perelyubskiy
On Tue, 6 Mar 2007 15:00:30 -0600 (CST), Tom Purl [EMAIL PROTECTED] said: On Tue, March 6, 2007 2:34 pm, Denis Perelyubskiy wrote: Finally, on the subject of converting the comments - it is entirely a manual process, that can not be automated. Comments need to be integrated into the body

To imap or to iabbr

2007-03-06 Thread Eric Leenman
Hi, What is the difference between imap or iabbr? Or in other words, when should you use imap and when to iabbr? Rgds, Eric _ Find what you need at prices you’ll love. Compare products and save at MSN® Shopping.

Re: VimTips Wiki: New Direction

2007-03-06 Thread Tobias Pflug
On Tue, 2007-03-06 at 18:38 +0200, Ali Polatel wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * Zdenek Sekera ([EMAIL PROTECTED]) wrote: -Original Message- From: Spencer Collyer [mailto:[EMAIL PROTECTED] Sent: 06 March 2007 08:31 Cc: Vim Mailing List Subject: Re:

Re: To imap or to iabbr

2007-03-06 Thread Tim Chase
What is the difference between imap or iabbr? Or in other words, when should you use imap and when to iabbr? Sometimes, they have similar results, while other times they have disjoint purposes. My general guidline: - use :iab only those times when expanding some short text into some long

RE: VimTips Wiki: New Direction

2007-03-06 Thread Denis Perelyubskiy
On Tue, 06 Mar 2007 13:24:09 -0800, Denis Perelyubskiy [EMAIL PROTECTED] said: [snip] so, i propose we move to agreeing what the format should be. ..and after thinking about this a bit more: - format? - karma/rating (i think someone already brought it up). How do we do this here? The use seems

Re: VimTips Wiki: New Direction

2007-03-06 Thread Diwaker Gupta
My apologies for barging in this discussion this late. However, I wanted to make sure all alternatives are being given a fair chance. It seems that wikibooks.org is the most popular choice. I just want to throw out a couple of other free, hosted Wiki alternatives for people to look at: o

RE: VimTips Wiki: New Direction

2007-03-06 Thread Hari Krishna Dara
On Tue, 6 Mar 2007 at 12:34pm, Denis Perelyubskiy wrote: On Tue, 06 Mar 2007 11:31:53 -0700, Steve Hall [EMAIL PROTECTED] said: From: Hari Krishna Dara, Tue, March 06, 2007 11:33 am and if we can enforce a fixed style on commenting such that the comments don't look like a mess. I

Re: VimTips Wiki: New Direction

2007-03-06 Thread Denis Perelyubskiy
On Tue, 6 Mar 2007 15:23:41 -0800, Diwaker Gupta [EMAIL PROTECTED] said: [snip] IMHO, the best solution is to setup a blog. There are several free Wordpress based blog services. There are several free Wordpress plugins to implement rating for posts, most popular posts and such. Commenting is

I want to map 't h i s' message

2007-03-06 Thread wolfpil
Using many colorschemes 't h i s' message appears yellow and is therefore hardly to read inside of a light background cterm. Auslagerungsdatei .post.swp ist bereits vorhanden! Nur zum [L]esen ffnen, Trotzdem (e)ditieren, (W)iederherstellen, (B)eenden, (A)bbrechen: After a long long time

Re: VimTips Wiki: New Direction

2007-03-06 Thread Paul Irofti
On Tue, Mar 06, 2007 at 06:45:51PM +1100, John Beckett wrote: Tom Purl wrote: I looked into the anti-spam features of Wikibooks, and they basically do the basics: blacklists for abusers and easy rollbacks. So the top 2% of spammers/vandalizers will be blocked, and it will be easy for the

RE: bug: gvim 7.0.205 on xp can not display ucs-2

2007-03-06 Thread Doug Cook
What gets displayed? Does this happen on gVim as well? Do Chinese characters appear correctly in the console window when using other programs? -Original Message- From: Mike Li [mailto:[EMAIL PROTECTED] Sent: Monday, March 05, 2007 10:04 PM To: vim-dev@vim.org Subject: Re: bug: gvim

Jump to tag in a file opened in another session

2007-03-06 Thread Corinna Vinschen
Hi, I've searched for this for some time now but it's either not available or I have to hone my search skills a lot. Most of the time I have multiple xterms opened, running vim sessions within the same project. The files are tagged and I'm using :ta and :tj a lot. It happens often that I'm

Re: bug: gvim 7.0.205 on xp can not display ucs-2

2007-03-06 Thread Mike Li
for big-endian, the following is displayed: [EMAIL PROTECTED]@ for little-endian, the following is displayed: 8l^M^@ ^@ ^@ and ^M are control characters. this definitely happens on gvim as well as console vim under windows xp. i'm not sure if it happens with other programs in the console

Re: bug: gvim 7.0.205 on xp can not display ucs-2

2007-03-06 Thread Mike Li
one point of clarification: the correcly functioning fedora console vim binaries were run under x11 (rxvt-unicode) with appropriate truetype fonts. -x On 3/5/07, Mike Li [EMAIL PROTECTED] wrote: gvim 7.0 (patches 1-205) under windows xp, built with the mingw compiler under cygwin (gcc

Re: Jump to tag in a file opened in another session

2007-03-06 Thread Milan Vancura
So, the bottom line is, I'm looking for is a way to open a file automatically in r/o mode if I'm going to jump to a tag in that file and the file is opened in another session. hi, I've thought about the same feature. I think there are three solutions now: 1. use one xterm with tabs instead

Re: bug: gvim 7.0.205 on xp can not display ucs-2

2007-03-06 Thread Mike Li
one more update: if i add the following two lines to my _vimrc, then the ucs-2le text file works: set fileencodings+=ucs-2le set encoding=utf-8 note that both need to be set before i edit the file. once i load the file, setting them no longer helps. -x On 3/6/07, Mike Li [EMAIL PROTECTED]

Re: Jump to tag in a file opened in another session

2007-03-06 Thread Corinna Vinschen
On Mar 6 11:54, Milan Vancura wrote: So, the bottom line is, I'm looking for is a way to open a file automatically in r/o mode if I'm going to jump to a tag in that file and the file is opened in another session. hi, I've thought about the same feature. I think there are three

Re: bug: gvim 7.0.205 on xp can not display ucs-2

2007-03-06 Thread A.J.Mechelynck
Mike Li wrote: one more update: if i add the following two lines to my _vimrc, then the ucs-2le text file works: set fileencodings+=ucs-2le set encoding=utf-8 note that both need to be set before i edit the file. once i load the file, setting them no longer helps. -x Of course: - Vim needs

patch 7.0.208

2007-03-06 Thread Bram Moolenaar
Patch 7.0.208 (after 7.0.171 and 7.0.180) Problem:VMS: changes to path handling cause more trouble than they solve. Solution: Revert changes. Files: src/buffer.c, src/memline.c, src/os_unix.c *** ../vim-7.0.207/src/buffer.c Tue Nov 28 17:44:51 2006 --- src/buffer.cMon Mar 5

RE: bug: gvim 7.0.205 on xp can not display ucs-2

2007-03-06 Thread Doug Cook
Using gVim, if I load your file normally, I do get ASCII instead of Unicode. But if I then type: :e ++enc=ucs-2 it appears to work. I don't have a Chinese font, so I get a box, but it is a single character and it is double-width, so it appears to be interpreted correctly by Vim. The same thing

Re: bug: gvim 7.0.205 on xp can not display ucs-2

2007-03-06 Thread Mike Li
much thanks to Doug and A.J. -- i now see that it wasn't a bug at all. sorry for the noise. -x On 3/6/07, Doug Cook [EMAIL PROTECTED] wrote: Using gVim, if I load your file normally, I do get ASCII instead of Unicode. But if I then type: :e ++enc=ucs-2 it appears to work. I don't have a

Re: [!] missing from :cb and related commands?

2007-03-06 Thread Yegappan Lakshmanan
Hi Gary, On 3/6/07, Gary Johnson [EMAIL PROTECTED] wrote: If I open a new window, read into it the results of a grep command, e.g., :r !grep -nH somepattern somefileset and then try to use that buffer as a quickfix list or location list with either the :cb or :lb commands, respectively, I