C Hotkeys
C Hotkeys
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)