LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do I set tabs and stuff in gvim?? (https://www.linuxquestions.org/questions/linux-general-1/how-do-i-set-tabs-and-stuff-in-gvim-28311/)

purpleburple 08-20-2002 12:45 AM

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 :)

da Perp 08-20-2002 05:27 AM

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.