notepad++vim_Vim + Cgdb

作者分享了从使用Notepad++和Emacs转向Vim的心得,详细介绍了使用cgdb进行调试的设置和快捷键,包括如何使代码窗口比gdb命令窗口更大,以及一系列提高效率的快捷键。

notepad++vim

I begin to use vim for programming. I like the tools that focus on one function. I used to use emacs. But I think I like vim more.

我开始使用vim进行编程 。 我喜欢专注于一个功能的工具。 我曾经使用emacs 。 但是我想我更喜欢vim。

For debugging, I use gdb. But I use the front end cgdb. I can see the codes with the cursor when debugging. I can use F8 for next instead of n + enter. And F10 for step instead of s + enter. i is the key for enter gdb command mode. And ESC can change the user to command mode. But ESC is too far away from my finger, so I prefer “Ctrl + [” to ESC ;)

对于调试,我使用gdb。 但是我使用前端cgdb。 调试时,我可以用光标看到代码。 我可以使用F8代替n + enter。 然后按F10键代替s +输入。 我是进入gdb命令模式的关键。 ESC可以将用户更改为命令模式。 但是ESC离我的手指太远了,所以我更喜欢“ Ctrl + [”而不是ESC;)

My configuration files can be found here if they are useful for someone:
https://github.com/zma/config_files

如果我的配置文件对某人有用,可以在这里找到:
https://github.com/zma/config_files

In the config file of cgdb:
“set winsplit=top_big: is for letting the code window bigger than the gdb command windows, which is convenient for debugging.

在cgdb的配置文件中:
“ set winsplit = top_big:用于让代码窗口大于gdb命令窗口,这便于调试。

A list of useful cgdb shortcuts:

有用的cgdb快捷方式列表:

`F5'
     Send a run command to GDB.
`F6'
     Send a continue command to GDB.
`F7'
     Send a finish command to GDB.
`F8'
     Send a next command to GDB.
`F10'
     Send a step command to GDB.
`spacebar'
     Sets a breakpoint at the current line number.
`t'
     Sets a temporary breakpoint at the current line number.
`i'
     Puts the user into "GDB mode".
`I'
     Puts the user into "TTY mode".

These short cuts is available in cgdb 0.6.5.

这些快捷方式在cgdb 0.6.5中可用。

Updated on Apr. 2 2010. Short cuts are added.

2010年4月2日更新。添加了快捷键。

翻译自: https://www.systutorials.com/vim-cgdb/

notepad++vim

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值