vimgdb install
**************
a) You need: vim-7.3.tar.bz2 http://www.vim.org/sources.php vimgdb-for-vim7. (this patch) https://github.com/larrupingpig/vimgdb-for-vim7.3 b) Untar all files, apply the patch and make Vim: tar xjvf vim-7.3.tar.bz2 -C /tmp tar xzvf vimgdb-for-vim7..tar.gz -C /tmp cd /tmp patch -p0 < vimgdb-for-vim7./vim73.patch cd vim73/src

./configure --enable-gdb  --enable-cscope make sudo make install IMPORTANT NOTE: you must run make (not ./configure), and if you run
./configure then you must add the --enable-gdb command line argument
in order to include the gdb feature (vimgdb) in vim. c) Install vimGdb runtime: Copy the file vimgdb_runtime found in the vimgdb tarball, to your
runtime path. To find your runtime path location execute the vim
command (this is usually $HOME/.vim):
:set runtimepath? cp -rf /tmp/vimgdb-for-vim7./vimgdb_runtime/* ~/.vim Change to the doc directory, start Vim and run the ":helptags ."
command to process the taglist help file. Without this step, you
cannot jump to the taglist help topics. You can now use the ":help
vimgdb" command to get the vimGdb documentation.

自带的说明比网上找的都好用

在.vimrc中添加

source ~/.vim/macros/gdb_mappings.vim

vimgdb使用:
1、run macros/gdb_mappings.vim
2、按键F7开启映射键对应关系
3、按空格开启gdb调试功能
4、使用file调入需要调试的文件
file ./libexec/mysqld
5、加一个断点 b xxx

6、开启运行 r

7、如何转为垂直分布

第一步:ctrl+w热键

第二步:shift+l

下载地方备份:

http://pan.baidu.com/s/1zMrq1

ctags:

生成tags

ctags -R

Ctrl+ ]跳到光标所在函数或者结构体的定义处
Ctrl+ T返回查找或跳转

比较好的文章:

http://easwy.com/blog/archives/advanced-vim-skills-cscope/

http://easwy.com/blog/archives/vim-cscope-ctags/

最新文章

  1. Java 浅析内部类
  2. 博客 博客vno主题(我正在用的这个博客主题)
  3. 群晖SVN Server远程访问
  4. codeforces 442B B. Andrey and Problem(贪心)
  5. NSUserdefaults 简介以及存储自定义数据类型的方法
  6. Ajax编程中,经常要能动态的改变界面元素的样式
  7. 欧拉工程第66题:Diophantine equation
  8. ios毛玻璃效果
  9. 【二分】【最长上升子序列】HDU 5489 Removed Interval (2015 ACM/ICPC Asia Regional Hefei Online)
  10. C++实现Log()日志函数
  11. jQuery validate 的valid()方法一直返回true
  12. Linux 使用nexus搭建maven私服
  13. 《C#从现象到本质》读书笔记(五)第5章字符串第6章垃圾回收第7章异常与异常处理
  14. Java IntelliJ IDEA 不能显示项目里的文件结构
  15. ubuntu配置默认python版本并安装pip
  16. [转] 禁止ultraedit自动检查更新的方法
  17. centos上yum安装nodeJS
  18. delphi XE8 NetHTTPRequest NetHTTPClient
  19. Alpha阶段事后诸葛亮会议记录
  20. 【工具】SwitchHost的使用

热门文章

  1. Are We There Yet? (zoj1745)
  2. ZOJ2185 简单分块 找规律
  3. asp.net数据四舍五入
  4. 【转载】兼容所有浏览器的JQuery zClip插件实现复制到剪贴板功能
  5. JAVA常用API(Date、DateFormat、Calendar、System、Math、基本数据类型包装类)
  6. Windows 10「设置」应用完整MS-Settings快捷方式汇总
  7. Spark: Job in detail
  8. Mysql存在则更新,没有则新增
  9. MySQL复制之实践篇
  10. win10 安装Node.js 报错:2503