Tuesday, March 30, 2010

Re: Why no window-local mapping?

On Tue, 30 Mar 2010, Tony Mechelynck wrote:

> On 30/03/10 14:18, Jeenu wrote:
> > Hi,
> >
> > I know of<buffer> local mapping and global mapping. I wonder why
> > there isn't a<window>/<tab> local mapping option for Vim. I use
> > some Vim windows/tabs exclusively for navigating quick fix lists. On
> > those windows, I keep<C-N> nd<C-P> globally mapped to :lnext (or
> > :cnext) and :lprevious. The problem with buffer-local mappings here
> > is that every time the list will load a new buffer which might not
> > have this mapping set. Had the mappings been window- or tab-local, I
> > could have reused the same mappings on other windows for something
> > else - may be page navigation.
> >
> > Any reason why those are omitted, and any plans to have them in Vim?
> >
> > Thanks
> > Jeenu
> >
>
> See line 2245 in $VIMRUNTIME/doc/todo.txt (:help todo.txt) dated 2010
> Mar 02 as shown on its first line.

That was line 1722 on my system (Last change: 2009 Aug 09). Might be
hard to find, and it's short. Reproduced here:

In the section 'User Friendlier:'
...
- Add mappings local to a window: ":map <window> ..."?

The '-' indicates 'unclassified' as to its priority (as seen at the top
of that file)

--
Best,
Ben

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

No comments:

Post a Comment