Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vim syntax not used
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
blunted
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 89
Location: Winnipeg, MB

PostPosted: Sun Jun 30, 2002 10:19 pm    Post subject: vim syntax not used Reply with quote

I emerged vim and it came with a load of .vim syntax files but vim doesn't use them. What do I need to do to use them?
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sun Jun 30, 2002 10:21 pm    Post subject: Reply with quote

From "man vim":

Code:

       /usr/share/vim/vim61/scripts.vim
                      Script to detect the type of a file by  its  contents.   See  ":help  'file-
                      type'".
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Sun Jun 30, 2002 10:30 pm    Post subject: Re: vim syntax not used Reply with quote

Add:
Code:

syntax on

to your .vimrc file in your home directory to turn syntax on automatically.
blunted wrote:
I emerged vim and it came with a load of .vim syntax files but vim doesn't use them. What do I need to do to use them?
Back to top
View user's profile Send private message
blunted
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 89
Location: Winnipeg, MB

PostPosted: Sun Jun 30, 2002 11:09 pm    Post subject: Thanks Reply with quote

Thanks guys.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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