Re: repeat replace many time on each line

2007-04-03 Thread Arnaud Bourree
Tobia wrote on 02/04/2007 23:51: Bob Hiestand wrote: Tobia wrote: Arnaud Bourree wrote: I've Xml document with attribute likes: foo=00 12 AF I want to replace with: foo=0x00 0x12 0xAF this works: %s/\%(\%(foo=\\)\@=\%([0-9A-F]\{2\}\s\)*\)\@=\([0-9A-F]\{2\}\)/0x\1/g In using :s with

Re: bracket completion

2007-04-03 Thread hermitte
shawn bright [EMAIL PROTECTED] wrote: i got the main functionality working, pretty much. I only really desire the bracket matching, and so far, i am really pleased. They all work except the [] . So i think maybe there is a conflict with another plugin ( i have the snippets-Emu, supertabs, and

Re: Newbee question:Why don't I have the syntax highlighting when editing files like *.sh *.xml,etc?

2007-04-03 Thread A.J.Mechelynck
wangxu wrote: Why don't I have the syntax highlighting when editing files like *.sh *.xml,etc? After commands like syntax on,still nothing happened. below is my /etc/vim/vimrc,what else should I do to turn the syntax highlighting on? Thanks, shell. [...] The :scriptnames command will list all

Re: invoking yanked register into colon command

2007-04-03 Thread John Little
Gene Kwiecinski wrote: Me, I go to whatever I'm looking for, hit 'v', then use normal motion commands (eg, 3e) to highlight the text in question, instead of using the mouse. If a single word, '*' will automagically highlight and search for the word under the cursor. And with vnoremap *

Re: completion menu colors

2007-04-03 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: fREW [EMAIL PROTECTED] 写于 2007-04-03 10:56:11: Are these things that should be set in the colorschemes, but just aren't yet because the names are new, or what? -fREW This should be set in colorscheme, however, if you're using the default colorschme it is buit-in

Re: bracket completion

2007-04-03 Thread Karl Guertin
On 3/31/07, Greg Fitzgerald [EMAIL PROTECTED] wrote: Anyone know of a way to achieve bracket completion? I've been sitting on a plugin that does this for a month or so. The main difference between my plugin and the rest of the options here is that I do the completion without breaking history

Re: bracket completion

2007-04-03 Thread Silent1
Just tried the plugin and it works great, the only issue i'm having is typing '{' results in this '{|}' not { | } where | is the cursor position. Is there any option to change this or am i doing something wrong? Thanks --Brendon On 4/3/07, Karl Guertin [EMAIL PROTECTED] wrote: On 3/31/07,

Re: bracket completion

2007-04-03 Thread Karl Guertin
On 4/3/07, Silent1 [EMAIL PROTECTED] wrote: where | is the cursor position. Is there any option to change this or am i doing something wrong? Sorry, no. I'll probably add support for {{ doing that, which was the plan, but I never got around to it. Maybe this afternoon.

Re: bracket completion

2007-04-03 Thread Charles E Campbell Jr
Panos Laganakos wrote: One thing that would also be great, was if you were able to tab your way out of it, ie move to the outside of the bracket, once you're done. Now you need to either press right, to move ahead (which is not quite vim-ish), or hit escape and Shift_A, to resume editing. Only

RE: bracket completion

2007-04-03 Thread David Fishburn
-Original Message- From: Karl Guertin [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 6:42 AM To: vim@vim.org Subject: Re: bracket completion On 3/31/07, Greg Fitzgerald [EMAIL PROTECTED] wrote: Anyone know of a way to achieve bracket completion? I've been sitting

Re: Esperanto dictionary

2007-04-03 Thread Hugh Sasse
On Mon, 2 Apr 2007, A.J.Mechelynck wrote: Cyril Slobin wrote: On 4/2/07, Hugh Sasse [EMAIL PROTECTED] wrote: [Info about plugin trimmed. Thank you. Also isn't your example often written CXirkaux because the CX is (effectively) one character, capitalized? I've newer seen this form,

compiler plugin for the ARM compiler

2007-04-03 Thread Sibin P. Thomas
Hi, Is a compiler plugin for the ARM compiler (armcc) already available? (Couldn't find it in the Vim site) I am basically looking for the errorformat for the ARM compiler. Regards, Sibin DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before

GetLatestVimScripts and compressed scripts

2007-04-03 Thread Guido Van Hoecke
Hi, I hope to get some calrification about a recent change in vim's behaviour. I just started using :GetLatestVimScripts and vim now ignores any *.gz plugin scripts in my ~/.vim/plugin directory. It e.g. does not source the project.vim.gz script anymore. When I gunzip it, and it gets sourced.

Re: Esperanto dictionary

2007-04-03 Thread A.J.Mechelynck
Hugh Sasse wrote: [...] My problem is that I mainly work through Windows systems (often ssh into Solaris, but still) and I don't have a clue what to do with fonts for all this, E.g. in PuTTY. I'm not entirely clear how to do this in gvim for that matter. I've read some of the help on UTF8 but

Re: bracket completion

2007-04-03 Thread Panos Laganakos
I tried out Karl's plugin, and it works great, good job :) Although, I'd prefer if I could use tab to move outside, instead of the corresponding closing bracket char. Could this be achieved in a future version? On 4/3/07, David Fishburn [EMAIL PROTECTED] wrote: -Original Message-

Re: Esperanto dictionary

2007-04-03 Thread Hugh Sasse
On Tue, 3 Apr 2007, A.J.Mechelynck wrote: Some years ago, I wrote the chapter of the Vim FAQ about Unicode: browse to http://vimdoc.sourceforge.net/htmldoc/vimfaq.html and scroll to the last section, e.g. by searching the page for the string SECTION 37 (which happens twice, once in the

Re: completion menu colors

2007-04-03 Thread Charles E Campbell Jr
fREW wrote: Is there a way to change the completion menu colors? Sure - see http://vim.sourceforge.net/scripts/script.php?script_id=1081 which both displays the current colors in whatever colorscheme you're using, plus provides a colorscheme editor (just rightmouse click on a color). The

Executing vimfunctions in background

2007-04-03 Thread Chuck Mason
I'm interested in writing a plugin that could run in the background as I do some work in a buffer. For instance I have a function that appends a line to :copen. I would like to run it in the background continuously. How could I do this and continue working in the foreground? func myFunc()

Question about paragraphs: make lines containing only whitespace characters a paragraph separator

2007-04-03 Thread Thomas
Hi, This is something that I found annoying quite a time now and I'm pretty sure there is a simple solution for this problem. Paragraphs are defined as: A paragraph begins after each empty line, and also at each of a set of paragraph macros, specified by the pairs of characters in the

Re: Executing vimfunctions in background

2007-04-03 Thread Yakov Lerner
On 4/3/07, Chuck Mason [EMAIL PROTECTED] wrote: I'm interested in writing a plugin that could run in the background as I do some work in a buffer. For instance I have a function that appends a line to :copen. I would like to run it in the background continuously. How could I do this and

RE: Executing vimfunctions in background

2007-04-03 Thread Chuck Mason
Yes and no- I think this would work in certain situations, but of course what happens when I don't move the cursor? Actually, why isn't there a Timer autocommand? :) Feature request? -Original Message- From: Yakov Lerner [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 11:05

Re: Executing vimfunctions in background

2007-04-03 Thread Yakov Lerner
On 4/3/07, Chuck Mason [EMAIL PROTECTED] wrote: Yes and no- I think this would work in certain situations, but of course what happens when I don't move the cursor? If you didn't move the cursor -- then why would you add the same position to the quicfix list again and again ? What's the point

RE: Executing vimfunctions in background

2007-04-03 Thread Chuck Mason
Well, that sample 'myFunc' was just that- a sample. Imagine now, that it doesn't depend on cursor location but on a daemon running on your system. Chuck -Original Message- From: Yakov Lerner [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 12:44 PM To: Chuck Mason Cc: vim@vim.org

quick query about moving a selection

2007-04-03 Thread shawn bright
lo there, i know with i can move a selection to the right by one indent, how can i move a selection just one space ? thanks sk

Re: quick query about moving a selection

2007-04-03 Thread Tim Chase
i know with i can move a selection to the right by one indent, how can i move a selection just one space ? Well, if you want to move by one indent, you can :set sw=1 ts=1 et which will then make and indent by one space (not one tab) or, you can :set sw=1 ts=1 noet and

Re: bracket completion

2007-04-03 Thread Jonas Persson
I just downloaded and it works great. I have one wish though. I have syntax folding for C++ and usually have a lot of open/closed folds. But when I write a {, all folds open. Is it possible to have the {} pair inserted without disturbing the folds? / Jonas Karl Guertin skrev: On

Re: bracket completion

2007-04-03 Thread Karl Guertin
On 4/3/07, Panos Laganakos [EMAIL PROTECTED] wrote: Although, I'd prefer if I could use tab to move outside, instead of the corresponding closing bracket char. This should be fairly simple to add. I won't map it, but I'll set up a Plug for you. On 4/3/07, Jonas Persson [EMAIL PROTECTED]

Re: Newbee question:Why don't I have the syntax highlighting when editing files like *.sh *.xml,etc?

2007-04-03 Thread Tobia
A.J.Mechelynck wrote: /etc/vim/vimrc is a strange location for a system vimrc It is a very intuitive location. In Debian all system-wide configuration files are in /etc/package name/ I know just enough Chinese to understand that 大 on the fourth line means big, so I can guess that that fourth

Re: quick query about moving a selection

2007-04-03 Thread shawn bright
cool enough, thanks, tim sk On 4/3/07, Tim Chase [EMAIL PROTECTED] wrote: i know with i can move a selection to the right by one indent, how can i move a selection just one space ? Well, if you want to move by one indent, you can :set sw=1 ts=1 et which will then make and

Spellcheck HTML files with syntax on?

2007-04-03 Thread Mitch Wiedemann
I am using Vim 7.0* and I mostly edit HTML files. I've noticed the on-the-fly spell checking works great in regular .txt files and such, but I can't get it working in HTML files without turning the :syntax off. Is there a way to get on-the-fly spellchecking with syntax highlighting as well? *

case of very slow regex search

2007-04-03 Thread Yakov Lerner
I use sometimes the regex that finds paragraphs containing given words w1,w2,... in any order ( I define paragraph as separated by lines, \n\n). I use the pattern like this: (two-word example, w1 and w2, but easily expandable for N words): /\c\(.\|.\n\)*\w1\\\(.\|.\n\)*\w2\ (and I

Re: Question about paragraphs: make lines containing only whitespace characters a paragraph separator

2007-04-03 Thread cga2000
On Tue, Apr 03, 2007 at 02:00:59PM EDT, Thomas wrote: Hi, This is something that I found annoying quite a time now and I'm pretty sure there is a simple solution for this problem. Paragraphs are defined as: A paragraph begins after each empty line, and also at each of a set of

Esperanto dictionary

2007-04-03 Thread Cyril Slobin
On 4/3/07, Hugh Sasse [EMAIL PROTECTED] wrote: I've not encountered titlecase before this thread, so I don't understand its semantics yet. From http://www.unicode.org/glossary/#T «Titlecase. Uppercased initial letter followed by lowercase letters in words. A casing convention often used in

Re: case of very slow regex search

2007-04-03 Thread Andy Wokula
Yakov Lerner schrieb: I use sometimes the regex that finds paragraphs containing given words w1,w2,... in any order ( I define paragraph as separated by lines, \n\n). I use the pattern like this: (two-word example, w1 and w2, but easily expandable for N words):

Folding Perl POD

2007-04-03 Thread Bill Moseley
I don't use folding often, but I'm not figuring out if/how to fold POD documentation in a Perl module. I have a module that includes: =head1 METHODS =over 4 =item wazbat This method returns the wazbat of the current object. =cut sub wazbat { my $self = shift;

Re: case of very slow regex search

2007-04-03 Thread Peter Hodge
--- Yakov Lerner [EMAIL PROTECTED] wrote: I use sometimes the regex that finds paragraphs containing given words w1,w2,... in any order ( I define paragraph as separated by lines, \n\n). I use the pattern like this: (two-word example, w1 and w2, but easily expandable for N words):

Re: Esperanto dictionary

2007-04-03 Thread Cyril Slobin
On 4/2/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Well, I suppose both uppercase and titlecase should be supported then. Cxu ne? CXU VERE NE? (Kompreneble, ĉiukaze mi preferas verajn ĉapelitajn literojn.) CXU, Cxu and cxu are all passed cheking, CXu doesn't. And I believe this is a Right

Vim memory leak

2007-04-03 Thread Max Dyckhoff
My instance of vim (gvim on Windows) appears to have a memory leak, which makes me sad. Is this a common thing for everyone, or is there something in my setup which might be causing it? It's pretty serious. When I start gvim and load my standard session, it will take up about 86MB of RAM. This

Re: bracket completion

2007-04-03 Thread Greg Fitzgerald
On Tue, Apr 03, 2007 at 04:51:46PM -0400, Karl Guertin wrote: On 4/3/07, Panos Laganakos [EMAIL PROTECTED] wrote: Although, I'd prefer if I could use tab to move outside, instead of the corresponding closing bracket char. This should be fairly simple to add. I won't map it, but I'll set up

Re: Newbee question:Why don't I have the syntax highlighting when editing files like *.sh *.xml,etc?

2007-04-03 Thread wangxu
Sure: )I will remeber that next time I post something. I'v solved the problem. My runtimepath is wrong. I updated vim to 7.0 using apt-get, but left the old vimrc unchanged. I checked the vimrc and replaced /usr/share/vim/vim63 to /usr/share/vim/vim70, It is OK now. Thank you All: )

Re: Vim memory leak

2007-04-03 Thread Tim Chase
:sp on a new buffer causes a raise of 4-8K. :q on a split causes a raise of 4-8K. Switching to/from gvim causes a small increase, typically 4-8K for a few switches. Searching (with *) for a word in a .c file (with syntax highlighting) causes it to increase. If you hold down * then you

how to replace ESC to some other key?

2007-04-03 Thread wangxu
ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example? Thanks.

Re: Question about paragraphs: make lines containing only whitespace characters a paragraph separator

2007-04-03 Thread Thomas
Maybe I misunderstand the problem but can't you change those lines with just blanks to empty lines? Sure I can remove the whitespace characters. But I'd rather simply not have to care about them (but this is filetype-dependent because for some filetypes this really could be what I want). I

Re: how to replace ESC to some other key?

2007-04-03 Thread panshizhu
wangxu [EMAIL PROTECTED] 写于 2007-04-04 23:55:55: ESC is so far from the center of the keyboard. Can I replace this key to Caps Lock,for example? Thanks. This was well discussed on vim online. Search for tips in vim.sf.net. You'll got all things you need to assign CapsLock to ESC. --