I need to retrieve the character position of a character in a file. How can I do this, using Vi?
Search for the character that you want with:
/<char_you_want>
Then press Ctrl-g
. You will see something like 45,28
in the bottom left. The first number is the line number, and the second number is the column position of the character in the line.