cdevframework : C/C++ development framework
| script karma
Downloaded by 660
Comments, bugs, improvements
script versions (upload new version)
|With time and experience, I ended setting up vim to ease my life while developing in C++. This is the very basic version of it, and it will most probably grow with time.
Run vim from within the root directory of your project ($HOME/Projects/myproject for instance). The script sets up the CTRL-W_s shortcut to ask for a source file extension as well as header file extension, then the source files base path and header files base path. From then on, each time you press the shortcut, you will be asked only for the file name you want to edit, without extension or path. It will then open them side by side. The idea is to go to the window with <CTRL-W>j and <CTRL-W>k and press <CTRL-W>_ to maximize the height.
The script also adds the "globals" option to sessionoptions in order to keep the base paths and extensions for when the session is saved with:
To reload the session, then use:
vim -S <filename>
Another hint: I like having the filename list next to the source code, by doing:
:vertical resize 32
|Simply drop it in the vim plugins folder ($HOME/.vim/plugin).|
Click on the package to download.
ip used for rating: 184.108.40.206