4 ms·
I don't do much C myself but I use Vim all the time so maybe I can give you a few useful hints: - learn to open files from Vim with :e and tab completion - le
by rhizome31 15y ago
I don't do much C myself but I use Vim all the time so maybe I can give you a few useful hints:
- learn to open files from Vim with :e and tab completion
- learn to use buffers effectively, the :b command with tab completion is particularly useful to switch between buffers
- CRTL-0 / CTRL-I to go back and forth between cursor positions
- for C/C++, a.vim is a plugin that allows you to switch quickly between header and implementation
- learn to use make from Vim with :make, it will take you to the first compilation error and open a quickfix window that you can use to go to other errors (can be configured to compile other languages than C/C++)
- try ack, a better grep, very useful to search source code, there's a Vim plugin to integrate it
- if you have a lot of files and directories in your project, try the Command-T plugin
- for git, the Fugitive plugin can also be helpful (screencasts at http://vimcasts.org/ http://vimcasts.org/)