4 ms·
> But I'm not sure what `M-C-j` is Meta-Control-j Basically hold down the 'Alt' and 'Control' keys and then press 'j'. If you don't want to have to toggle it
by alexhutcheson 7y ago
> But I'm not sure what `M-C-j` is
Meta-Control-j
Basically hold down the 'Alt' and 'Control' keys and then press 'j'.
If you don't want to have to toggle it every time you launch gdb, then you can create a ~/.inputrc file with the following contents:
$if gdb
set editing-mode vi
$endif
If you want vi bindings in every program that uses GNU Readline (Bash, etc.), then you can leave off the $if/$endif part.
For colors - GDB 8.3 added source code syntax highlighting, but it was just released this year and may not be the version on your Linux distribution.