Vim config question

2009-09-04 Thread Gabor Urban

Hi guys,

I have a trivial question, but I am new to Vim.

I could set up my favourite color scheme, but I can't get Vim use the
syntax highlight feature automatically when I open a file. Each time I
have to do it manually :-)).

Any help is wellcome,
Gabor

-- 
Linux: Choice of a GNU Generation

--~--~-~--~~~---~--~~
You received this message from the vim_use maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



RE: Vim config question

2009-09-04 Thread John Beckett

Gabor Urban wrote:
 I could set up my favourite color scheme, but I can't get Vim
 use the syntax highlight feature automatically when I open a
 file. Each time I have to do it manually :-)).

If you edit file example.c are you saying that it does not
syntax highlight for C? You should have the following in your
vimrc file:

filetype plugin indent on

John


--~--~-~--~~~---~--~~
You received this message from the vim_use maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: Vim config question

2009-09-04 Thread Roberto Miura Honji
2009/9/4 Gabor Urban urbang...@gmail.com


 Hi guys,

 I have a trivial question, but I am new to Vim.

 I could set up my favourite color scheme, but I can't get Vim use the
 syntax highlight feature automatically when I open a file. Each time I
 have to do it manually :-)).

I'm not sure about your question, but I think that you want something like
autocmd. Take a look in :help autocmd


 Any help is wellcome,
 Gabor

 --
 Linux: Choice of a GNU Generation

 



-- 
--
Roberto Miura Honji
LAS - Laboratório de Administração e Segurança de Sistemas
Engenharia de Computação - 2006
Instituto de Computação - UNICAMP

email: miuraho...@gmail.com (principal)
email: ra064...@students.ic.unicamp.br
msn:   miuraho...@msn.com
---

--~--~-~--~~~---~--~~
You received this message from the vim_use maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---