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
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
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
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
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
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
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
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
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
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
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
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 :-)
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
-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
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
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
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
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
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()
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
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
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
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
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
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
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
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
Here's a first attempt at a tangofied vim icon:
http://panos.solhost.org/vim-01.png
http://panos.solhost.org/vim-02.png
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
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,
--- 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
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
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
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
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
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
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...
37 matches
Mail list logo