My Git commit message contains a whitespace character which looks like a simple space when I output git log
or run gitk
. However, when I open the Git commit message with Vim the space is displayed as an underbar as shown in the screenshot. How can find out what character this is? I would paste it here if you can tell me how I can copy it.
The screenshot shows the Git commit message in Vim in iTerm on MacOS.
Using vim, you can use
ga
(in normal mode) with the cursor on the character to print its ascii value in decimal, hexadecimal and octal.From
:help ga
:For instance, using
ga
with the character on ana
shows: