0% found this document useful (0 votes)
14 views2 pages

C Hotkeys

Uploaded by

rodr.seb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

C Hotkeys

Uploaded by

rodr.seb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

V IM -P LUG - IN Statements Preprocessor

c-support.vim \sd do { } while (n,v,i) \pih include Std. Lib. header (n,i)
V ERSION 6.2 \sf for (n,i) \piph include POSIX header (n,i)
H OT KEYS \sfo
\si
for { }
if
(n,v,i)
(n,i)
\pg
\pl
#include<...> (global)
#include"..." (local)
(n,i)
(n,i)
Key mappings for Vim and gVim. \sif if { } (n,v,i) \pd #define (n,i)
http://www.vim.org — Wolfgang Mehner, [email protected]
\sie if else (n,v,i) \pu #undef (n,i)
(i) insert mode, (n) normal mode, (v) visual mode \sife if { } else { } (n,v,i) \pif #if #endif (n,v,i)
Help \se else { } (n,v,i) \pie #if #else #endif (n,v,i)
\he English dictionary (n,i) \sw while (n,i) \pid #ifdef #else #endif (n,v,i)
\hd Doxygen command (n,i) \swh while { } (n,v,i) \pin #ifndef #else #endif (n,v,i)
\hm manual for word under cursor (n,i) \ss switch (n,v,i) \pind #ifndef #def #endif (n,v,i)
\hp help (c-support) (n,i) \sc case (n,i) \pe #error (n,i)
Comments \sb { } (n,v,i) \pli #line (n,i)
[n]\cl end-of-line comment (n,v,i) Idioms \pp #pragma (n,i)
[n]\cj adjust end-of-line comment (n,v,i) \if function (n,v,i) \pw #warning (n,i)
\cs set end-of-line comment column (n) \isf static function (n,v,i) \pi0 #if 0 #endif (n,v,i)
[n]\c* code ⇒ comment /* */ (n,v,i) \im main() (n,v,i) \pr0 remove #if 0 #endif (n,i)
[n]\cc code ⇒ comment // (n,v,i) \ie enum + typedef (n,v,i) Snippet
[n]\co comment ⇒ code (n,v,i) \is struct + typedef (n,v,i) \nr read code snippet (n,i)
[n]\cn toggle non-C comment (n,v,i) \iu union + typedef (n,v,i) \nv view code snippet (n,v,i)
\cfr frame comment (n,i) \ipr printf() (n,i) \nw write code snippet (n,v,i)
\cfu function comment (n,i) \isc scanf() (n,i) \ne edit code snippet (n,i)
\cme method description (n,i) \ica p=calloc() (n,i) [n]\nf pick up function prototype (n,v,i)
\ccl class description (n,i) \ima p=malloc() (n,i) [n]\np (n,v,i)
\cfdi file description (implementation) (n,i) \ire p=realloc() (n,i) [n]\nm pick up method prototype (n,v,i)
\cfdh file description (header) (n,i) \isi sizeof() (n,v,i) \ni insert prototype(s) (n,i)
\ccs C/C++–file sections (tab compl.) (n,i) \ias assert() (n,v,i) \nc clear prototype(s) (n,i)
\chs H–file sections (tab compl.) (n,i) \ii open input file (n,v,i) \ns show prototype(s) (n,i)
\ckc keyword comment (tab compl.) (n,i) \io open output file (n,v,i) \ntl edit local templates (n,i)
\csc special comment (tab compl.) (n,i) \ifsc fscanf (n,i) \ntc edit custom templates (n, i)
\cma template macros (tab compl.) (n,i) \ifpr fprintf (n,i) \ntp edit personal templates (n, i)
\cd date (n,v,i) [n]\i0 for( x=0; x<n; x+=1 ) (n,v,i) \ntr reread the templates (n,i)
\ct date & time (n,v,i) [n]\in for( x=n-1; x>=0; x-=1 ) (n,v,i) \ntw template setup wizard (n, i)
[n]\cx exch. comment style: C ↔ C++ (n,v,i) \nts choose template style (n, i)
\njt insert jump tag (n,i)

August 27, 2016 c-support.vim Page 1 / 2


C++ Run Tool Box : Make
\+ih #include C++ Std. Lib. header (n,i) \rc save and compile (n,i) \rm run make1 (n,i)
\+ich #include C Std. Lib. header (n,i) \rl link (n,i) \rmc run make clean1 (n,i)
\+om output manipulators (n,i) \rr run (n,i) \rmd run make doc 1 (n,i)
\+fb ios flagbits (n,i) \ra set comand line arguments (n,i) \rcm choose a makefile 1 (n,i)
\rd start debugger (n,i) \rma cmd. line arg. for make1 (n,i)
\+c class (n,i)
\+cn class (using new) (n,i) \re executable to run1 (n,i) Additional Mappings5
\+tc template class (n,i) \rp run splint2 (n,i) typing expansion
\+tcn template class (using new) (n,i) \rpa cmd. line arg. for splint (n,i) /* /* */ (i)
\+ec error class (n,i) \rcc run cppcheck3 (n,i) /* /* (multiline) marked text */ (v)
\+tf template function (n,i) \rccs severity for cppcheck (n,i)
4
/*<CR> /* (i)
\+tr try . . . catch (n,v,i) \rk run CodeCheck (n,i)
* |
\+ca catch (n,v,i) \rka cmd. line arg. for CodeCheck (n,i)
*/
\+caa catch(...) (n,v,i) \ri run indent (n,i) {<CR> { (i)
[n]\rh hardcopy buffer (n,i,v)
\+ex extern "C" { } (n,v,i) |
\rs show plugin settings (n,i) }
\+oif open input file (n,v,i)
\rx set xterm size (n,i, only Unix & GUI) {<CR> { (v)
\+oof open output file (n,v,i)
\ro change output destination (n,i) (multiline) marked text
\+uns using namespace std; (n,v,i)
\+un using namespace xxx; (n,v,i) }
\+unb namespace xxx { } (n,v,i)
Ex Commands
\+na namespace alias (n,v,i)
\+rt RTTI (n,v,i) Set command line arguments (same as \ra)
\+ic class implementation (n,i) :CCmdlineArgs
\+icn class (using new) implementation (n,i)
Set severity for cppcheck (same as \rccs)
\+im method implementation (n,i)
\+ia accessor implementation (n,i) :CppcheckSeverity
\+itc template class implementation (n,i)
\+itcn template class (using new) impl. (n,i)
\+itm template method implementation (n,i) 1 also working for filetype make
2
\+ita template accessor implementation (n,i) www.splint.org
3 cppcheck.sourceforge.net
\+ioi operator » (n,i) 4 CodeCheckT M is a product of Abraxas Software, Inc.
5
\+ioo operator « (n,i) defined in ~/ftplugin/c.vim

August 27, 2016 c-support.vim Page 2 / 2

You might also like