Sunday, February 26, 2012

Re: Basic syntax highlighting fail

On Monday, February 27, 2012 1:17:34 PM UTC+8, Tony Mechelynck wrote:
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


Hi Tony,

Thanks, but I tested this and the problem remains.

Can you test it at your end?  I can post a screenshot if you like.

Thanks,
Paul

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