Skip to content

Latest commit

 

History

History
61 lines (35 loc) · 1.04 KB

README.md

File metadata and controls

61 lines (35 loc) · 1.04 KB

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