Friday, May 28, 2010

Re: Problem using for maps

On 28/05/10 19:24, Pablo Giménez wrote:
> Hi.
> I am trying to use the <Plug> attribute for my script keymaps. But so
> far is not working as expected.
> I have the next in a afile called keymaps.vim
> nnoremap <silent> <Plug>KeymapsOpenFile :browse e<CR>
> map <C-o> <Plug>KeymapsOpenFile
>
> This is not working, when I press <C-o> nothing happens.
> But if I manually from the command line type:
> :map <C-o> <Plug>KeymapsOpenFile
>
> Then the map works perfectly.
> Any ideas???
> thanks
>
> --
> Un saludo
> Best Regards
> Pablo Giménez

Maybe something which is sourced after your keymaps.vim defines another
mapping for that key? Or maybe your keymaps.vim is not sourced at all?

- In which directory have you put that keymaps.vim file?

- What does Vim say in reply to

:verbose map <C-O>

when you type that in a Vim session where you have *not* manually
defined the mapping from the command-line?

Best regards,
Tony.
--
What good is having someone who can walk on water if you don't follow
in his footsteps?

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

No comments:

Post a Comment