Re:Regex character "$" doesn't mean "end-of-string"
by kataklasm on Wednesday March 20, 2024 @02:02PM
(#39770032)
I don't have (n)vi(m) open right now but I think this only applies to prepending spaces. For prepending tabs, 0 will take you to the first non-tab character as well.
[ Parent
| on HN ]
Re:Regex character "$" doesn't mean "end-of-string"
by qu4z-2 on Wednesday March 20, 2024 @06:15PM
(#39772650)
Vim takes me to the first character in the line (the first tab), but displays the cursor on the last gridsquare the tab's width covers.
Re:Regex character "$" doesn't mean "end-of-string"
by Izkata on Wednesday March 20, 2024 @08:46PM
(#39773784)
If you have "set list" to make non-space whitespace visible, it'll go to the leftmost position. I did it long ago along with "set listchars=trail:.,tab:>-" so I can see not only where tabs are, but also their size/alignment without causing the text to shift.