comparison runtime/doc/insert.txt @ 856:8cd729851562 v7.0g

updated for version 7.0g
author vimboss
date Sun, 30 Apr 2006 18:54:39 +0000
parents d3bbb5dd3913
children b933657f7c9d
comparison
equal deleted inserted replaced
855:d2a4f08396fe 856:8cd729851562
1 *insert.txt* For Vim version 7.0f. Last change: 2006 Apr 26 1 *insert.txt* For Vim version 7.0g. Last change: 2006 Apr 30
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1349 name of class 1349 name of class
1350 - after "->" complete only function and variable names specific for given 1350 - after "->" complete only function and variable names specific for given
1351 class. To find class location and contents tags file is required. Because 1351 class. To find class location and contents tags file is required. Because
1352 PHP isn't strongly typed language user can use @var tag to declare class: > 1352 PHP isn't strongly typed language user can use @var tag to declare class: >
1353 1353
1354 /* @var $myVar myClass */ 1354 /* @var $myVar myClass */
1355 $myVar-> 1355 $myVar->
1356 < 1356 <
1357 Still, to find myClass contents tags file is required. 1357 Still, to find myClass contents tags file is required.
1358 1358
1359 - function names with additional info: 1359 - function names with additional info:
1373 Script detects if cursor is inside <?php ?> tags. If it is outside it will 1373 Script detects if cursor is inside <?php ?> tags. If it is outside it will
1374 automatically switch to HTML/CSS/JavaScript completion. Note: contrary to 1374 automatically switch to HTML/CSS/JavaScript completion. Note: contrary to
1375 original HTML files completion of tags (and only tags) isn't context aware. 1375 original HTML files completion of tags (and only tags) isn't context aware.
1376 1376
1377 1377
1378 RUBY *ft-ruby-omni* 1378 RUBY *ft-ruby-omni*
1379 1379
1380 Completion of Ruby code requires that vim be built with |+ruby|. 1380 Completion of Ruby code requires that vim be built with |+ruby|.
1381 1381
1382 Ruby completion will parse your buffer on demand in order to provide a list of 1382 Ruby completion will parse your buffer on demand in order to provide a list of
1383 completions. These completions will be drawn from modules loaded by 'require' 1383 completions. These completions will be drawn from modules loaded by 'require'
1384 and modules defined in the current buffer. 1384 and modules defined in the current buffer.
1385 1385
1386 The completions provided by CTRL-X CTRL-O are sensitive to the context: 1386 The completions provided by CTRL-X CTRL-O are sensitive to the context:
1387 1387
1388 CONTEXT COMPLETIONS PROVIDED ~ 1388 CONTEXT COMPLETIONS PROVIDED ~
1389 1389
1390 1. Not inside a class definition Classes, constants and globals 1390 1. Not inside a class definition Classes, constants and globals
1391 1391
1392 2. Inside a class definition Methods or constants defined in the class 1392 2. Inside a class definition Methods or constants defined in the class
1393 1393
1394 3. After '.', '::' or ':' Methods applicable to the object being 1394 3. After '.', '::' or ':' Methods applicable to the object being
1395 dereferenced 1395 dereferenced
1396 1396
1397 4. After ':' or ':foo' Symbol name (beginning with 'foo') 1397 4. After ':' or ':foo' Symbol name (beginning with 'foo')
1398 1398
1399 Notes: 1399 Notes:
1400 - Vim will load/evaluate code in order to provide completions. This may 1400 - Vim will load/evaluate code in order to provide completions. This may
1401 cause some code execution, which may be a concern. 1401 cause some code execution, which may be a concern.
1402 - In context 1 above, Vim can parse the entire buffer to add a list of 1402 - In context 1 above, Vim can parse the entire buffer to add a list of
1555 1555
1556 Note: Tag names in data file MUST not contain namespace description. Check 1556 Note: Tag names in data file MUST not contain namespace description. Check
1557 xsl.vim for example. 1557 xsl.vim for example.
1558 1558
1559 1559
1560 DTD -> Vim *dtd2vim* 1560 DTD -> Vim *dtd2vim*
1561 1561
1562 On |www| is script |dtd2vim| which parses DTD and creates XML data file 1562 On |www| is script |dtd2vim| which parses DTD and creates XML data file
1563 for Vim XML omni completion. 1563 for Vim XML omni completion.
1564 1564
1565 dtd2vim: http://www.vim.org/scripts/script.php?script_id=1462 1565 dtd2vim: http://www.vim.org/scripts/script.php?script_id=1462
1566 1566
1567 Check there and beginning of file for details of usage. 1567 Check there and beginning of file for details of usage.
1568 Script requires perl and: 1568 Script requires perl and:
1569 1569
1570 perlSGML: http://savannah.nongnu.org/projects/perlsgml 1570 perlSGML: http://savannah.nongnu.org/projects/perlsgml
1571 1571
1572 1572
1573 Commands 1573 Commands