description:
|
** Statement oriented editing ofC / C++ programs
** Speed up writing new code considerably.
** Write code und comments with a professional appearance from the beginning.
** Use code snippets
|
/**###########################安装方法(中文描述)###########################################
1.liunx 下找到 vim 安装位置 将 其解压在根目录下面
命令:unzip c.vim 既可以了
注意:
默认yum 方式安装vim 在
[root@yuxiaolin c]# cd /usr/share/vim/
[root@yuxiaolin vim]# ll
总用量 8
drwxr-xr-x. 17 root root 4096 2月 29 2012 vim72
drwxr-xr-x. 18 root root 4096 2月 28 00:20 vimfiles
这里有两个文件 将解压的
将c-support
复制一份到vimfiles
![]()
就ok了。
建立一个.c的文件
-- 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-linecomment(n,v,i)
228/cj adjust end-of-linecomment(s)(n,v,i)
229/cs set end-of-linecommentcolumn(n)
230/c* code ->comment/*
*/(n,v)
231/cc code ->comment//(n,v)
232/cocomment->
code(n,v)
233/cfrframecomment(n,i)
234/cfufunctioncomment(n,i)
235/cmemethod description(n,i)
236/cclclass 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/sfofor {}(n,v,i)
243/sife if {}else
{}(n,v,i)
244/se else {}(n,v,i)
245/swhwhile {}(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/pr0remove #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/isfstatic 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/iscscanf()(n,i)
274/icap=calloc()(n,i)
275/imap=malloc()(n,i)
276/isisizeof()(n,v,i)
277/iasassert()(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 clearprototype(s)(n,i)
288/ns show prototype(s)(n,i)
289/ntledit local
templates(n,i)
290/ntgedit global
templates(n,i)
291/ntrrebuild templates(n,i)
292
293-- C++ ----------------------------------------------------
294/+cocout<<<<
endl;(n,i)
295/+c class(n,i)
296/+cnclass(using
new)(n,i)
297/+ciclass implementation(n,i)
298/+cni class(using
new)implementation(n,i)
299/+mimethod implementation(n,i)
300/+aiaccessor
implementation(n,i)
301
302/+tctemplate
class(n,i)
303/+tcn template
class(using new)(n,i)
304/+tci template
class implementation(n,i)
305/+tcnitemplate
class(using new)impl.(n,i)
306/+tmi template
method implementation(n,i)
307/+tai template
accessor implementation(n,i)
308
309/+tftemplate
function(n,i)
310/+ecerrorclass(n,i)
311/+trtry ... catch(n,v,i)
312/+cacatch(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
![]()

分享到:
相关推荐
本文将详细介绍如何将Vim配置成一个功能完备的C语言开发集成开发环境(IDE)。 首先,我们需要理解Vim的配置文件`.vimrc`,这是存放所有用户设置的地方。在`.vimrc`中,我们可以添加插件、快捷键、语法高亮和其他功能...
A插件专门设计用于在C语言项目中,方便地在头文件(.h)和源文件(.c)之间进行切换,这对于C/C++开发者而言是一项非常实用的功能,能够加速开发流程。 #### 十二、Grep插件:工程级搜索 Grep插件允许开发者在项目...
- **集成开发环境(IDE)**:Visual Studio、CLion(基于JetBrains)、Code::Blocks和Eclipse CDT是常用的C/C++ IDE,它们提供了代码编辑、编译、调试等功能。 - **文本编辑器**:对于喜欢轻量级工具的开发者,Vim...
- **Visual Studio Code with C/C++ Extension**:虽然不是专门的IDE,但Visual Studio Code配合C/C++扩展可以提供强大的源代码编辑和调试功能,适用于跨平台开发。 3. **文本编辑器**: - **Vim或Emacs**:这两...
- **定义**:SourceInsight是一款多语言编辑器,支持包括C、C++、Java在内的多种编程语言。因其强大的查找、定位及色彩高亮显示等功能,被广泛用作源代码阅读工具。 - **特性**: - 支持多种开发语言。 - 强大的...
Python有多种集成开发环境(IDE)和编辑器可供选择,包括但不限于: - **IDLE:** Python自带的集成开发环境,支持交互模式。 - **UliPad:** 国人基于wxPython开发的IDE。 - **Eclipse+PyDev:** 基于Eclipse的...
vi编辑器以其强大的功能、高效的操作方式以及几乎在所有Unix-like系统上都能找到而著称,特别是在Linux环境中,vi或其增强版vim(Vi Improved)几乎是每个系统管理员和程序员的必备工具。 标题“Linux的vi编译器...