Author Topic: (G)VIm and Syntax Highlighting  (Read 4680 times)

0 Members and 2 Guests are viewing this topic.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
(G)VIm and Syntax Highlighting
« on: September 09, 2006, 05:21:43 pm »
I try to turn on syntax highlighting in GVIm, but all I get is "No Syntax items defined for this buffer", despite
/usr/share/vim/vim63/syntax/dcd.vim
/usr/share/vim/vim63/syntax/ampl.vim
/usr/share/vim/vim63/syntax/dcl.vim
/usr/share/vim/vim63/syntax/xkb.vim
/usr/share/vim/vim63/syntax/latte.vim
/usr/share/vim/vim63/syntax/xhtml.vim
/usr/share/vim/vim63/syntax/manual.vim
/usr/share/vim/vim63/syntax/master.vim
/usr/share/vim/vim63/syntax/def.vim
/usr/share/vim/vim63/syntax/gnuplot.vim
/usr/share/vim/vim63/syntax/tcsh.vim
/usr/share/vim/vim63/syntax/whitespace.vim
/usr/share/vim/vim63/syntax/lite.vim
/usr/share/vim/vim63/syntax/lisp.vim
/usr/share/vim/vim63/syntax/asm68k.vim
/usr/share/vim/vim63/syntax/cpp.vim
etc...

It's really bugging me -.-

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: (G)VIm and Syntax Highlighting
« Reply #1 on: September 09, 2006, 05:59:35 pm »
Does syntax highlighting work in vim?  I'd imagine not, but just verifying...

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: (G)VIm and Syntax Highlighting
« Reply #2 on: September 09, 2006, 06:22:59 pm »
Nope.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: (G)VIm and Syntax Highlighting
« Reply #3 on: September 09, 2006, 06:40:53 pm »
sidoh@muaddib:~$ whereis vim
vim: /usr/bin/vim /usr/share/vim /usr/man/man1/vim.1.gz /usr/share/man/man1/vim.1.gz

Do you get similar results?

Offline nslay

  • Hero Member
  • *****
  • Posts: 786
  • Giraffe meat, mmm
    • View Profile
Re: (G)VIm and Syntax Highlighting
« Reply #4 on: September 09, 2006, 07:41:22 pm »
Escape from input mode (use esc)
and type:
:syn on

EDIT: For learning vim, try 'vimtutor'

EDIT 2: Ah n/m :(
« Last Edit: September 09, 2006, 07:43:31 pm by nslay »
An adorable giant isopod!

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: (G)VIm and Syntax Highlighting
« Reply #5 on: September 09, 2006, 08:18:21 pm »
Escape from input mode (use esc)
and type:
:syn on
That's what I'm doing!

sidoh@muaddib:~$ whereis vim
vim: /usr/bin/vim /usr/share/vim /usr/man/man1/vim.1.gz /usr/share/man/man1/vim.1.gz

Do you get similar results?
[spencer@asimov ~]$ whereis vim
vim: /usr/bin/vim /usr/share/vim /usr/man/man1/vim.1.gz /usr/share/man/man1/vim.1.gz


[edit]
It's working now?  I didn't do anything.  Whatever.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: (G)VIm and Syntax Highlighting
« Reply #6 on: September 09, 2006, 10:35:26 pm »
Hahah, strange.  Did you reboot or anything like that?

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: (G)VIm and Syntax Highlighting
« Reply #7 on: September 09, 2006, 10:41:03 pm »
Nope!  I just left to play some CS, came back about an hour later, and it was highlighting :\

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: (G)VIm and Syntax Highlighting
« Reply #8 on: September 09, 2006, 10:45:52 pm »
Nope!  I just left to play some CS, came back about an hour later, and it was highlighting :\

You reminded it "whereitis."