Hey out there! (Just again for vim_use mailing list )

I wrote a small plugin which handle importing of templates ( header,
function header ... ). Now I am have trouble to map the functions of the
plugin to a key like <F1>.

Source snipe of plugin ~/.vim/cha.vim

if !hasmapto('<Plug>HeaderAdd')
        map <unique> <Leader>a <Plug>HeaderAdd
endif
noremap <unique> <script> <Plug>HeaderAdd  <SID>addMyHeader

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--tp21561215p21561215.html
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to