I am new to vim and recently came to know that we can use Termdebug to debug code in vim with gdb. I liked this very much as i was searching for a good vim integration with gdb. When i launch Termdebug window is split horizontally in gdb window, program window & source code window. I like to vertically split source code window to right. For that, currently i move focus on source code window and press Ctrl+w & L.
Before splitting:
After splitting:
This i have to do every time i launch Termdebug. Is there a way to .vimrc so that when i launch Termdebug, source code window is automatically splitted to right. I have seen here which suggests to use:
let g:termdebug_wide = 163
This does automatic splitting but it has some problem in highlighting lines during debug as can be seen in picture below:
Please suggest how can i change .vimrc