5 ms·
One of the great things about vim is that even if you use it as your regular editor (I use MacVim), you tend to learn something new every time you read a new ar
by brown9-2 15y ago
One of the great things about vim is that even if you use it as your regular editor (I use MacVim), you tend to learn something new every time you read a new article. Today I learned about the '.' command.
Also, old discussion on same article: http://news.ycombinator.com/item?id=151637 http://news.ycombinator.com/item?id=151637
- tkellogg 15y agoYeah, I also learned about the -i] commands. Can't believe I didn't know about them before...
- gbog 15y agoYou might like , as well, it repeats the last move.
- qdog 15y agoYeah, I've never used the autoindent command before, either. Oops. Been manually indenting stuff with :<line1>,<line2>,s/^/\t/ for years now, oof.
- jjcm 15y ago= will also indent any selection you have automagically. gg=G will do your whole document, and V[selection]= will give you a selection range to indent. < and > are nice as well for indenting specific amounts in the left or right direction.