<div dir="ltr"><span style="font-size:12.8px">Greetings,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Perl doesn't fold properly without some special configuration.  In my .vimrc I have:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div><font face="monospace, monospace">" Perl Specific</font></div><div><font face="monospace, monospace">let perl_include_pod = 1</font></div><div><font face="monospace, monospace">let perl_fold = 1</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">" Folding</font></div><div><font face="monospace, monospace">set foldmethod=syntax</font></div><div><font face="monospace, monospace">set foldlevel=1</font></div><div><font face="monospace, monospace">set foldnestmax=2</font></div><div><font face="monospace, monospace">highlight Folded ctermbg=darkblue ctermfg=yellow</font></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">This is used in conjunction with vim-perl which has support for folding (that is turned on via the .vimrc directives): <a href="https://github.com/vim-perl/vim-perl" target="_blank">https://github.<wbr>com/vim-perl/vim-perl</a>  It's not perfect, certain specific sequences will cause it to fold incorrectly:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">(Image cut due to mailing list size limitation)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">But 90% of the time, it works every time.  One of these days I'm going to sit down and fix these little quirks in the folding...</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">If you are interested in my entire vim setup you can view what I use at <a href="https://github.com/drzigman/zig-vim" target="_blank">https://github.com/<wbr>drzigman/zig-vim</a></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Good luck!</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Best Regards,</div><div style="font-size:12.8px">Robert Stone</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 9, 2017 at 7:05 AM, Julian Brown <span dir="ltr"><<a href="mailto:jlbprof@gmail.com" target="_blank">jlbprof@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I am hoping one of you know how to solve my problem with Vim folding.</div><div><br></div>I can fold manually, and via marks.   I cannot get folding to work with syntax.  But I do not like to use either as they are a pain in the neck and not worth the hassle.<div><br></div><div>So in this screenshot:</div><div><br></div><div>:set foldmethod=syntax</div><div><br></div><div>I then move my cursor to a sub</div><div><br></div><div><esc>zf</div><div><br></div><div><img src="cid:ii_15c8cb850a837e42" alt="Inline image 1" width="427" height="544" title=""><br></div><div><br></div><div>My cursor is on line 19 position 0.</div><div><br></div><div>The error message is E350: Cannot create fold with current 'foldmethod'</div><div><br></div><div>I am on Debian Wheezy, </div><div><br></div><div>Linux momentive-webserver 3.2.0-4-amd64 #1 SMP Debian 3.2.88-1 x86_64 GNU/Linux<br></div><div><div>momentive@momentive-webserver:<wbr>~$ cat /etc/os-release</div><div>PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"</div><div>NAME="Debian GNU/Linux"</div><div>VERSION_ID="7"</div><div>VERSION="7 (wheezy)"</div><div>ID=debian</div><div>ANSI_COLOR="1;31"</div><div>HOME_URL="<a href="http://www.debian.org/" target="_blank">http://www.debian.<wbr>org/</a>"</div><div>SUPPORT_URL="<a href="http://www.debian.org/support/" target="_blank">http://www.<wbr>debian.org/support/</a>"</div><div>BUG_REPORT_URL="<a href="http://bugs.debian.org/" target="_blank">http://bugs.<wbr>debian.org/</a>"</div></div><div><br></div><div>VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar  8 2017 13:44:28)<br></div><div><br></div><div>I have read that Vim has some problems with syntax folding and am wondering if and how you all use syntax folding.</div><div><br></div><div>I have this same problem on my cPanel vm's as well, so I am hoping Julian is ignorant and does not know what he is doing and you all can straighten him out.   :)</div><div><br></div><div>Thanx</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Julian</div></font></span></div>
<br>______________________________<wbr>_________________<br>
Houston mailing list<br>
<a href="mailto:Houston@pm.org">Houston@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/houston" rel="noreferrer" target="_blank">http://mail.pm.org/mailman/<wbr>listinfo/houston</a><br>
Website: <a href="http://houston.pm.org/" rel="noreferrer" target="_blank">http://houston.pm.org/</a><br></blockquote></div><br></div>