Skip to content

zhaohuaxishi/ctrlp-header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ctrlp-header

Use ctrlp.vim to include C/CPP standard header

Its not very powerful now, I just get standard header from

Demo

cpp

ctrlp-header-demon

c

ctrlp-header-demon

Requirement

ctrlp.vim

Usage

CtrlPHeader command

you can use CtrlPHeader command to include normal stype header like this:

#include <string>

CtrlPEHeader command

you can use CtrlPEHeader command to include normal header with extren "C" guard like this:

extern "C" { #include <libswscale/swscale.h> }

you can map this two command to some short cut like this

nnoremap <silent> <Leader>i :CtrlPHeader<CR>

TODO LIST

[ ] add the support of include header at certain line

[ ] cache

[ ] semantic map of type and headers

About

include head file use ctrlp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published