r/programming • • May 23 '17

Stack Overflow: Helping One Million Developers Exit Vim

https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/
9.2k Upvotes

1.1k comments sorted by

View all comments

Show parent comments

1

u/bart2019 May 24 '17

Annoyances? How about this one.

When you press "a" to append on the current line, it doesn't move the cursor at the end of the line. Instead, it moves it to the position of the last character, for example, on the last letter.

W...T...F...

1

u/CaptainDickbag May 24 '17

Shift-$ to go to the end of a line. Shift-^ to go to the beginning. i for insert, a for append, o to insert a newline and edit.

1

u/MrHartreeFock May 24 '17

It's $ and ^, not shift+ those (that would be impossible on qwerty since it's required anyway, actually that is probably what gave you the wrong idea). If you want to see what I mean, change your layout to something that allows you to press ^ and $ without shift (eg azerty), you won't need shift at all then.

And they aren't opposites, 0 is the opposite of $, which brings you to the start or end of the line, ^ (or _) brings you to the first non-blank character of a line. g_ is the counterpart to ^

1

u/CaptainDickbag May 24 '17

Good points, thanks for the corrections.