cpp-devel : Vim C++ development; This vim script (adopted from kde-devel-vim).
script karma |
Rating 0/0,
Downloaded by 874 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
John Kaul |
|
script type |
ftplugin |
|
description |
I created this Vimscript (adopted from kde-devel-vim) for myself to be a more generic C++ helper script (not so KDE/Qt specific). I want to give full credit to the original author(s) so I added a header in the script file with the original writeup and a link to the location where I found it.
My main goals for this script when I started modifying the original were to add:
1. Maintenance free makeprog setup which supported "out-of-source-builds".
2. Maintenance free tagfile creation.
3. Help me stay consistent with my indent/coding style (K&R-ish). The original had some formatting helpers and this was a big shortcut for me
Functionality provided by this script:
* Automatic brace and parenthesis addition. Intelligence added to place braces on same line as if,while,do,etc.
* Automatic space between keyword and paren addition.
* Quick switching between header and impl file.
* Intelligent includes additions. EG: Automatic #include <string.h> statement when cursor is on std::string statement.
* Ability to add "standard" (to be overridden for personal or project stds) comment headers.
* Change and TODO log entry helpers.
* (un)comment line toggle. This feature also works with visual selection as well.
* Intelligent directory searching to enable "out-of-source-building", like in the use of CMAKE.
* Generic tab completion for braces, parenthesis and quotes. This feature is only meant for convinces, please use a mechanism like "SnipMate" for better tab completion.
* Ability to align assignments in surrounding statements.
* Automatic tagfile write for better project source code navigation.
* Automatic 'path' setting for 'gf' command navigation.
* Custom 'Make()' function/command to support better out-of-source-building; this should build the project from any source code file in the project. |
|
install details |
If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:
cd ~/.vim/bundle
git clone https://bitbucket.org/JohnKaul/cpp-devel-vim.git
vim -u NONE -c "helptags cpp-devel-vim/doc" -c q
Otherwise you can always download from here and extract it manually (FYI: the cpp-devel-vim.vim file is supposed to be in your vim plugin directory). |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.148.211.202
|