4 ms·
The problem I have is that I just wrote a bunch of shit in vi (which has not been auto-indenting for me, though I should probably check my .vimrc or whatever),
by zack 18y ago
The problem I have is that I just wrote a bunch of shit in vi (which has not been auto-indenting for me, though I should probably check my .vimrc or whatever), and now I'm editing it using TextMate, and the formatting is all screwed up.
- astrec 18y agoThe Python bundle has a nifty "clean up white space" command which in tandem with the "format code" command in the appropriate language bundle works for me.
- apu 18y agoWhat language is your code in? If it's a curly-brace language (c, c++, java, etc.), then the following should properly indent everything using Vim: gg=G If not (or if that doesn't work right), you can use visual mode to quickly change indents on large sections at once: Select a set of lines using: V and then press (for example): 2> to add 2 tabs to the beginning of the selected lines. Or to go the other way (remove 2 tabs): 2<