Mercurial > vim
diff runtime/doc/insert.txt @ 836:5a7843c57316 v7.0e02
updated for version 7.0e02
author | vimboss |
---|---|
date | Tue, 18 Apr 2006 21:55:01 +0000 |
parents | 5117153003bd |
children | 8e5830943bff |
line wrap: on
line diff
--- a/runtime/doc/insert.txt +++ b/runtime/doc/insert.txt @@ -1,4 +1,4 @@ -*insert.txt* For Vim version 7.0e. Last change: 2006 Apr 14 +*insert.txt* For Vim version 7.0e. Last change: 2006 Apr 18 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1103,7 +1103,7 @@ Vim can display the matches in a simplis The menu is used when: - The 'completeopt' option contains "menu" or "menuone". - The terminal supports at least 8 colors. -- There are at least two matches. +- There are at least two matches. One of "menuone" is used. The 'pumheight' option can be used to set a maximum height. The default is to use all space available. @@ -1264,6 +1264,26 @@ Note: Completion may fail in badly forma run |:make| command to detect formatting problems. +HTML flavor *html-flavor* + +By default HTML completion provides completion for XHTML 1.0 Strict. This is +not the only HTML version. To use another data file and still have benefits of +custom completion for class, style, etc. attributes set g:html_omni_flavor +variable. Example (in .vimrc or filetype plugin file): > + + let g:html_omni_flavor = 'xhtml10t' + +Data for HTML completion will be read from 'autoload/xml/xhtml10t.vim' file +located somewhere in 'runtimepath' (not in default distribution). + +More about format of data file in |xml-omni-datafile|. Some of data files may +in future be found on vim-online site (|www|). + +Note that g:html_omni_flavor may point to file with any XML data. This makes +possible to mix PHP (|ft-php-omni|) completion with whatever XML dialect +(assuming you have data file for it). + + JAVASCRIPT *ft-javascript-omni* Completion of most elements of JavaScript language and DOM elements. @@ -1479,10 +1499,23 @@ 4. "vimxmlattrinfo" - special key with d names, as value two element List for additional menu info and long description. -Note: Tag names in data file MUST not contain namespace description. Check +Note: Tag names in data file MUST not contain namespace description. Check xsl.vim for example. +DTD -> Vim *dtd2vim* + +On |www| is script |dtd2vim| which parses DTD and creates XML data file +for Vim XML omni completion. + + dtd2vim: http://www.vim.org/scripts/script.php?script_id=1462 + +Check there and beginning of file for details of usage. +Script requires perl and: + + perlSGML: http://savannah.nongnu.org/projects/perlsgml + + Commands :XMLns {name} [{namespace}] *:XMLns*