Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Yeah, I've never used the autoindent command before, either. Oops.

Been manually indenting stuff with :<line1>,<line2>,s/^/\t/ for years now, oof.


= 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.


Yeah, I also learned about the -i] commands. Can't believe I didn't know about them before...


You might like , as well, it repeats the last move.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: