Is there a possibility to make vim helpfiles from pers POD?

I know there is pod2text, pod2html, ...

Is there somting like pod2vim too?




=head1 Headline 1


=head1 Headline 2



should become

*lib*    For Vim version ...

1. Headline 1 ............ |lib-head1|
2. Headline 2 ............ |lib-head2|

1. Headline 1           *lib-head1*


2. Headline 2           *lib-head2*


  • What are you trying to do? FYI, if you are in a buffer with filetype=perl and hit K, it will show you Perl's documentation. Seeing both POD and Vim's help have about five grammar rules, it should be possible to write a translator. I'd pick a language that has a reputation for being good at string substitutions using regular expressions ... if only I could think of one ...
    – Friedrich
    Feb 6 at 15:04
  • What does your favorite search engine say on the matter?
    – romainl
    Feb 6 at 15:25
  • @romainl - It says somthing about python/html/... but nothing usable about POD
    – Andy A.
    Feb 6 at 15:55
  • 1
    That's funny, because I have exactly TWO hits with Google for the query pod2vim: one for exactly what you are after and one for some random facebook profile. Try harder.
    – romainl
    Feb 6 at 16:14
  • 1
    Maybe could you have a look at How do I generate Vim documentation from Markdown notes or inline comments, or are there better ways to add documentation?. If you slightly preprocess your file with Md2Vim you should be close :-) Feb 6 at 16:41


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.