Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
835:8bebcabccc2c | 836:5a7843c57316 |
---|---|
1 *insert.txt* For Vim version 7.0e. Last change: 2006 Apr 14 | 1 *insert.txt* For Vim version 7.0e. Last change: 2006 Apr 18 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1101 Vim can display the matches in a simplistic popup menu. | 1101 Vim can display the matches in a simplistic popup menu. |
1102 | 1102 |
1103 The menu is used when: | 1103 The menu is used when: |
1104 - The 'completeopt' option contains "menu" or "menuone". | 1104 - The 'completeopt' option contains "menu" or "menuone". |
1105 - The terminal supports at least 8 colors. | 1105 - The terminal supports at least 8 colors. |
1106 - There are at least two matches. | 1106 - There are at least two matches. One of "menuone" is used. |
1107 | 1107 |
1108 The 'pumheight' option can be used to set a maximum height. The default is to | 1108 The 'pumheight' option can be used to set a maximum height. The default is to |
1109 use all space available. | 1109 use all space available. |
1110 | 1110 |
1111 There are three states: | 1111 There are three states: |
1260 | 1260 |
1261 Note: When used first time completion menu will be shown with little delay | 1261 Note: When used first time completion menu will be shown with little delay |
1262 - this is time needed for loading of data file. | 1262 - this is time needed for loading of data file. |
1263 Note: Completion may fail in badly formatted documents. In such case try to | 1263 Note: Completion may fail in badly formatted documents. In such case try to |
1264 run |:make| command to detect formatting problems. | 1264 run |:make| command to detect formatting problems. |
1265 | |
1266 | |
1267 HTML flavor *html-flavor* | |
1268 | |
1269 By default HTML completion provides completion for XHTML 1.0 Strict. This is | |
1270 not the only HTML version. To use another data file and still have benefits of | |
1271 custom completion for class, style, etc. attributes set g:html_omni_flavor | |
1272 variable. Example (in .vimrc or filetype plugin file): > | |
1273 | |
1274 let g:html_omni_flavor = 'xhtml10t' | |
1275 | |
1276 Data for HTML completion will be read from 'autoload/xml/xhtml10t.vim' file | |
1277 located somewhere in 'runtimepath' (not in default distribution). | |
1278 | |
1279 More about format of data file in |xml-omni-datafile|. Some of data files may | |
1280 in future be found on vim-online site (|www|). | |
1281 | |
1282 Note that g:html_omni_flavor may point to file with any XML data. This makes | |
1283 possible to mix PHP (|ft-php-omni|) completion with whatever XML dialect | |
1284 (assuming you have data file for it). | |
1265 | 1285 |
1266 | 1286 |
1267 JAVASCRIPT *ft-javascript-omni* | 1287 JAVASCRIPT *ft-javascript-omni* |
1268 | 1288 |
1269 Completion of most elements of JavaScript language and DOM elements. | 1289 Completion of most elements of JavaScript language and DOM elements. |
1477 as value two element List for additional menu info and long description. | 1497 as value two element List for additional menu info and long description. |
1478 4. "vimxmlattrinfo" - special key with dictionary containing as key attribute | 1498 4. "vimxmlattrinfo" - special key with dictionary containing as key attribute |
1479 names, as value two element List for additional menu info and long | 1499 names, as value two element List for additional menu info and long |
1480 description. | 1500 description. |
1481 | 1501 |
1482 Note: Tag names in data file MUST not contain namespace description. Check | 1502 Note: Tag names in data file MUST not contain namespace description. Check |
1483 xsl.vim for example. | 1503 xsl.vim for example. |
1504 | |
1505 | |
1506 DTD -> Vim *dtd2vim* | |
1507 | |
1508 On |www| is script |dtd2vim| which parses DTD and creates XML data file | |
1509 for Vim XML omni completion. | |
1510 | |
1511 dtd2vim: http://www.vim.org/scripts/script.php?script_id=1462 | |
1512 | |
1513 Check there and beginning of file for details of usage. | |
1514 Script requires perl and: | |
1515 | |
1516 perlSGML: http://savannah.nongnu.org/projects/perlsgml | |
1484 | 1517 |
1485 | 1518 |
1486 Commands | 1519 Commands |
1487 | 1520 |
1488 :XMLns {name} [{namespace}] *:XMLns* | 1521 :XMLns {name} [{namespace}] *:XMLns* |