Re: Current Position

Christian Brabandt <[email protected]> Wed, 11 Mar 2026 18:23:40 +0100
Newsgroups gmane.editors.vim
Message-ID <[email protected]>
On Mi, 11 M=C3=A4r 2026, Christopher wrote:

> I'm trying to get this to work, first I press g=C2=A0followed by CTRL+G a=
lthough nothing happens ?
>=20
> g CTRL-G=C2=A0
>=20
> Prints the current position of the cursor in five ways: Column, Line,
> Word, Character and Byte. If the number of Characters and Bytes is the
> same then the Character position is omitted. If there are characters
> in the line that take more than one position on the screen (<Tab> or
> special character), or characters using
> more than one byte per column (characters above 0x7F when 'encoding'
> is utf-8), both the byte column and the screen column are shown,
> separated by a dash.

You should see something like this:


Col 20-41 of 54-75; Line 74 of 1738; Word 434 of 11778; Byte 2860 of 73069

(I just pressed g followed by CTRL-G in a help window.)

Does it work if you start vim --clean? Perhaps some plugin is mapping=20
this key away?


Thanks,
Christian
--=20
On the subject of C program indentation:
"In My Egotistical Opinion, most people's C programs should be indented
 six feet downward and covered with dirt."
		-- Blair P. Houghton

--=20
--=20
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---=20
You received this message because you are subscribed to the Google Groups "=
vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_use/abG=
lHCNXHL7QxbWF%40256bit.org.