Re: Delete from cursor to next instance of a pattern

2009-03-23 Thread Dave Land
On Mar 23, 2009, at 8:07 AM, Derek Wyatt wrote: > > dt< Thanks for this: I've always used d/< which works like a charm, but with the unintended side effect of changing the saved search string. Dave --~--~-~--~~~---~--~~ You received this message from the "

Re: changing what counts as a paragraph

2009-09-09 Thread Dave Land
On Sep 9, 2009, at 1:12 AM, Spencer Collyer wrote: > On Wed, 9 Sep 2009 10:54:54 +0800, Wayne wrote: >> On Wed, Sep 9, 2009 at 6:15 AM, Fuzzy Logic >> wrote: >> >>> >>> Don't take this as combative, but I'm more concerned with answering >>> a question correctly than arbitrary rules about >>> t

Re: Spell check not limited to comments in .java files

2009-11-11 Thread Dave Land
Folks, While we're on the topic of java.vim, I noticed two things that seemed to me to be bugs, but it is likely that I haven't considered the myriad consequences of the following: 1) On line 49 of ftp://ftp.vim.org/pub/vim/runtime/syntax/java.vim, "String" is not included in the list of j

Re: ctrl+J without adding a space

2009-11-30 Thread Dave Land
On Nov 30, 2009, at 2:17 PM, Dominique Pellé wrote: > Peng Yu wrote: > >> I use ctrl+J to join two lines. However, there will always be a space >> added between the two lines that are joined. I'm wondering how to >> configure gvim not to add this extra space? > > See :help gJ Thanks to this ques

Re: HTML editing: treat tags as a word

2009-12-02 Thread Dave Land
On Dec 1, 2009, at 7:05 PM, Tony Mechelynck wrote: > On 06/11/09 17:50, Ben Fritz wrote: >> >> On Nov 6, 10:34 am, Ben Fritz wrote: >>> Incidentally, your example html may need some attention. Have you >>> validated your markup? I don't remember if html requires it, but at >>> the very least it's

Re: vim can't find carriage returns

2011-05-24 Thread Dave Land
On May 24, 2011, at 1:45 PM, Tony Mechelynck wrote: > On 24/05/11 14:31, Eljay Love-Jensen wrote: > [...] >> I'm not sure why I have to search FOR multiple \n and replace WITH the >> \r. That may be a vi-thing, a Vim-thing, or a quirk / detail of my >> platform (Windows 7, using the prebuilt gVim

Re: gf and new tab

2011-06-01 Thread Dave Land
On May 31, 2011, at 11:34 PM, Jürgen Krämer wrote: > eNG1Ne wrote: > >> Chuffed at remembering, after seeing it go past in the group, that gf >> opens the file under the cursor … less chuffed that when I use gf to >> check an include file, this closes the file I'm currently working on >> :-{ Any

Re: syntax highlighting: 'good' syntax item becomes 'bad' after unrelated change in file

2011-06-06 Thread Dave Land
On Jun 6, 2011, at 3:43 PM, Andrew Long wrote: > So, while I believe that I have found a bug in the syntax engine, I now have > something that looks, from a distance, like a work-around. Despite that, I'm > prepared to assist in someone else's debugging of this, if I can. I get this issue all t

Re: jump between two tabs

2011-06-09 Thread Dave Land
On Jun 9, 2011, Jeroen Budts wrote: > I'm wondering if there is a shortcut in vim to switch between two > tabs, similar to CTRL-^ to switch between two buffers. > Suppose i'm working in tab 2 and i switch to tab 4 (4gt), then i'd > like to be able to use a simple shortcut to switch back to the > p

Re: A number generator in built in vi

2008-10-10 Thread Dave Land
Yet another approach: Insert a new line that contains the number 1. qq (start recording) yy (yank the line) p (put the yanked line) ^A (increment the number under the cursor) q (stop recording) You will now have a file with 2 lines in it: 1 and 2. Now the fun begins: [EMAIL PROTECTED] (repea

Making matchit.vim work properly in angularjs

2015-09-02 Thread &#x27;Dave Land' via vim_use
Hello, I've been using matchit.vim for ages and I love it. Lately, as I work in my employer's angularjs codebase, I've noticed that matchit gets confused by tags that are wrapped over several lines: it can match forward, but not backwards. Here's the relevant portion of my definition of b:matc

Re: Making matchit.vim work properly in angularjs

2015-09-11 Thread &#x27;Dave Land' via vim_use
On Sep 3, 2015, at 1:14 PM, Christian Brabandt wrote: > Hi 'Dave! > > On Mi, 02 Sep 2015, 'Dave Land' via vim_use wrote: > >> Hello, >> >> … words, words, words … >> >> Any advice? > > Have you read through the help, spec

Re: Making matchit.vim work properly in angularjs

2015-09-11 Thread &#x27;Dave Land' via vim_use
On Sep 11, 2015, at 2:35 PM, David Fishburn wrote: > > > On Fri, Sep 11, 2015 at 5:13 PM, 'Dave Land' via vim_use > wrote: > On Sep 3, 2015, at 1:14 PM, Christian Brabandt wrote: > > ... > The answer was in :h matchit-details, specifically, > >