Re: a question about subsitution....

2006-07-12 Thread Robert Cussons
Thanks Max and Chip, I didn't realis that \ and \ were used to denote the beginning and end of the word and therefore they could be used separately, I always just thought of them as a way of getting an exact match, which I suppose is almost the same thing, however, I still don't understand why

Shortest Pattern Match

2006-07-12 Thread Bob Fleming
Hi all, I believe vim carries out greedy pattern matching, i.e. the longest pattern found will be used. Is there a way of performing shortest matching ? As an example, I have the following text: fe fi fo united kingdom fe fi fo 0911 209 30 30 and I want to delete everything up to the word

substitute a char with newline

2006-07-12 Thread Fabio Rotondo
Hi, I have a text file with many lines made like this: [EMAIL PROTECTED]@[EMAIL PROTECTED]@ And I'd like to have them splitted on @ in newlines. I have tried: :%s/@/\n/g but it does not work. What am I missing? Thanks, Fabio

Re: [VIM] substitute a char with newline

2006-07-12 Thread Walter Cazzola
On Wed, 12 Jul 2006, Fabio Rotondo wrote: I have a text file with many lines made like this: [EMAIL PROTECTED]@[EMAIL PROTECTED]@ And I'd like to have them splitted on @ in newlines. I have tried: :%s/@/\n/g but it does not work. What am I missing? In my view two things are

Re: Shortest Pattern Match

2006-07-12 Thread Jürgen Krämer
Hi, Bob Fleming wrote: Hi all, I believe vim carries out greedy pattern matching, i.e. the longest pattern found will be used. Is there a way of performing shortest matching ? As an example, I have the following text: fe fi fo united kingdom fe fi fo 0911 209 30 30 and I want to

Re: substitute a char with newline

2006-07-12 Thread Jürgen Krämer
Hi, Fabio Rotondo schrieb: I have a text file with many lines made like this: [EMAIL PROTECTED]@[EMAIL PROTECTED]@ And I'd like to have them splitted on @ in newlines. I have tried: :%s/@/\n/g but it does not work. What am I missing? \n in the second part of a substitution

Re: substitute a char with newline

2006-07-12 Thread Wim R. Crols
Jürgen Krämer wrote: Hi, Fabio Rotondo schrieb: I have a text file with many lines made like this: [EMAIL PROTECTED]@[EMAIL PROTECTED]@ And I'd like to have them splitted on @ in newlines. I have tried: :%s/@/\n/g but it does not work. What am I missing? \n in the second part of

Re: [VIM] substitute a char with newline

2006-07-12 Thread Walter Cazzola
On Wed, 12 Jul 2006, Peter Palm wrote: In my view two things are wrong: - instead of 'g' use 'cg' to apply the change to all the occurrence of @ in a line; So you have to confirm every substitution? Why? whoops, I make a mistake, I'm so used to check what I substitute that I forgot its

Re: a question about subsitution....

2006-07-12 Thread Yakov Lerner
On 7/12/06, Robert Cussons [EMAIL PROTECTED] wrote: Thanks Max and Chip, I didn't realis that \ and \ were used to denote the beginning and end of the word and therefore they could be used separately, I always just thought of them as a way of getting an exact match, which I suppose is almost the

Re: substitute a char with newline

2006-07-12 Thread Jürgen Krämer
Hi, Wim R. Crols wrote: Side-question: What line endings does \r insert? Or is this dependant on fileformat? \r only inserts a end-of-line-marker which is then represented by NUL internally (more or less). The actual line ending that is visible in the file is determined when the file is

Re: substitute a char with newline

2006-07-12 Thread Yakov Lerner
On 7/12/06, Wim R. Crols [EMAIL PROTECTED] wrote: Jürgen Krämer wrote: Hi, Fabio Rotondo schrieb: I have a text file with many lines made like this: [EMAIL PROTECTED]@[EMAIL PROTECTED]@ And I'd like to have them splitted on @ in newlines. I have tried: :%s/@/\n/g but it does not

Re: perlcomplete.vim -- anyone working on this?

2006-07-12 Thread Dr Bean
On Wed, 12 Jul 2006, Hakim Cassimally wrote: Also... at the moment the script in the manpage doesn't have a mapping to refresh the tags file. If you defined the sub after opening the file, it won't be seen until you close and reopen. (I'll probably fix this soon, but patches welcome :-)

Re: a question about subsitution....

2006-07-12 Thread Yakov Lerner
On 7/12/06, Yakov Lerner [EMAIL PROTECTED] wrote: \ requires alphabetic char right after it. Thisis the reason \\* never matches. I guess I forgot to mention that '*' is not alphabetic character. Yakov

Re: How generate tags from /usr/include?

2006-07-12 Thread Widmann Bruno
-Ursprüngliche Nachricht- Von: eldruida [mailto:[EMAIL PROTECTED] When I do tags, with ctags, in /usr/include/stdio.h But, I want i want declarations of functions, example: I think it is: ctags --C-kinds=+p see ctags --list-kinds=C -- Die Uebermittlung von Nachrichten per e-mail

Re: Remapping - how to get the count

2006-07-12 Thread Tim Chase
Why not just use C-U in the mapping (after the : ) to clear the command line, then use v:count or v:count1 instead of the second argument? Because they're not in my active vimming vocabulary... :) Yes, using v:count/v:count1 is a much cleaner more understandable way to do it. -tim

RE: [Bulk] Re: Shortest Pattern Match

2006-07-12 Thread Bob Fleming
Perfect, thanks very much. -Original Message- From: Jürgen Krämer [mailto:[EMAIL PROTECTED] Sent: Wed 12 July 2006 09:14 To: vim mailing list Subject: [Bulk] Re: Shortest Pattern Match Hi, Bob Fleming wrote: Hi all, I believe vim carries out greedy pattern matching, i.e. the

Re: Remapping - how to get the count

2006-07-12 Thread Andy Wokula
Yakov Lerner schrieb: On 7/8/06, Andy Wokula [EMAIL PROTECTED] wrote: I want to remap Ctrl-A (normal mode) to do something similar with other data, e.g. :nmap c-a ciwc-r=IncRoman(@-)cresc Now if a count is provided this will mess up the text, e.g. 10c-a does 10ciw... What is a good way

Re: language menu

2006-07-12 Thread Andy Wokula
Cesar Romani schrieb: Normally the language of my vim's menu is Italian. How can I change it to English? Many thanks in advance, Cesar :set langmenu=none works for me. Put it early in your .vimrc, :help 'langmenu' says: This option must be set before loading menus, switching on filetype

:call append()

2006-07-12 Thread Yakov Lerner
I wanted to insert multiline text using :call append(). 1. I tried :call append(1, a\nb\n); -- Not good, insert null-bytes (^@) 2. I tried :call append(1, a\rb\r) -- Not good, inserts ^M (I'm on Linux) 3. I tried :call append(1, a\CRb\CR) Not good, same as (2) So, how do I append()

Re: :call append()

2006-07-12 Thread Bram Moolenaar
Yakov Lerner wrote: I wanted to insert multiline text using :call append(). 1. I tried :call append(1, a\nb\n); -- Not good, insert null-bytes (^@) 2. I tried :call append(1, a\rb\r) -- Not good, inserts ^M (I'm on Linux) 3. I tried :call append(1, a\CRb\CR) Not good, same as

Tag completion of tag root

2006-07-12 Thread Max Dyckhoff
Has anyone written some useful script which will allow me to press some key combination and get vim to insert the common root of all matching tags. I don't think that's a very good explanation, so here's an example: For this example, imagine the tags are wibble, foobar, food, foonicular, foot. I

open Explore in new tab

2006-07-12 Thread Cesar Romani
How to open a new tab with Explore? I've read about :tab {cmd} but it works only when cmd is split or help. Anyway I can open a new tab with :tabe or :tabnew and then I can run :Explore on it but I wanted to do it in one step. Is it possible? Many thanks in advance. Cesar

Re: Autoselect language for spell

2006-07-12 Thread Stefan Karlsson
Is there an easy way to autoselect language for the builtin spell checker in vim 7.0? Vimspell plugin has this functionality: the plugin looks for a specified number of lines and try to guess which language should it use. Set spelllang -- yes there is three l in that option :-) -- to a

Re: :call append()

2006-07-12 Thread Yakov Lerner
On 7/12/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: I wanted to insert multiline text using :call append(). 1. I tried :call append(1, a\nb\n); -- Not good, insert null-bytes (^@) 2. I tried :call append(1, a\rb\r) -- Not good, inserts ^M (I'm on Linux) 3. I

popupmenus in textmode

2006-07-12 Thread Tobias Pflug
Hi, I was wondering if someone could give me some hints on creating/using popup menues in scripts such as those used for omnicomplete ? I had a look at what I could find in vim help but somehow did not get very far. Maybe someone could give me a mini example on how to create a menu with some

Repaint delay/hang of rxvt when closing gvim/vim if ctfmon.exe is running

2006-07-12 Thread cygwin . t . bnelson
I'm posting this to get it into the archives in case anyone else has the same problem. It took me a long time to figure this out. Rxvt is a terminal emulator from cygwin. If you're running rxvt on Windows with a vim/gvim window on top of it and you close gvim, the rxvt window should redraw

How do I stop a mapping from looking like a mapping?

2006-07-12 Thread Peter Hodge
Hello all, I want to make a mapping like this: :inoremap foreach foreach() {CR}ESCk$3hi The end result being that when I type: foreach I should get foreach() { } However, if I type anything beginning with 'for', the letters disappear until I type something that is not part of the

First attempt at tangofied icon

2006-07-12 Thread Panos Laganakos
Here's a first attempt at a tangofied vim icon: http://panos.solhost.org/vim-01.png http://panos.solhost.org/vim-02.png

Re: How do I stop a mapping from looking like a mapping?

2006-07-12 Thread Tim Chase
I want to make a mapping like this: :inoremap foreach foreach() {CR}ESCk$3hi The end result being that when I type: foreach I should get foreach() { } Sounds more like you're reaching for an abbreviation rather than a mapping. :iab foreach foreach() {^M}^[O where ^M is

Re: Tag completion of tag root

2006-07-12 Thread Hari Krishna Dara
On Wed, 12 Jul 2006 at 11:48am, Max Dyckhoff wrote: Has anyone written some useful script which will allow me to press some key combination and get vim to insert the common root of all matching tags. I don't think that's a very good explanation, so here's an example: For this example,

Re: How do I stop a mapping from looking like a mapping?

2006-07-12 Thread Peter Hodge
--- Tim Chase [EMAIL PROTECTED] wrote: I want to make a mapping like this: :inoremap foreach foreach() {CR}ESCk$3hi The end result being that when I type: foreach I should get foreach() { } Sounds more like you're reaching for an abbreviation rather than

matchit doesn't work for php

2006-07-12 Thread Cesar Romani
In the following function the bracket at 3 doesn't match the bracket at 17 And the bracket at 5 doesn't match the bracket at 8 1 ?php 2 function test1($a,$b,$c,$d,$e,$f) 3 { 4 if($e=='hola') 5 { 6 if($f=='') $f='1000'; 7 $s='{'.$d.':'.$f.'}amigo'; 8 } 9

Re: VIM 7.0 scripts, ctags and taglist.vim

2006-07-12 Thread Aaron Griffin
Commet nitpick/correction: // '#' is sed in the new autoload mechanism. see :h autoload in vim help Is missing a 'u': // '#' is used in the new autoload mechanism. see :h autoload in vim help

Re: question for charles (or anyone): netrw whacking t

2006-07-12 Thread Charles E Campbell Jr
Benji Fisher wrote: I think I see the problem. In $VIMRUNTIME/autoload/netrw.vim , in the function netrw#DirBrowse() , there are the lines if fo =~ '[ta]' set fo-=t set fo-=a echohl Warning echo '***warning*** directory browsing and formatoptions ta are incompatible' echohl

Patch 7.0.039

2006-07-12 Thread Bram Moolenaar
Patch 7.0.039 Problem:Calling inputdialog() with a third argument in the console doesn't work. Solution: Make a separate function for input() and inputdialog(). (Yegappan Lakshmanan) Files: src/eval.c *** ../vim-7.0.038/src/eval.c Wed Jul 12 21:48:56 2006

Gvim for KDE

2006-07-12 Thread Stefan Karlsson
These two sections in the documentation seems contradictory: *gui-kde* *kde* *KDE* *KVim* There is no KDE version of Vim. There has been some work on a port using the Qt toolkit, but it never worked properly and it has been abandoned. Work

Re: Gvim for KDE

2006-07-12 Thread scott
stefan-- i don't get it vim compiles for me just fine -- suse linux 10.0, using KDE, vim 7.0.35 -- am i missing something here? are you asking for a binary? if you want one that excludes arabic, farsi, and righleft, and includes python 2.4.3, i can probably find a way to get you one...