sponsor Vim development Vim logo Vim Book Ad

reimin : Add an #include without jumping

 script karma  Rating 6/3, Downloaded by 392  Comments, bugs, improvements  Vim wiki

created by
Matan Nassau
 
script type
utility
 
description
Usually adding an #include to a C or C++ source file means jumping the cursor to a line near the top of the file, adding the include, and jumping back. I consider jumping away from where the cursor is right now a distracting act, and thus the raison d'ĂȘtre of this plugin.

In normal mode enter :IncludeLocal or :IncludeSystem. You will be prompted for an include: enter the header name with no double quotes or angle-brackets.

The latest code is at http://github.com/wilhelmtell/reimin, but I will do my best to sync Vim Scripts when I make any significant release.
 
install details
Unpack the tarball in your Vim directory -- e.g. $HOME/.vim and the start a new session of Vim.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
wilhelmtell-reimin-v0.0.1-0-g43c5ce9.tar.gz v0.0.1 2010-04-22 6.0 Matan Nassau Initial upload
ip used for rating: 3.140.185.147

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github