Saturday, May 10, 2014

Making the Mapping overview into a concise overview. [Was: What does ! do to map?]

On 09.05.14 10:50, ZyX wrote:
Erik wrote:
> > FWIW, I think that it would be possible to respect the holy 80 column
> > limit, yet present one table providing a complete Overview at
> > *map-overview*, not just the present partial thing, if the "modes:"
> > headings were changed to "I C L N V S O P", with preceding expansions of
> > same. Entries need only be "y" or "-".
>
> One of the worst layout you can choose for plain text.

OK, OK, OK, OK, extending/merging the current format is suboptimal.
The table is just narrow enough for your proposal to work - mostly.

However, the proposal that I preferred in that post was providing
consistency with the table at *map-listing*. E.g:

-----------------------------------------------------------------
COMMAND ACTIVE MODES
-----------------------------------------------------------------
:map :noremap Normal, Visual, Select, Operator-pending
:nmap :nnoremap Normal
:vmap :vnoremap Visual and Select
:smap :snoremap Select
:xmap :xnoremap Visual
:omap :onoremap Operator-pending
:map! :noremap! Insert and Command-line
:imap :inoremap Insert
:lmap :lnoremap Insert, Command-line, Lang-Arg
:cmap :cnoremap Command-line
-----------------------------------------------------------------
The active modes for each [ iclnxso]unmap and [ iclnxso]mapclear
is the same as its map. Ditto for :unmap! and :mapclear!
-----------------------------------------------------------------
(:nunmap can also be used outside a monastery.)

Now we aren't scrolling back and forth between three tables, with some
overlaps, but mostly just unhelpful fragmentation of what should have
been one overview. (Last line preserved with a minor correction.)
And understanding gleaned from one table applies to the other, without
the need for mental gymnastics.

Erik

--
Suburbia is where the developer bulldozes out the trees, then names
the streets after them. - Bill Vaughn

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: