Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vim help please
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
static_void
n00b
n00b


Joined: 20 Jan 2003
Posts: 74
Location: San Francisco, CA

PostPosted: Tue Jun 03, 2003 10:06 am    Post subject: vim help please Reply with quote

Hey I have this problem with vim, it doesnt auto indent, in my .vimrc file there is the set ai made by the gentoo guys...didnt work...tried adding set autoindent myself...dint work....is this a know problem that I am unaware of, because in RH8 auto indenting works, or is there something I have misconfigured...btw I am in console mode.(ie not in X)...if that makes any difference.
Thank your for your help
_________________
Travel, without movement.
Back to top
View user's profile Send private message
ptman
n00b
n00b


Joined: 25 Dec 2002
Posts: 24
Location: Finland

PostPosted: Tue Jun 03, 2003 11:03 am    Post subject: Reply with quote

Try also setting si (smartindent). And be sure to tell vim in what language it is written, so that you just don't start vim and start typing, but so that you start it with a file as parameter so that vim can figure out which language it should be indenting for.
_________________
Paul "ptman" Tötterman
Back to top
View user's profile Send private message
static_void
n00b
n00b


Joined: 20 Jan 2003
Posts: 74
Location: San Francisco, CA

PostPosted: Tue Jun 03, 2003 11:10 am    Post subject: Thanks PTMAN Reply with quote

Problem solved I added si and it works beatifuly, btw with si it seems to work regardless wether or not i put a language extentsion like .c, I tried for example vi porn and vi porn.c and both have auto indenting, but only porn.c has syntax highlighting....anyway...thanks for your help
_________________
Travel, without movement.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum