I just made the switch to vim from emacs, using MacVim with Janus.
In emacs, you can have a buffer solely for shell use. Is this possible in MacVim? It would be very helpful when debugging.
Which also brings me to ask – is there a way to compile in vim similar to emacs: where you type meta-x compile, and then are able to click on errors to bring the cursor to the relevant line?
I’m just trying to figure out a good workflow for MacVim, and want a good way to fix my bugs without having to line up Terminal and MacVim side by side. Any recommendations appreciated.
You can compile with
:make, if you have a makefile. Vim can parse the output of GCC and jump to the errors with:cnextand:cprevious. I don’t think vim knows how to parse the output of gfortran, and I haven’t used it with any other compilers.I don’t know of any way to keep a shell open in a buffer.