How to write a function to get the content between two lines in vim, like plug#begin() and plug#end()?
<p>For instance, how can I write a minimal function to get the content of lines between <code>call plug#begin()</code> and <code>call plug#end()</code>. vim-plug or vundle now is too complicated for me to find the related complement.</p>

<pre><code>call plug#begin()

Plug 'foo1'
Plug 'foo2' 

call plug#end()
</code></pre>