Operating Systems > Linux and UNIX
Vim
TheQuirk:
How do you make vim auto indent code? I'm tired of quitting and then running "indent" and then launching vim again. I know this is possible, I just don't know how.
voidmain:
Although I prefer to use spaces (some prefer tabs), and prefer to manually space my code while I write it there are intent features of vim. Search google for "vim indent source code". Here is the first link that popped up with some info on the subject:
http://vim.sourceforge.net/tips/tip.php?tip_id=83
dbl221:
Autoindentation is covered on pg 72 of Vi IMproved-Vim by Steve Oualline New Riders Press isbn=0-7357-1001-5
put :set sutoindent in your $HOME/.gvimrc or .vimrc
good luck
choasforages:
hmmmm, use emacs, i used to hate it cuase it was fucking huge, then i played with it, and it works the same on all platforms unlike vim. the solarise admin seems to think that a gnu/linux system is really three operating systems in one
LINUX
X11R6
EMACS
then agian, he has stared at the sun way too long ;)
voidmain:
Huh? Solaris is no different than Linux in that respect. And vim is not different on each platform, now "vi" is a different story. And emacs sucks.
Navigation
[0] Message Index
[#] Next page
Go to full version