Making my own Vim memento with a shortcut

2007-03-02 Thread kib2

Hi,

I suppose it is possible to do this in Vim (what's not ?) :

1. Write a file listing all my shortcuts in VimDoc format ;
2. Assign this file to a mapping, say i.e Shift+F5 ;

If so,

1. Where to find references on the VimDoc format ? Should I have to 
place it inside 'doc' ?

2. How ?

Thanks.




Re: Making my own Vim memento with a shortcut

2007-03-02 Thread Tim Chase
 I suppose it is possible to do this in Vim (what's not ?) :

of course :)

 1. Write a file listing all my shortcuts in VimDoc format ;
 2. Assign this file to a mapping, say i.e Shift+F5 ;
 
 If so,
 
 1. Where to find references on the VimDoc format ? Should I have to 
 place it inside 'doc' ?

:help write-local-help
:help add-local-help

 2. How ?

Once you have the helpfile written (say custom_help.txt),
including the target tags that :help should jump to, you can do
something like

:nnoremap s-f5 :help custom_help.txtcr

You can muddle around with the example given at the above help
which should get you in the right direction.

-tim






Re: Making my own Vim memento with a shortcut

2007-03-02 Thread kib2

Tim Chase a écrit :

I suppose it is possible to do this in Vim (what's not ?) :



of course :)

  

1. Write a file listing all my shortcuts in VimDoc format ;
2. Assign this file to a mapping, say i.e Shift+F5 ;

If so,

1. Where to find references on the VimDoc format ? Should I have to 
place it inside 'doc' ?



:help write-local-help
:help add-local-help

  

2. How ?



Once you have the helpfile written (say custom_help.txt),
including the target tags that :help should jump to, you can do
something like

:nnoremap s-f5 :help custom_help.txtcr

You can muddle around with the example given at the above help
which should get you in the right direction.

-tim


  

Thanks Tim, cheers :
Kib.