vile
[Top][All Lists]
Advanced

[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: Thomas Dickey
Subject: Re: [vile] Can one get a list of [single character] commands easily?
Date: Sun, 31 Mar 2013 11:36:27 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Sun, Mar 31, 2013 at 10:12:45AM -0400, Paul Fox wrote:
> p.s.  clearly a "describe-keys" command would be more convenient.  :-)

agreed

I said it looked simple, though.
 
> 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.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]