Skip to content

vim-scripts/AutoCpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

This is a mirror of http://www.vim.org/scripts/script.php?script_id=3648

USAGE

Type something like
    it = myMap.find(3);
then hit <C-J> (Ctrl + J). If declaration of myMap is availible inside
current function, AutoCpp will insert typename of iterator (for now
AutoCpp only supports const_iterator).

If myMap is declared in that way
    std::map<int, std::string> myMap;
line with iterator turns into
    std::map<int, std::string>::const_iterator it = myMap.find(3);

To get an idea how it works, you can watch a short video:
http://www.youtube.com/watch?v=uTqnQEuUSL4


SOURCE CODE

You can find all sources here:
https://github.com/9uMaH/autocpp

About

AutoCpp types complex C++ typenames for you.

Resources

Stars

Watchers

Forks

Packages

No packages published