On 12/10/09 11:42, Alexander Kutka wrote:
>
> Hi there,
>
> I am connecting through putty to a linux server, where I'd like to use
> vim and its syntax highlight. However, I cannot figure out, why it
> doesn't work for me.
>
> I googled for an hour by now, read all similar forum posts and read all
> through
> http://vimdoc.sourceforge.net/htmldoc/usr_06.html#06.1
> and
> http://vimdoc.sourceforge.net/htmldoc/syntax.html#xterm-color
>
> Tried (almost) everythnig describe there, but still no effect.
>
> Some helpful info:
> - When I type "ls" (in bash), I see colored results (directories,
> symlinks, etc.)
> - filetype is correctly detected (typing :set filetype prints out
> correctly "filetype=perl"
> - when I type ":hi Normal ctermfg=green", all text is green
> - when I type ":hi Comment ctermfg=Cyan", nothnig happens.
> - when I type ":syntax" (in Vim), it says "No Syntax items defined for
> this buffer"
>
> Probably the parser would't work well? Doesn't recognize perl comments
> and other structures (functions, variables, ...)? Just an idea, don't
> have a clue, what the reason is.
>
> Has somebody some idea please?
>
> Thanks and HAND
> Alex

After reading this whole thread, and after the ":version" output told me 
you're probably (like me) running SuSE or openSUSE Linux, here is what I 
suggest (based on openSUSE 11.2 which has just been released and which I 
installed today -- I don't expect package names to be very different in 
recent releases, and YaST exists since earlier than I've known SuSE, 
which dates back to SuSE 6.4, long before I knew about Vim):

1. Start up YaST => Software => Software Management, and make sure that 
both "vim-base" and "vim-data" packages are installed as well as one or 
more (and possibly all three) of vim, vim-enhanced and gvim. If you 
installed from a CD or DVD, you may have to have it at hand and use it 
in order to add packages. If you installed from an ISO image on a hard 
drive, and that ISO image is still there (and mounted), YaST will find 
any needed packages without asking you anything. If you installed from 
the Net, and your SuSE version is still supported, YAST will also find 
it provided that your modem is connected.
2. If you added any missing package(s), let YaST (the Software 
Management window) run and close itself, but *don't* close the YaST2 
Control Center, and immediately run the "Online Update" function. If it 
proposes any patches, these are for packages you already have installed: 
click "Accept" and let it run its course.
3. In your vimrc, remove the set runtimepath= line, and make sure that 
your vimrc contains one (but not both) of

        runtime vimrc_example.vim

or

        filetype plugin indent on
        syntax on

where the word "indent" is optional -- omit it if you don't want Vim to 
decide without your say-so how your files should be indented; include it 
if you want Vim to "prettify" your indentation according to whatever 
filetype-related indenting rules it comes with.
4. Restart Vim.
5. If you still have problems, come back here and describe them in as 
much detail as you can.


Best regards,
Tony.
-- 
Those who make peaceful revolution impossible will make violent
revolution inevitable.
                -- John F. Kennedy

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

Reply via email to