[linux] Vim a HTML

Peter Surda pict-byte na EUnet.at
Úterý Srpen 24 13:00:15 CEST 1999


On Tue, Aug 24, 1999 at 11:16:56AM +0200, milan na soso.elas.sk wrote:

> Ako nastavit vim aby robil vysvecovanie syntaxe pre HTML?
> 
> Vdaka

A ine typy ti farbi? Ak nie, napis do .vimrc (.gvimrc) nieco ako

--------
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
  syntax on
  set hlsearch
endif
------------

a v /usr/share/vim/syntax/syntax.vim

--------
  " HTML (.shtml for server side)
  au BufNewFile,BufRead *.html,*.htm,*.shtml	so $VIM/syntax/html.vim
--------

Inac tiez by nezaskodilo pozriet si /usr/doc/vim*/*vimrc_example.

Prave vsimam ze nahodou mam aj vybraty vhodny tagline :-))

Bye,

Peter Surda (Shurdeek) <surda na bigfoot.com>

--
            Secret hacker rule #11: hackers read manuals.



Další informace o konferenci linux