Say I want to start looking at the source of a C project. First thing I do is highlight all the .c/.h files in the folder (ctrl + click and so on..), right click, select "open all with GVim". The script opens all .c and .h files in GVim in separate tabs each. After that, I resize the GVim window to leave some space for a terminal to run make/gcc/gdb/git etc. At this point, I'm ready to look at some code.
Browsing through code is not easy mainly because of the tabs. In this project that I'm looking at, there are 10+ files and I know that's not even a lot. I have to keep hitting 'gt' or 'gT' if I want to go to a certain .c or .h file and it's a nightmare if you have 10+ tabs open.
So, HN what is your environment or workflow like when coding in C? Any tips on how I can make my environment better?
Here's my environment right now:
Laptop 15.6" screen Ubuntu 10.04 GVim (NerdTree, Taglist, ctags) Terminal for (gcc, gdb, make, git)
GVim and Terminal are side by side.