Thursday, March 18, 2010

Re: select/copy a line every 6 lines

Assuming the pattern /^-$/ matches lines 1,7,13,19 and so on, you can
use g with relative line numbers to delete lines.

For File A, copy and use

:g/^-$/d2|+,+3d

for File B, copy and use

:g/^-$/d3|+,+2d

for File C, copy and use

:g/^-$/d4|+d

for File D, copy and

:g/^-$/d5

Regards, John

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Re: can't find X headers

On Mar 19, 3:01 am, MK <halfcountp...@intergate.com> wrote:
> I'm trying to build vim on gnewsense.  I have the relevent x11 dev
> packages...

I expect you're missing libxt-dev. Vim's configure checks for
Intrinsic.h in that package.

IIUC gnewsense is Debian based, so you should be to

sudo apt-get build-dep vim-gtk

Regards, John

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Re: set keymap to none/default

On Mar 18, 5:08 pm, Gary Johnson <garyj...@spocom.com> wrote:
> On 2010-03-18, Kenneth Reid Beesley wrote:
>
>
>
>
>
> > I've successfully written a number of keymap files, and I
> > successfully choose them with the set command, e.g.
>
> > :set keymap=myKeymapFile_utf-8
>
> > and I know that  CTRL-^  will toggle back and forth between the
> > current keymap and the previous keymap.
>
> > My Problem:  I often use multiple keymaps, one after another, and
> > sometimes I need to switch from using the currently active keymap,
> > whatever it might be, back to the neutral keymap (or lack of a
> > keymap).  CTRL-^ toggles me back to the previous keymap, which
> > might not be the neutral one.
>
> > Question:  How do I explicitly "turn off" keymap usage? or 'set
> > keymap' to some neutral value?
>
> According to ":help keymap", the default is "", so either
>
>     :set keymap=
>
> or
>
>     :let &keymap = ''
>
> should do it.  I don't know anything about keymaps, so I haven't
> verified this.
>
> HTH,
> Gary

I had already tried

:set keymap=
and
:set keymap=""
without success. But your

:let &keymap=""

(adding a second double quote) worked.

Many thanks,

Ken

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.