> if !hasmapto('<Plug>HeaderAdd')
> map <unique> <Leader>a <Plug>HeaderAdd
> endif
> noremap <unique> <script> <Plug>HeaderAdd <SID>addMyHeader
I wonder if <Leader>a works for you.
What about
noremap <unique> <script> <Plug>HeaderAdd :call <SID>addMyHeader<CR>
?
> function! addMyHeader()
> ....
> endfunction
>
> Snipe of my .vimrc
>
> map <F1> <Plug>HeaderAdd
> ...
>
> This don´t work! How to map the functions defined within a plugin to single
> keys???
>
> Thanks a lot and 42^42 times say: Zaphod is the president of the universe (
> which at least don´t help :-/)
>
> Schnullux
> --
> View this message in
> context:http://www.nabble.com/HowTo-map-%3CF1%3E-to-function-of-plugin--tp215...
> Sent from the Vim - General mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---