I saw the Vim magic commands before you could add to your .vimrc to have folds created when opening a particular file type. I remember that I had code that would create creases when opening a file with every method and Ruby class. Then, with one command, I can collapse all these folds of the method. Does anyone know how to do this with inline views in PL / SQL? Let's say I have the following SQL:
SELECT blah,
teh_max
FROM (
SELECT blah,
MAX(bar) AS teh_max
FROM (
SELECT blah,
bar
FROM foo
)
GROUP BY blah
)
ORDER BY blah
I would like creases to be created when I open it in Vim to go to a line FROM (, click zcin command mode and minimize the inline view starting from that line. It would be nice to collapse all the folds with one command.