Sunday, February 26, 2012

Re: Basic syntax highlighting fail

On 27/02/12 05:28, Paul Harris wrote:
> Hi,
>
> I'm using Vim 7.2.445 on Debian, with no .vimrc or .gvimrc.
>
> I write a file to the /tmp path, called x.c
> call("look
> call_something();
>
> I load up that file in gvim
> vim /tmp/x.c
>
> Turn on syntax
> :syntax on
>
> Split the buffer
> :sp
>
> And put a quote at the end of the first line, so it looks like call("look"
> A"
>
> The top buffer is correctly coloured, the bottom buffer is not.
>
> Why? How can I fix it?
> It is a source of a lot of syntax colour problems for me.
>
> thanks,
> Paul


I recommend:

:set nocompatible
:filetype plugin on
:syntax on

or even (at startup, instead of them)

:runtime vimrc_example.vim

You may want to do the latter automatically at every startup by creating
a ~/.vimrc with (for the time being) only the single line

runtime vimrc_example.vim

Later, perhaps, you will add additional lines, probably after this one.


Best regards,
Tony.
--
All programmers are playwrights and all computers are lousy actors.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: