小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

經(jīng)典vim插件--- c.vim

 dzh1121 2011-02-11
5. c.vim 插件
200 (1). 幫助手冊(cè)查看
201     help csupport
202
203 (2). 功能
204     C/C++-IDE for Vim/gVim. 簡(jiǎn)單的說(shuō), 就是如果安裝配置好后, vim/gvim就是一個(gè)
205     c/c++編程的一個(gè)IDE, 其功能堪比windows里常用的vc.
206
207 (3). 安裝
208     下載cvim.zip壓縮包后, 把壓縮包c(diǎn)opy到 $HOME/.vim 目錄(windows下, copy 到
209             C:\Program Files\Vim\vimfiles)下解壓, 即可.
210         unzip cvim.zip    // 解壓命令
211         
212 (4). 使用方法
213     安裝好后就可以直接用了, 具體例子看"使用例子".
214     
215 (5). 使用例子
216     在終端用vim打開一個(gè)c文件:
217         $vim hello.c
218     進(jìn)入vim, 敲入 "\im" 即可發(fā)現(xiàn)一個(gè)main函數(shù)框架就這樣快捷簡(jiǎn)單完美地寫出.    
219
220     我比效常用的的操作有(第一列為命令, 第二列為說(shuō)明, 第三列為該命令所支持的模
221             式(n:普通模式, v:可視模式, i:插入模式):
222           -- Help -----------------------------------------------
223           \hm       show manual for word under the cursor (n,i)
224           \hp       show plugin help                      (n,i)
225
226           -- Comments -------------------------------------------
227           \cl       end-of-line comment                 (n,v,i)
228           \cj       adjust end-of-line comment(s)       (n,v,i)
229           \cs       set end-of-line comment column      (n)
230           \c*       code -> comment /* */               (n,v)
231           \cc       code -> comment //                  (n,v)
232           \co       comment -> code                     (n,v)
233           \cfr      frame comment                       (n,i)
234           \cfu      function comment                    (n,i)
235           \cme      method description                  (n,i)
236           \ccl      class description                   (n,i)
237           \cd       date                                (n,v,i)
238           \ct       date \& time                        (n,v,i)
239
240           -- Statements ------------------------------------------
241           \sd       do { } while                        (n,v,i)
242           \sfo      for { }                             (n,v,i)
243           \sife     if { } else { }                     (n,v,i)
244           \se       else { }                            (n,v,i)
245           \swh      while { }                           (n,v,i)
246           \ss       switch                              (n,v,i)
247
248           -- Preprocessor -----------------------------------------
249           \p<       #include <>                         (n,i)
250           \p''      #include ""                         (n,i)
251           \pd       #define                             (n,i)
252           \pu       #undef                              (n,i)
253           \pie      #if  #else #endif                   (n,v,i)
254           \pid      #ifdef #else #endif                 (n,v,i)
255           \pin      #ifndef #else #endif                (n,v,i)
256           \pind     #ifndef #def #endif                 (n,v,i)
257           \pi0      #if 0 #endif                        (n,v,i)
258           \pr0      remove #if 0 #endif                 (n,i)
259           \pe       #error                              (n,i)
260           \pl       #line                               (n,i)
261           \pp       #pragma                             (n,i)
262
263           -- Idioms ------------------------------------------------
264           \if       function                            (n,v,i)
265           \isf      static function                     (n,v,i)
266           \im       main()                              (n,v,i)
267           \i0       for( x=0; x<n; x+=1 )               (n,v,i)
268           \in       for( x=n-1; x>=0; x-=1 )            (n,v,i)
269           \ie       enum   + typedef                    (n,i)
270           \is       struct + typedef                    (n,i)
271           \iu       union  + typedef                    (n,i)
272           \ip       printf()                            (n,i)
273           \isc      scanf()                             (n,i)
274           \ica      p=calloc()                          (n,i)
275           \ima      p=malloc()                          (n,i)
276           \isi      sizeof()                            (n,v,i)
277           \ias      assert()                            (n,v)
278           \ii       open input file                     (n,i)
279           \io       open output file                    (n,i)
280
281           -- Snippets ------------------------------------------------
282           \nr       read code snippet                   (n,i)
283           \nw       write code snippet                  (n,v,i)
284           \ne       edit code snippet                   (n,i)
285           \np       pick up prototype                   (n,v,i)
286           \ni       insert prototype(s)                 (n,i)
287           \nc       clear  prototype(s)                 (n,i)
288           \ns       show   prototype(s)                 (n,i)
289           \ntl      edit local templates                (n,i)
290           \ntg      edit global templates               (n,i)
291           \ntr      rebuild templates                   (n,i)
292
293           -- C++ ----------------------------------------------------
294           \+co      cout  <<  << endl;                  (n,i)
295           \+c       class                               (n,i)
296           \+cn      class (using new)                   (n,i)
297           \+ci      class implementation                (n,i)
298           \+cni     class (using new) implementation    (n,i)
299           \+mi      method implementation               (n,i)
300           \+ai      accessor implementation             (n,i)
301
302           \+tc      template class                      (n,i)
303           \+tcn     template class (using new)          (n,i)
304           \+tci     template class implementation       (n,i)
305           \+tcni    template class (using new) impl.    (n,i)
306           \+tmi     template method implementation      (n,i)
307           \+tai     template accessor implementation    (n,i)
308
309           \+tf      template function                   (n,i)
310           \+ec      error class                         (n,i)
311           \+tr      try ... catch                       (n,v,i)
312           \+ca      catch                               (n,v,i)
313           \+c.      catch(...)                          (n,v,i)
314
315           -- Run ---------------------------------------------------
316           \rc       save and compile                    (n,i)
317           \rl       link                                (n,i)
318           \rr       run                                 (n,i)
319           \ra       set comand line arguments           (n,i)
320           \rm       run make                            (n,i)
321           \rg       cmd. line arg. for make             (n,i)
322           \rp       run splint                          (n,i)
323           \ri       cmd. line arg. for splint           (n,i)
324           \rk       run CodeCheck (TM)                  (n,i)
325           \re       cmd. line arg. for CodeCheck (TM)   (n,i)
326           \rd       run indent                          (n,v,i)
327           \rh       hardcopy buffer                     (n,v,i)
328           \rs       show plugin settings                (n,i)
329           \rx       set xterm size                      (n, only Linux/UNIX & GUI)
330           \ro       change output destination           (n,i)
331                 
332     關(guān)于此插件的更多功能和各種說(shuō)明, 請(qǐng)查看幫助手冊(cè), help csupport.

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多