Use vim to open the line from gdb (or gcc err output)

This might be kind of specific. But…

We’ve all been there. There’s a backtrace as long as a CVS receipt in your gdb window.

mkdir -p ~/.vim/plugin
wget -O ~/.vim/plugin/file_line.vim https://raw.githubusercontent.com/bogado/file-line/master/plugin/file_line.vim

And now you can:

vi source/common/http/http1/conn_pool.cc:79

like a boss.

You’re welcome.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *