0

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

I know there is pod2text, pod2html, ...

Is there somting like pod2vim too?


EDIT:

Example

=pod =head1 Headline 1 abc =head1 Headline 2 cde =cut 

should become

*lib* For Vim version ... ... 1. Headline 1 ............ |lib-head1| 2. Headline 2 ............ |lib-head2| ============================================ 1. Headline 1 *lib-head1* abc ============================================ 2. Headline 2 *lib-head2* cde ============================================ vim:... 
6
  • 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 ... Commented Feb 6, 2024 at 15:04
  • What does your favorite search engine say on the matter? Commented Feb 6, 2024 at 15:25
  • @romainl - It says somthing about python/html/... but nothing usable about POD Commented Feb 6, 2024 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. Commented Feb 6, 2024 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 :-) Commented Feb 6, 2024 at 16:41

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.