Working in an index with mucked up manual folds. Would like to delete folds from current line to end of file.

Have tried:




So far I've just done a visual selection from current line to end of file and keyed in:


to delete all folds recursively in the selection. Works, but would be nice if there was a way to enter a range instead.



I'm not sure if it's a good idea, but you can wrap it into Ex command:

command! -bar -range DeleteFolds execute printf("normal! %dGV%dGzD", <line1>, <line2>)
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.