When using gdb and Vim, often I want to stop on a particular line. Normally in Vim I copy-paste the line number showing on the rule area to the gdb session. It’d save me a lot of hassle if I could use something like '+<magic-incantation> to copy the line number of the current cursor position into the xclipboard buffer. Is this possible?
When using gdb and Vim, often I want to stop on a particular line.
Share
put this in your vimrc
then using ,n will copy the current line number into the clipboard