Adam Krolnik wrote:
Hello;
I have folding enabled to fold code when I edit a file. However I would
like to also be able
to view specific lines (via the option +<num> on the command line.)
Can you write code to detect this option and not fold the code ?
Thanks.
The latest patch (7.0.158) was a fix for a bug where the cursor would
sometimes be in a closed fold. Is it included in the version you're using?
(See the first two lines of the output of ":version". If the 2nd line doesn't
start with "Included patches" it means no patches were included.)
To move to a specific line, you can use for instance
:1234
on the command-line, if
+1234
doesn't work.
Best regards,
Tony.