How do I set tabs and stuff in gvim??
Hi. I have just started using gvim (vi) to edit my C code. I found out how to turn on the syntax coloring for a .c code under the pull-down menu's but how do I set it up to automatically indent for 'int declarations' 'for loops' ,etc. I mean like the auto-indent that emacs uses so I don't have to always indent my code manually.
thanks :) |
You have to edit your /etc/.vimrc file (or wherever t´s located.)
add a line like tabs = 4 or something like that. either do man vi or man vim to find out exactly, or run a search on this site, because I´ve seen it posted around here somewhere before. PEACE OUT |
All times are GMT -5. The time now is 06:20 PM. |