How do you get character location count from a text file using vi?
I tried ":goto number" and it does not work in Linux.
To clarify my question, if I have a file with say 3 lines:
I am going for a walk
because today is a
beautiful day.
I want to say find me a letter in position 30 and it will jump to line 2 highlighting letter 't' from word 'today'. This is similar to concept of :goto 30
in macos vi but for Linux
:%s/.//gn<cr>
is one way.:h wordcount()