C editing with Vim HOWTO
来源:互联网 发布:最短路径算法dijkstra 编辑:程序博客网 时间:2024/05/18 02:04
2 moving around
2.1 w, e, b keystrokes
2.2 {, }, [[, ]] keystrokes
2.3 % keystroke
3 jumping to random positions in C files
3.1 ctags
ctrl-] ctrl-t
3.2 marks
mj 'j
mA 'A upper-case register could span files
3.3 gd stroke
gd means Goto Declaration.
gD will take you to the global declaration of the variable under the cursor.
4. Auto-completing words
ctrl-p ctrl-n
if you want to include foo.h, you can type
#include "f ctrl-x ctrl-f"
:set dictionary=file
ctrl-x ctrl-k
5. Formatting automatically
5.2 Automatically indent code
:set cindent
6. multi-file editing
$vim file1 file2
:n :N
:e# //jump back,toggle between two files
:split :vs ctrl-w ctrl-w
7. Quickfix
:make :cn :cN
:set makeprg=gcc/ test.c
- C editing with Vim HOWTO
- (转帖)Efficient Editing With vim
- 高效使用vim (Efficient Editing With vim)
- 高效使用vim (Efficient Editing With vim
- 高效使用vim(Efficient Editing With Vim)
- VIM Binary file editing
- Howto base64 encode with C/C++ and OpenSSL
- Howto:配置vim
- HOWTO: FreeBSD with CCACHE
- Editing with the geodatabase API
- HOWTO: CVS with VS.NET
- HOWTO Rip Streams With MPlayer
- [git] HOWTO-work with git
- Vrapper — Vim-like editing in Eclipse
- Inline editing with a submit button
- Introduction to Programming in C/C with Vim
- HOWTO Apache2 with subversion SVN and DAV
- HOWTO: Re-Register ASP.Net with IIS
- javascript的系统函数
- 服务器控件的调试方法
- .NET自动服务程序—C#(一)
- QT_渐变填充
- httpclient 4 POST 自动重定向
- C editing with Vim HOWTO
- 职业生涯—一个人的生活
- 用C#创建Windows服务(Windows Services)
- Uchome分页方法
- uchome 基本文件及功能介绍
- java中awt和swing是的关系以及区别
- uchome 名称对照表
- 网络运营总结
- AJAX中UpdatePanel控件属性的相关介绍