It should be fairly easy to write a GVim plugin to do this for any language. Or if you want a full IDE, take an existing Python IDE and add support. Can't beat Python when it comes to balancing practicality and usability - you can call C, C++, and Fortran code from it, and Numpy, Scipy, and Matplotlib make it a joy to use for scientific applications.