I spend my days working on 3k to 10k line files, and most of the time, I only work on 200 lines.
- I usually set a mark at the beginning and the end of the region I am working on, but this has limitations. To search for example I have to select the region and then search inside this region.
- I tried to use folding, but I am editing tcl, and the plugin that allow folding for tcl syntax makes vim freeze horribly, so it is not usable. I could use manual folding but I would still have this issue for search.
Also, as some portions of the files are very similar (a LOT of duplicate code), I sometimes edit the wrong part and realize only after a lot of changes.
What would be your workflow with vim to handle such situation ?