Wednesday, March 11, 2026

Re: Current Position

On Mi, 11 Mär 2026, Christopher wrote:

> I'm trying to get this to work, first I press g followed by CTRL+G although nothing happens ?
>
> g CTRL-G 
>
> 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
this key away?


Thanks,
Christian
--
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

--
--
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

---
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 email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/abGlHCNXHL7QxbWF%40256bit.org.

No comments: