On Tue, Sep 26, 2006 at 09:14:46PM -0700, Gautam Iyer wrote:
> Hi All,
> 
> I noticed that pressing "gI" inserts text at column 1 of the current
> line (as documented in the help).
> 
> However given the commands gj and gk, wouldn't it be more intuitive to
> have gI insert text at the first screen column?
> 
> I guess I can just do
> 
>     nmap gI g0i
> 
> in my ~/.vimrc, but I though I would point out the inconsistent
> behaviour.

     Unless I am missing something, the current meaning of gI is not
very useful.  Is there any difference between [count]gI and 0[count]i ?
(Note that both have the same number of key strokes.)  Unfortunately, I
think it is too late to change it to something like g0i, which would
save a key stroke.

     I am not convinced by the consistency argument.  IIUC, "g" is not a
Normal-mode command in traditional vi (and it may be the only alphabetic
character with this distinction.)  Thus "g" is used in vim for a wide
variety of commands, with "g<char>" usually meaning some variant of
"<char>".  See

:help g

for a list.

HTH                                     --Benji Fisher

Reply via email to