r/programming • u/variance_explained • 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
View all comments
Show parent comment
2
u/michaelpaoli May 24 '17
Nothin' unexpected there, standard vi/nvi behavior,
a to append after the current cursor position
A to append at the end of the line
In general with vi/nvi standard behavior, uppercase does/impacts something bigger or more general than the otherwise similar lowercase,
e.g. b vs. B, e vs. E, h vs. H, l vs. L, r vs. R, s vs. S, u vs. U, w vs. W, etc. But that's just in general. There are also highly useful (often slight) exceptions/variations, e.g.: f vs. F vs. ^F (forward vs. backwards vs. screenful), i vs. I (before vs. before first non-whitespace on line (or beginning of line if no non-whitespace on line)), n vs. N (forward vs. backwards), o vs. O (below vs. above), p vs. P (after vs. before), t vs. T (forward vs. backwards), x vs. X (current vs. to left).
"slide" set I've used many times for vi training presentations:
vi - basic introduction through advanced tips and "tricks" (works best along with the verbal presentation and fair number of quick demonstrations along the way, and some other handout materials - including ye olde vi (not vim!) quick reference card (best printed as double sided 11" x 8.5" tri-fold), and tutorial introduction:
Ex/Vi Quick Reference
An Introduction to Display Editing with Vi