[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] Can one get a list of [single character] commands easily?
From: |
Chris Green |
Subject: |
Re: [vile] Can one get a list of [single character] commands easily? |
Date: |
Sun, 31 Mar 2013 16:10:57 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sun, Mar 31, 2013 at 10:12:45AM -0400, Paul Fox wrote:
> p.s. clearly a "describe-keys" command would be more convenient. :-)
>
Yes, I think you could be right!
> paul wrote:
> > chris wrote:
> > > Is it possible to get a list of all the single character commands
> > > available in vile? I want to see what 'spare' ones there are, or
> > > possibly ones I can re-assign.
> >
> > it's probably not quite the format you're imagining, but:
> > :describe-cmdmode-bindings
> > gives a complete list of all command bindings.
> >
> > to change that into a list, copy that into a writeable buffer, then:
> >
> > - get just the commands, and not the descriptions:
> > :v/^"/d
> >
> > - delete all lines that end in a <tab> to remove lines that don't have
> > single-character bindings:
> > :g/^V^I$/d
> >
> > - remove the named bindings:
> > :%s/.*"[[:space:]]*//
> >
> > - convert all remaining whitespace to newlines:
> > 1G
> > !Gsed -e 's/\s\+/\n/g'
> > [ can this be done within vile? ]
> >
> > - then make a nice list:
> > 1G
> > !Gsort -u
> >
> >
> >
> > >
> > > That's single character commands when not in insert mode, so the ones
> > > like "i - enter insert mode", ": - enter command", etc.
> > >
> > > --
> > > Chris Green
> > >
> > > _______________________________________________
> > > vile mailing list
> > > address@hidden
> > > https://lists.nongnu.org/mailman/listinfo/vile
> >
> > ----------------------
> > paul fox, address@hidden (arlington, ma, where it's 43.3 degrees)
> >
> > _______________________________________________
> > vile mailing list
> > address@hidden
> > https://lists.nongnu.org/mailman/listinfo/vile
>
> ----------------------
> paul fox, address@hidden (arlington, ma, where it's 45.7 degrees)
--
Chris Green
- [vile] Can one get a list of [single character] commands easily?, Chris Green, 2013/03/31
- Re: [vile] Can one get a list of [single character] commands easily?, Thomas Dickey, 2013/03/31
- Re: [vile] Can one get a list of [single character] commands easily?, Paul Fox, 2013/03/31
- Re: [vile] Can one get a list of [single character] commands easily?, Paul Fox, 2013/03/31
- Re: [vile] Can one get a list of [single character] commands easily?,
Chris Green <=
- Re: [vile] Can one get a list of [single character] commands easily?, Thomas Dickey, 2013/03/31
- Re: [vile] Can one get a list of [single character] commands easily?, Paul Fox, 2013/03/31
- Re: [vile] Can one get a list of [single character] commands easily?, Thomas Dickey, 2013/03/31
- Re: [vile] Can one get a list of [single character] commands easily?, Paul Fox, 2013/03/31
- Re: [vile] Can one get a list of [single character] commands easily?, Thomas Dickey, 2013/03/31
- Re: [vile] Can one get a list of [single character] commands easily?, Chris Green, 2013/03/31
- Re: [vile] Can one get a list of [single character] commands easily?, Chris Green, 2013/03/31
- Re: [vile] Can one get a list of [single character] commands easily?, Thomas Dickey, 2013/03/31