Doing l
and l -
all the time is inconvenient, and misses feature like syntax highlight and jumping to definitions.
How to I run an external command that opens an editor (possibly a CLI editor like Vim) on the current file, at the current line?
I already know about editor plugins integrations as mentioned at: https://vi.stackexchange.com/questions/2046/how-can-i-integrate-gdb-with-vim or Eclipse, but opening the editor from GDB has the advantage that it should work with any editor, and is more lightweight, and therefore less likely to break. The cost is worse integration, e.g. can't set breakpoints from editor, but I'm fine with that.