|  | 
        
a href="down/htmlvim.vim">Herunterladen, oder kopieren: |  htmlvim.vim |  |  | 
" htmlvim.vim - erweitert VIM um HTML-FUnktionen
" Copyright (C) 2001 by Ingo Blechschmidt,
" Sam Jun 30 10:00:50 MEST 2001
"
"  This program is free software; you can redistribute it and/or modify
"  it under the terms of the GNU General Public License as published by
"  the Free Software Foundation; either version 2 of the License, or
"  (at your option) any later version.
"
"  This program is distributed in the hope that it will be useful,
"  but WITHOUT ANY WARRANTY; without even the implied warranty of
"  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
"  GNU General Public License for more details.
"
"  You should have received a copy of the GNU General Public License
"  along with this program; if not, write to the Free Software
"  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"
" Ingo Blechschmidt
" Arberstraße 5
" 86179 Augsburg
" E-Mail: iblech@web.de, http://www.way.to/uselinux/
" Tel.: +49 / 821 882955
"
" 
" Syntax Highlighting
:syntax on
:so /usr/share/vim/syntax/html.vim
" Umlaute
:imap ä ä
:imap ü ü
:imap ö ö
:imap Ä Ä
:imap Ö Ö
:imap Ü Ü
:imap ß ß
" Tags
:inoremap #h1 <h1>XXX</h1><Esc>?XXX<CR>cw
:inoremap #h2 <h2>XXX</h2><Esc>?XXX<CR>cw
:inoremap #h3 <h3>XXX</h3><Esc>?XXX<CR>cw
:inoremap #h4 <h4>XXX</h4><Esc>?XXX<CR>cw
:inoremap #h5 <h5>XXX</h5><Esc>?XXX<CR>cw
:inoremap #h6 <h6>XXX</h6><Esc>?XXX<CR>cw
:inoremap #table <table><CR>XXX<CR></table><Esc>?XXX<CR>cw
:inoremap #tr <SPACE><SPACE><tr><CR>XXX<CR></tr><Esc>?XXX<CR>cw
:inoremap #td <SPACE><SPACE><SPACE><SPACE><td>XXX</td><Esc>?XXX<CR>cw
:inoremap #th <SPACE><SPACE><SPACE><SPACE><td>XXX</th><Esc>?XXX<CR>cw
:inoremap #img <img src="XXX" alt="" width="" height="" /><Esc>?XXX<CR>cw
:inoremap #red <font color="red">XXX</font><Esc>?XXX<CR>cw
:inoremap #blue <font color="blue">XXX</font><Esc>?XXX<CR>cw
:inoremap #yellow <font color="yellow">XXX</font><Esc>?XXX<CR>cw
:inoremap #green <font color="green">XXX</font><Esc>?XXX<CR>cw
:inoremap #href <a href="XXX"></a><Esc>?XXX<CR>cw
:inoremap #dl <dl><CR>XXX<CR></dl><Esc>?XXX<CR>cw
:inoremap #dt <SPACE><SPACE><dt>XXX</dt><Esc>?XXX<CR>cw
:inoremap #dd <SPACE><SPACE><dd>XXX</dd><Esc>?XXX<CR>cw
:inoremap #ol <ol><CR>XXX<CR></ol><Esc>?XXX<CR>cw
:inoremap #li <SPACE><SPACE><li>XXX</li><Esc>?XXX<CR>cw
:inoremap #ul <ul><CR>XXX<CR></ul><Esc>?XXX<CR>cw
 |  |  |  | 
 Wenn Sie nun das Makro abspeichern und mit
  :so htmlvim.vimaufrufen, stehen Ihnen folgende Kommandos zur Verfügung:
  Natürlich können Sie diese Sammlung noch erweitern. Falls SieUmlauteä, ü, ö, Ä, Ö, Ü und ß werden
  automatisch beim Tippen in die entsprechenden HTML-Entities umgewandelt.Tags
    
      #h1 bis #h6Beim Tippen wird aus #h1 der entsprechende HTML-Tag, gleich mit dem
      Cursor in der Mitte.#table, #tr, #thDiese maps ermöglichen das schnellere Tabellengestalten.#imgFügt den Tag für Bilder ein, mit automatischer
      Cursorsetzung.#red, #blue, #yellow, #greenSetzt den font-Tag.#hrefAutomatische Link-Setzung#dl, #ol, #ul und #dt, #dd, #liAutomatische Listengestaltung. 
autoindentgesetzt haben, kann es Probleme mit der Einrückung
geben. Dies können Sie aber beheben, indem Sie
die<SPACE>entfernen. |  |