Re: Built-in Maps

2008-08-26 Fir de Conversatie Tony Mechelynck
On 27/08/08 06:05, Bill McCarthy wrote: > On Tue 26-Aug-08 7:25pm -0600, Tony Mechelynck wrote: > >> -- >> Ah! I found them ! >> -- >> see ":help dos-standard-mappings" > > Thanks Tony! I've revised my _vimrc correcti

Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Bram Moolenaar
Markus Heidelberg wrote: > Tony Mechelynck, 24.08.2008: > > > > OTOH, I would have nothing against both above-mentioned patches being > > incorporated into the mainline sources, Bill's patch as part of the > > +float feature, and your relative-numbers patch either as standard or as > > anoth

Re: Built-in Maps

2008-08-26 Fir de Conversatie Bill McCarthy
On Tue 26-Aug-08 7:25pm -0600, Tony Mechelynck wrote: > -- > Ah! I found them ! > -- > see ":help dos-standard-mappings" Thanks Tony! I've revised my _vimrc correction to work fine for Vim as well as Gvim: " Re

Re: String comparing

2008-08-26 Fir de Conversatie Xiaoyu ZHANG
Oh, I did not know that ignorecase will effect operator. Thank you, Ben & Matt, in fact ==# is what I need. -Xiaoyu On Wed, Aug 27, 2008 at 12:45 AM, Matt Wozniski <[EMAIL PROTECTED]> wrote: > > On Tue, Aug 26, 2008 at 7:47 AM, Xiaoyu ZHANG wrote: >> >> Here is a simple script >> >>

Re: Built-in Maps

2008-08-26 Fir de Conversatie Tony Mechelynck
On 27/08/08 01:43, Bill McCarthy wrote: > On Tue 26-Aug-08 6:26pm -0600, Tony Mechelynck wrote: > >> On 27/08/08 01:07, Bill McCarthy wrote: >>> Hello Vim Developers, >>> >>> I've noticed that some mappings are built into Gvim and Vim. >>> Here are the ones built into Gvim (from the output of: >>>

Re: Built-in Maps

2008-08-26 Fir de Conversatie Bill McCarthy
On Tue 26-Aug-08 6:26pm -0600, Tony Mechelynck wrote: > > On 27/08/08 01:07, Bill McCarthy wrote: >> Hello Vim Developers, >> >> I've noticed that some mappings are built into Gvim and Vim. >> Here are the ones built into Gvim (from the output of: >> :map|map!) - if it matters, I'm running under

Re: Built-in Maps

2008-08-26 Fir de Conversatie Tony Mechelynck
On 27/08/08 01:07, Bill McCarthy wrote: > Hello Vim Developers, > > I've noticed that some mappings are built into Gvim and Vim. > Here are the ones built into Gvim (from the output of: > :map|map!) - if it matters, I'm running under Windows XP: > > v "*d > v"*d > v

Re: reverse recursive .vimrc

2008-08-26 Fir de Conversatie Tony Mechelynck
On 26/08/08 15:11, Paul LeoNerd Evans wrote: [...] > Similarly, I like to allow the possibility of arbitrary code in > such .vimrc files. Perhaps my company's style guides require 4 space > indents in code written on Tuesday, and 3 every other day? Silly I know; > but if you can allow that sort of

Built-in Maps

2008-08-26 Fir de Conversatie Bill McCarthy
Hello Vim Developers, I've noticed that some mappings are built into Gvim and Vim. Here are the ones built into Gvim (from the output of: :map|map!) - if it matters, I'm running under Windows XP: v "*d v "*d v "*d v "*y v "-d"*P n

Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Markus Heidelberg
Tony Mechelynck, 26.08.2008: > > On 26/08/08 23:38, Markus Heidelberg wrote: > > Tony Mechelynck, 24.08.2008: > >> OTOH, I would have nothing against both above-mentioned patches being > >> incorporated into the mainline sources, Bill's patch as part of the > >> +float feature, and your relative-

Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Markus Heidelberg
Ben Fritz, 25.08.2008: > > I have not tried the patch, because it is too much trouble for me to > compile my own Vim on Windows. Yes, I'm on vim-dev, but a lot of > vimscript stuff and discussion of features/bugs happens that does not > require me to compile my own Vim or try out 3rd-party patche

Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Tony Mechelynck
On 26/08/08 23:38, Markus Heidelberg wrote: > Tony Mechelynck, 24.08.2008: >> OTOH, I would have nothing against both above-mentioned patches being >> incorporated into the mainline sources, Bill's patch as part of the >> +float feature, and your relative-numbers patch either as standard or as >>

Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Markus Heidelberg
Charles Campbell, 24.08.2008: > > I'll update the link to your patch (when I get a chance -- I'm still > updating vim on this machine+o/s). I hope you don't consider my plugin > a competitor, I thought of it as more of a step towards your patch (whet > folks' appetites, as it were) -- and may

Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Markus Heidelberg
Tony Mechelynck, 24.08.2008: > > OTOH, I would have nothing against both above-mentioned patches being > incorporated into the mainline sources, Bill's patch as part of the > +float feature, and your relative-numbers patch either as standard or as > another optional feature (I suppose the latt

Re: reverse recursive .vimrc

2008-08-26 Fir de Conversatie fnegroni
On Aug 26, 1:45 pm, Paul LeoNerd Evans <[EMAIL PROTECTED]> wrote: > On Mon, 25 Aug 2008 14:45:24 -0700 (PDT) > > fnegroni <[EMAIL PROTECTED]> wrote: > > I am about to embark in developing such feature for vim and will make > > it available as a patch, if there isn't one already available. > > I wr

[patch] missing parenthesis in runtime/doc/pattern.txt

2008-08-26 Fir de Conversatie Dominique Pelle
Attached patch fixes a missing parenthesis in runtime/doc/pattern.txt in Vim-7.2. Cheers -- Dominique --~--~-~--~~~---~--~~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~---

Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Ben Fritz
On Aug 25, 11:05 am, Ben Fritz <[EMAIL PROTECTED]> wrote: > On Aug 25, 10:29 am, Charles Campbell <[EMAIL PROTECTED]> > wrote: > > > OK -- I've made a reporting-only variable, g:rltvnmbrmode (=1 enabled, > > =0 disabled) for this purpose (v3b). > > Hey, thanks! > > Should that be b:rltvnmbrmode,

Re: Comparing file names

2008-08-26 Fir de Conversatie Matthew Winn
On Mon, 25 Aug 2008 16:39:12 -0400, "James Vega" <[EMAIL PROTECTED]> wrote: > On Mon, Aug 25, 2008 at 4:21 PM, Tony Mechelynck > <[EMAIL PROTECTED]> wrote: > > > > The question is not to determine which other files, if any, are > > hardlinked to a specific file (which might require scanning all >

Re: String comparing

2008-08-26 Fir de Conversatie Ben Fritz
On Aug 26, 6:47 am, "Xiaoyu ZHANG" <[EMAIL PROTECTED]> wrote: > Here is a simple script > > > $ cat x.vim > if 'a' == 'A' > echoe "equal." > endif > > > When i try source it (v7.2), i got this > > :

Re: String comparing

2008-08-26 Fir de Conversatie Matt Wozniski
On Tue, Aug 26, 2008 at 7:47 AM, Xiaoyu ZHANG wrote: > > Here is a simple script > > > $ cat x.vim > if 'a' == 'A' > echoe "equal." > endif > > > When i try source it (v7.2), i got this > > :so x.vim

Re: Moving cursor to start of current word

2008-08-26 Fir de Conversatie Andy Wokula
Robert Webb schrieb: >>>:silent! normal! heb >> Won't work if the word is a single character. > > Also won't work at the start of this text: "== blah". > The idea is to put the cursor at the start of the word that > expand("") would return. > > This works quite well: > > func! Sow() >

Re: String comparing (2)

2008-08-26 Fir de Conversatie Nico Weber
Hi, On 26.08.2008, at 13:58, Xiaoyu ZHANG wrote: > Here is a simple script > > > $ cat x.vim > if 'a' == 'A' > echoe "equal." > endif > > > When i try source it (v7.2), i got this > > :so x.vim > E

String comparing

2008-08-26 Fir de Conversatie Xiaoyu ZHANG
Here is a simple script $ cat x.vim if 'a' == 'A' echoe "equal." endif When i try source it (v7.2), i got this :so x.vim Error detected while processing x.vim: line2: equal. Press ENTER or type

String comparing (2)

2008-08-26 Fir de Conversatie Xiaoyu ZHANG
I'm afraid I mistake the mail-alias in last mail. :( Here is a simple script $ cat x.vim if 'a' == 'A' echoe "equal." endif When i try source it (v7.2), i got this :so x.vim Error detected while pr

Re: reverse recursive .vimrc

2008-08-26 Fir de Conversatie Charles Campbell
fnegroni wrote: > There is a feature in Perforce, which allows the command line client > (p4) to find its configuration file (.p4rc) by looking up the current > directory and any directory above it in recursive order, stopping at > the first one that has a .p4rc file in it. If that fails, it falls

Re: reverse recursive .vimrc

2008-08-26 Fir de Conversatie Paul LeoNerd Evans
On Tue, 26 Aug 2008 14:01:12 +0100 "Jan Minář" <[EMAIL PROTECTED]> wrote: > Let me ask: What are the commands you (would) > put in that .vimrc? What are the problems you are trying to fix? I find it's usually stylistic issues. Quite often I'll be changing things like shiftwidth, expandtabs, som

Re: reverse recursive .vimrc

2008-08-26 Fir de Conversatie Paul LeoNerd Evans
On Tue, 26 Aug 2008 14:01:12 +0100 "Jan Minář" <[EMAIL PROTECTED]> wrote: > This is inherently insecure. I am aware of this; I make it very clear. Drop a .vimrc saying let g:additionalrc_stop = 1 in the innermost-nested place you can that's still safe, and all is OK. Fail to do that, and On

Re: reverse recursive .vimrc

2008-08-26 Fir de Conversatie Jan Minář
On Tue, Aug 26, 2008 at 1:45 PM, Paul LeoNerd Evans <[EMAIL PROTECTED]> wrote: > On Mon, 25 Aug 2008 14:45:24 -0700 (PDT) > fnegroni <[EMAIL PROTECTED]> wrote: > >> I am about to embark in developing such feature for vim and will make >> it available as a patch, if there isn't one already availabl

RE: Moving cursor to start of current word

2008-08-26 Fir de Conversatie Robert Webb
I wrote: > This works quite well: > > func! Sow() > if (getline(".")[col(".") - 1] =~ '\k') > normal wb > else > call search('\<', 'sW') > endif > endfunc Or even better: func! StartOfWord() call search('.\>', 'cWs') call search('\<', 'cWb') endfunc Rob. -- R

Re: reverse recursive .vimrc

2008-08-26 Fir de Conversatie Paul LeoNerd Evans
On Mon, 25 Aug 2008 14:45:24 -0700 (PDT) fnegroni <[EMAIL PROTECTED]> wrote: > I am about to embark in developing such feature for vim and will make > it available as a patch, if there isn't one already available. I wrote one: http://www.leonerd.org.uk/hacks/vim/additionalrc.html -- Paul "Le