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?
put this in your vimrc
map ,n <Esc>:let @*=line(".")<CR>
then using ,n will copy the current line number into the clipboard
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With