Current Position

56 views
Skip to first unread message

Christopher

unread,
Mar 11, 2026, 1:14:32 PM (4 days ago) Mar 11
to vim_use
I'm trying to get this to work, first I press 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.

Christian Brabandt

unread,
Mar 11, 2026, 1:25:47 PM (4 days ago) Mar 11
to vim...@googlegroups.com
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

Christopher

unread,
Mar 11, 2026, 1:43:18 PM (4 days ago) Mar 11
to vim_use
I tried vim --clean I don't see anything happen ?

Christian Brabandt

unread,
Mar 11, 2026, 2:56:40 PM (4 days ago) Mar 11
to vim...@googlegroups.com

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

> I tried vim --clean I don't see anything happen ?

Please do not top poste.

Does this work?
:exe ":norm! g\<c-g>"


Thanks,
Christian
--
District of Columbia pedestrians who leap over passing autos to escape
injury, and then strike the car as they come down, are liable for any
damage inflicted on the vehicle.

CrestChristopher

unread,
Mar 11, 2026, 3:01:08 PM (4 days ago) Mar 11
to vim...@googlegroups.com


On 3/11/2026 2:54 PM, Christian Brabandt wrote:
On Mi, 11 Mär 2026, Christopher wrote:

I tried vim --clean I don't see anything happen ?
Please do not top poste.

Does this work?
:exe ":norm! g\<c-g>"


Thanks,
Christian

Yes, that command works; although why not g followed by CTRL+g ?


    

Christian Brabandt

unread,
Mar 11, 2026, 3:15:16 PM (4 days ago) Mar 11
to vim...@googlegroups.com

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

>
> Does this work?
> :exe ":norm! g\<c-g>"
>
> Yes, that command works; although why not g followed by CTRL+g ?

This is how Vim script expects those two keys.

So did you really press "g" followed by hitting the "CTRL" key (and keep
it down) and pressing the "g" key again?

Thanks,
Christian
--
Television is now so desperately hungry for material that it is scraping
the top of the barrel.
-- Gore Vidal

Christopher

unread,
Mar 14, 2026, 4:56:01 AM (yesterday) Mar 14
to vim_use
I tried another version on another installation; the same thing. This is frustrating why it's not working; I assume if I can't get this to work similar commands will not work. Therefore I really want to solve this issue.
(Google Groups may not respond below)

Yongwei Wu

unread,
Mar 14, 2026, 9:40:29 PM (22 hours ago) Mar 14
to vim...@googlegroups.com
On Sat, 14 Mar 2026 at 16:56, Christopher <crestchr...@gmail.com> wrote:
I tried another version on another installation; the same thing. This is frustrating why it's not working; I assume if I can't get this to work similar commands will not work. Therefore I really want to solve this issue.

1. What did you see when you type g followed by Ctrl-G?
2. What's the output of `:nmap` after starting Vim with `vim --clean`?
3. If still unsolved, what's your output of `:version`?

--
Yongwei Wu
URL: http://wyw.dcweb.cn/

Christopher

unread,
9:17 AM (10 hours ago) 9:17 AM
to vim_use

 I understand it works for you; although as I posted. It doesn't work in my case. I see the `g` in the bottom of the screen but when doing CTRL+G nothing happens ? 

The method of using the `...` to post below using Google Groups web interface exposes my email address; do I want that ? 

jr

unread,
9:31 AM (10 hours ago) 9:31 AM
to vim...@googlegroups.com
hi,

On Sun, 15 Mar 2026 at 13:17, Christopher <crestchr...@gmail.com> wrote:
> ... exposes my email address; do I want that ?

if your questions are rhetorical, then no. ;-)

--
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

Yongwei Wu

unread,
10:18 AM (9 hours ago) 10:18 AM
to vim_use
On Sunday, March 15, 2026 at 9:17:41 PM UTC+8 Christopher wrote:

 I understand it works for you; although as I posted. It doesn't work in my case. I see the `g` in the bottom of the screen but when doing CTRL+G nothing happens ? 

You need to provide more information about your environment: OS, remote or local, terminal app if you are doing remote, :version output, etc.

Does any Ctrl key work, like Ctrl-F for Page down, Ctrl-B for Page up, and Ctrl-G for Print current file name? Could it be that some app intercepted Ctrl-G for some purposes?
 
The method of using the `...` to post below using Google Groups web interface exposes my email address; do I want that ? 

I am replying now in the Google Groups web UI, and you can see the result yourself. Also, your e-mail address is never a secret for subscribers of this mailing list. 

Christopher

unread,
10:35 AM (9 hours ago) 10:35 AM
to vim_use
CTRL+F, CTRL+G work, so yes; some of the CTRL keys do work. I'm looking into another program currently; although it seems nothing exists which would block this combination of keys.  
Reply all
Reply to author
Forward
0 new messages