4 ms·
How does gI differ from I?
by JohnCurran 6y ago
How does gI differ from I?
- asicsp 6y ago`gI` will always go to column 1 whereas `I` will go first non-blank character
- graywh 6y agoin other words, I = ^i and gI = 0i
- kludgeon 6y agothe article has a tricky typo here. it says "The keystroke `I` insert text after the first non-blank characters of the line." but it should say _before_ the first non-blank, which is equivalent to _after_ the last leading blank.
- thanato0s 6y agoVery good point. I'll fix that. Thanks!
- thomastjeffery 6y agoThe same way that 0 differs from ^.