全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
cvim 用户手册 Yang Cheng 2010 8 12 cvim 是 Vim 的一个插件 用于支持 C C 的开发 可以方便的支持插入声明 statements 惯用语法 idioms 代码片段 code snippets 模板 templates 和 注释 comments 并且支持语法检查 Syntax checking 编译 compiling 及运行 running 程序 也可以通过按键操作检查和格式化代码 此插件可同时支持 Vim gVim 但由于 gVim 中是以菜单 Menus 的形式提供各 种功能 故使用起来也很方便 无须多作介绍 下面仅以 Vim 来做介绍 1无 GUI 界面的用法 USAGE WITHOUT GUI Vim 常见的功能可以通过键盘映射的方式被插入 这些键映射在文档 c hot keys pdf1中 描述 如果需要修改映射的头 可以通过在 vimrc 中设置全局变量 global variable 来 修改 let g C MapLeader 这样就映射的头就是 comma 了 例如你可以这样用 cl 来插入行末的注释 此手册参考 VIM 的插件 cvim 的文档写成 该插件是一个 C C IDE for Vim gVim 本文基于版本 version 5 10 E mail ustbyangcheng 1Hint 该 pdf 中以 开头和后面字符的组合只有在一个 short time 内才能被识别 在插入模 式下这些映射可以以 backtick 开头 不过经过试验 貌似也不必如此 直接输入也可以 但速 度要快 读者可以参考该 pdf 文档 本文下一页就罗列这些 key mapping 了 1 VIM PLUGIN c support vim VERSION5 10 HOT KEYS Key mappings for Vim with and without GUI Plugin i insert mode n normal mode v visual mode Comments clend of line comment n v i cjadjust end of line comment n v i csset end of line comment column n c code comment n v cccode comment n v cocomment code n v cfrframe comment n i cfufunction comment n i cmemethod description n i cclclass description n i cfdi fi le description implementation n i cfdh fi le description header n i ccs C C fi le sections tab compl n i chs H fi le sections tab compl n i ckckeyword comment tab compl n i cscspecial comment tab compl n i cddate n v i ctdate x 0 x 1 n v i ieenum typedef n v i isstruct typedef n v i iuunion typedef n v i ipprintf n i iscscanf n i icap calloc n i imap malloc n i isisizeof n v i iasassert n v i ii open input fi le n v i io open output fi le n v i February 2010c support vimPage 1 2 C cocout endl n i cclass n i ps include STL n i pc include C n i cnclass usingnew n i ciclass implementation n i cniclass usingnew implementation n i mimethod implementation n i aiaccessor implementation n i tctemplate class n i tcntemplate class usingnew n i tcitemplate class implementation n i tcnitemplate class usingnew impl n i tmitemplate method implementation n i taitemplate accessor implementation n i tftemplate function n i ecerror class n i trtry catch n v i cacatch n v i c catch n v i Run rcsave and compile n i rllink n i rrrun n i raset comand line arguments n i rmrunmake n i rgcmd line arg formake n i rprunsplint1 n i ricmd line arg forsplint n i rkrunCodeCheck2 n i recmd line arg forCodeCheck n i rdrunindent n i rhhardcopy buffer n i v rsshow plugin settings n i rxset xterm size n i only Unix GUI rochange output destination n i Help and Menus hmshow manual n i hphelp c support n i lcsload Menus n GUI only ucsunload Menus n GUI only Ex commands CFileSection C C fi le sections same as ccs HFileSection H fi le sections same as chs KeywordComment keyword comment same as ckc SpecialComment special comment same as csc IncludeStdLibrary standard library includes same as ps IncludeC99Library C99 includes same as pc IncludeCppLibrary STL includes same as ps IncludeCppCLibrary C includes same as pc CStyle C99 include same as nts Use tab expansion to show the items to choose from 1www splint org 2CodeCheckTMis a product of Abraxas Software Inc Additional Mappings typingexpansion i multiline marked text v i i v multiline marked text February 2010c support vimPage 2 2 2快捷键 HOTKEYS 下面的快捷键在三种模式下均可使用 F9编译和链接 compile and link Alt F9 保存并编译 write buff er and compile Ctrl F9运行 run executable Shift F9设置命令参数 set command line arguments Shift F2 2 在源文件和头文件之间切换 switch between source fi
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 快递员综合绩效考核方案及结果应用
- 初级管理员个人工作目标设定与执行策略
- 建筑项目风险管理计划
- 营销策划案品牌推广计划与执行
- 交通领域AI数据治理师初级工作策略
- 核安全法规标准应用案例分析
- 项目进度控制与质量管理方法
- 建筑工程项目管理及施工组织设计
- 文化创作者工作室创建流程与管理方法
- 深入解析企业级应用运维的月工作安排要点
- 喘病中医护理常规
- 七年级期中试卷讲评
- 后厨布置方案
- 企业营销道德与消费者权益保护
- 中国金币总公司招聘考试题
- 数字媒体技术职业生涯规划书
- 【室内设计手绘效果图表现技法】课件
- JAVA从入门到精通教程(完整版)
- 工程技术职业规划
- 新教材外研版高中英语选择性必修第一册各单元重点语法归纳总结.文档
- 运动会招商方案
评论
0/150
提交评论