Mapping <leader><Space>

56 views
Skip to first unread message

Chris Lott

unread,
Nov 16, 2012, 7:30:51 PM11/16/12
to vimpera...@googlegroups.com
I'd like to map <leader><space> to :noh as a I do in Vim ... but having the following in my .vimperatorrc doesn't work as I think it should:

noremap <leader><Space> :noh

Can this be done?

Martin Stubenschrott

unread,
Nov 17, 2012, 10:18:13 AM11/17/12
to Vimperator Mailing List
I am not really sure, if <leader> (still) works correctly, but that should work:

noremap \<Space> :noh<cr>

if \ is your leader.

Chris Lott

unread,
Nov 17, 2012, 4:57:48 PM11/17/12
to vimpera...@googlegroups.com
On Sat, Nov 17, 2012 at 6:18 AM, Martin Stubenschrott
<stuben...@vimperator.org> wrote:
> I am not really sure, if <leader> (still) works correctly, but that should
> work:
>
> noremap \<Space> :noh<cr>
>
> if \ is your leader.

Neither using= <leader> or the literal leader character (or any other
character as far as I can tell) works with the <Space> as far as I can
tell!

c
--
Chris Lott <ch...@chrislott.org>

Martin Stubenschrott

unread,
Nov 18, 2012, 4:40:30 AM11/18/12
to Vimperator Mailing List
Ah now I get your point.

Yeah, it seems a few characters like space, enter or <up>, <down> are hard coded in some places :(
Reply all
Reply to author
Forward
0 new messages