Permalink
Browse files

updated for version 7.0c03

  • Loading branch information...
1 parent 84df6f4 commit 7dd92ca62c79d24898c32b0215da9f36968a192e vimboss committed Mar 29, 2006

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,8 +1,8 @@
" Vim completion script
" Language: All languages, uses existing syntax highlighting rules
" Maintainer: David Fishburn <fishburn@ianywhere.com>
-" Version: 1.2
-" Last Change: Sat Mar 18 2006 8:25:30 PM
+" Version: 1.3
+" Last Change: Mon Mar 27 2006 9:29:35 PM
" Set completion with CTRL-X CTRL-O to autoloaded function.
" This check is in place in case this script is
@@ -181,7 +181,7 @@ function! OmniSyntaxList()
if get_syn_list == 1
" Pass in the full syntax listing, plus the group name we
" are interested in.
- let extra_syn_list = s:SyntaxGroupItems(group_name, syntax_full)
+ let extra_syn_list = s:SyntaxCSyntaxGroupItems(group_name, syntax_full)
let syn_list = syn_list . extra_syn_list . "\n"
endif
@@ -212,7 +212,7 @@ function! OmniSyntaxList()
endif
endfunction
-function! s:SyntaxGroupItems( group_name, syntax_full )
+function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
let syn_list = ""
View
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 7.0c. Last change: 2006 Mar 26
+*eval.txt* For Vim version 7.0c. Last change: 2006 Mar 29
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1501,6 +1501,7 @@ append( {lnum}, {list}) Number append lines {list} below line {lnum}
argc() Number number of files in the argument list
argidx() Number current index in the argument list
argv( {nr}) String {nr} entry of the argument list
+argv( ) List the argument list
browse( {save}, {title}, {initdir}, {default})
String put up a file requester
browsedir( {title}, {initdir}) String put up a directory requester
@@ -1767,7 +1768,7 @@ argidx() The result is the current index in the argument list. 0 is
the first file. argc() - 1 is the last one. See |arglist|.
*argv()*
-argv({nr}) The result is the {nr}th file in the argument list of the
+argv([{nr}]) The result is the {nr}th file in the argument list of the
current window. See |arglist|. "argv(0)" is the first one.
Example: >
:let i = 0
@@ -1776,7 +1777,9 @@ argv({nr}) The result is the {nr}th file in the argument list of the
: exe 'amenu Arg.' . f . ' :e ' . f . '<CR>'
: let i = i + 1
:endwhile
-<
+< Without the {nr} argument a |List| with the whole |arglist| is
+ returned.
+
*browse()*
browse({save}, {title}, {initdir}, {default})
Put up a file requester. This only works when "has("browse")"
View
@@ -1,4 +1,4 @@
-*fold.txt* For Vim version 7.0c. Last change: 2005 Sep 10
+*fold.txt* For Vim version 7.0c. Last change: 2006 Mar 29
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -109,6 +109,7 @@ level of the previous line.
There must be no side effects from the expression. The text in the buffer,
cursor position, the search patterns, options etc. must not be changed.
+You can change and restore them if you are careful.
If there is some error in the expression, or the resulting value isn't
recognized, there is no error message and the fold level will be zero.
View
@@ -1,4 +1,4 @@
-*indent.txt* For Vim version 7.0c. Last change: 2005 Aug 30
+*indent.txt* For Vim version 7.0c. Last change: 2006 Mar 29
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -68,7 +68,7 @@ as follows:
"e" if you type the second 'e' for an "else" at the start of a
line
-Characters that can precede each key:
+Characters that can precede each key: *i_CTRL-F*
! When a '!' precedes the key, Vim will not insert the key but will
instead reindent the current line. This allows you to define a
command key for reindenting the current line. CTRL-F is the default
View
@@ -1,4 +1,4 @@
-*insert.txt* For Vim version 7.0c. Last change: 2006 Mar 28
+*insert.txt* For Vim version 7.0c. Last change: 2006 Mar 29
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1214,11 +1214,11 @@ are included.
CSS *ft-css-omni*
Complete properties and their appropriate values according to CSS 2.1
-specification.
+specification.
-HTML and XHTML *ft-html-omni*
- *ft-xhtml-omni*
+HTML *ft-html-omni*
+XHTML *ft-xhtml-omni*
CTRL-X CTRL-O provides completion of various elements of (X)HTML files. It is
designed to support writing of XHTML 1.0 Strict files but will also works for
@@ -1239,12 +1239,12 @@ other versions of HTML. Features:
- when used after "</" CTRL-X CTRL-O will close the last opened tag
Note: When used first time completion menu will be shown with little delay
-- this is time needed for loading of data file.
+- this is time needed for loading of data file.
Note: Completion may fail in badly formatted documents. In such case try to
run |:make| command to detect formatting problems.
-JAVASCRIPT *ft-javascript-omni*
+JAVASCRIPT *ft-javascript-omni*
Completion of most elements of JavaScript language and DOM elements.
@@ -1260,27 +1260,27 @@ Complete:
Completion works in separate JavaScript files (&ft==javascript), inside of
<script> tag of (X)HTML and in values of event attributes (including scanning
of external files.
-
+
DOM compatibility
At the moment (beginning of 2006) there are two main browsers - MS Internet
Explorer and Mozilla Firefox. These two applications are covering over 90% of
market. Theoretically standards are created by W3C organisation
(http://www.w3c.org) but they are not always followed/implemented.
- IE FF W3C Omni completion ~
- +/- +/- + + ~
- + + - + ~
- + - - - ~
- - + - - ~
+ IE FF W3C Omni completion ~
+ +/- +/- + + ~
+ + + - + ~
+ + - - - ~
+ - + - - ~
Regardless from state of implementation in browsers but if element is defined
in standards, completion plugin will place element in suggestion list. When
both major engines implemented element, even if this is not in standards it
will be suggested. All other elements are not placed in suggestion list.
-PHP *ft-php-omni*
+PHP *ft-php-omni*
Completion of PHP code requires tags file for completion of data from external
files. You should use Exuberant ctags version 5.5.4 or newer. You can find it
@@ -1317,15 +1317,15 @@ This uses the current syntax highlighting for completion. It can be used for
any filetype and provides a minimal language-sensitive completion.
To enable syntax code completion you can run: >
- setlocal omnifunc=syntaxcomplete#Complete
+ setlocal omnifunc=syntaxcomplete#Complete
You can automate this by placing the following in your vimrc (after any
":filetype" command): >
if has("autocmd") && exists("+omnifunc")
- autocmd Filetype *
- \ if &omnifunc == "" |
- \ setlocal omnifunc=syntaxcomplete#Complete |
- \ endif
+ autocmd Filetype *
+ \ if &omnifunc == "" |
+ \ setlocal omnifunc=syntaxcomplete#Complete |
+ \ endif
endif
The above will set completion to this script only if a specific plugin does
@@ -1368,6 +1368,14 @@ You can create as many of these variables as you need, varying only the
filetype at the end of the variable name.
+SQL *ft-sql-omni*
+
+Completion for the SQL language includes statements, functions, keywords.
+It will also dynamically complete tables, procedures, views and column lists
+with data pulled directly from within a database. For detailed instructions
+and a tutorial see |omni-sql-completion|.
+
+
XML *ft-xml-omni*
Vim 7 provides mechanism to context aware completion of XML files. It depends
@@ -1394,9 +1402,9 @@ which will not create conflicts in future. For example name xhtml10s.vim means
it is data file for XHTML 1.0 Strict.
File contains one variable with fixed name: g:xmldata_xhtml10s . It is
-compound from two parts:
+compound from two parts:
-1. "g:xmldata_" general prefix
+1. "g:xmldata_" general prefix
2. "xhtml10s" name of file and name of described XML dialect
Part two must be exactly the same as name of file.
@@ -1407,14 +1415,14 @@ of possible children, second element is |Dictionary| with names of attributes
as keys and possible values of attributes as values. Example: >
let g:xmldata_crippledhtml = {
- \ "html":
- \ [ ["body", "head"], {"id": [], "xmlns": ["http://www.w3.org/1999/xhtml"],
- \ "lang": [], "xml:lang": [], "dir": ["ltr", "rtl"]}],
- \ "script":
- \ [ [], {"id": [], "charset": [], "type": ["text/javascript"], "src": [],
+ \ "html":
+ \ [ ["body", "head"], {"id": [], "xmlns": ["http://www.w3.org/1999/xhtml"],
+ \ "lang": [], "xml:lang": [], "dir": ["ltr", "rtl"]}],
+ \ "script":
+ \ [ [], {"id": [], "charset": [], "type": ["text/javascript"], "src": [],
\ "defer": ["BOOL"], "xml:space": ["preserve"]}],
- \ "meta":
- \ [ [], {"id": [], "http-equiv": [], "name": [], "content": [], "scheme":
+ \ "meta":
+ \ [ [], {"id": [], "http-equiv": [], "name": [], "content": [], "scheme":
\ [], "lang": [], "xml:lang": [], "dir": ["ltr", "rtl"]}]
\ "vimxmlentities": ["amp", "lt", "gt", "apos", "quot"]},
\ "vimxmltaginfo": {
View
@@ -1,4 +1,4 @@
-*mbyte.txt* For Vim version 7.0c. Last change: 2006 Mar 05
+*mbyte.txt* For Vim version 7.0c. Last change: 2006 Mar 29
VIM REFERENCE MANUAL by Bram Moolenaar et al.
@@ -1076,6 +1076,7 @@ also add this line: >
'' '
Since the mapping is defined with |:lnoremap| the resulting quote will not be
used for the start of another character.
+The "accents" keymap uses this. *keymap-accents*
Although it's possible to have more than one character in the second column,
this is unusual. But you can use various ways to specify the character: >
View
@@ -1,4 +1,4 @@
-*options.txt* For Vim version 7.0c. Last change: 2006 Mar 26
+*options.txt* For Vim version 7.0c. Last change: 2006 Mar 29
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2077,6 +2077,8 @@ A jump table for the options with a short description can be found at |Q_op|.
Highlight the screen line of the cursor with CursorLine
|hl-CursorLine|. Useful to easily spot the cursor. Will make screen
redrawing slower.
+ When Visual mode is active the highlighting isn't used to make it
+ easier to spot where the selected area.
*'debug'*
View
@@ -1,4 +1,4 @@
-*os_mac.txt* For Vim version 7.0c. Last change: 2006 Mar 26
+*os_mac.txt* For Vim version 7.0c. Last change: 2006 Mar 29
VIM REFERENCE MANUAL by Bram Moolenaar et al.
@@ -86,6 +86,14 @@ A: Assuming that Vim.app is located in /Applications:
Or:
/Applications/Vim.app/Contents/MacOS/Vim -g {arguments}
+Q: How can I set $PATH to something reasonable when I start Vim.app from the
+ GUI or with open?
+A: The following trick works with most shells. Put it in your vimrc file.
+ This is included in the system vimrc file included with the binaries
+ distributed at macvim.org . >
+ let s:path = system("echo echo VIMPATH'${PATH}' | $SHELL -l")
+ let $PATH = matchstr(s:path, 'VIMPATH\zs.\{-}\ze\n')
+
==============================================================================
4. Mac Lack *mac-lack*
View
@@ -1,4 +1,4 @@
-*pi_paren.txt* For Vim version 7.0c. Last change: 2006 Mar 24
+*pi_paren.txt* For Vim version 7.0c. Last change: 2006 Mar 29
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -38,5 +38,9 @@ in a string or comment syntax item, then matches inside string and comment
syntax items are ignored. Any syntax items with "string" or "comment"
somewhere in their name are considered string or comment items.
+The search is limited to what is visible in the window. The plugin doesn't
+search further than 100 lines to avoid a long delay when there are closed
+folds.
+
==============================================================================
vim:tw=78:ts=8:ft=help:norl:
View
@@ -1,4 +1,4 @@
-*sponsor.txt* For Vim version 7.0c. Last change: 2006 Mar 24
+*sponsor.txt* For Vim version 7.0c. Last change: 2006 Mar 29
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -13,7 +13,7 @@ working on Vim please send a donation.
Since Bram is back to a paid job the money will now be used to help children
in Uganda. See |uganda|. But at the same time donations increase Bram's
-motivation to work on Vim!
+motivation to keep working on Vim!
For the most recent information about sponsoring look on the Vim web site:
@@ -93,7 +93,7 @@ QUESTIONS AND ANSWERS *sponsor-faq* *register-faq*
Why should I give money?
If you do not show your appreciation for Vim then Bram will be less motivated
-to fix bugs and add new features.
+to fix bugs and add new features. He will do something else instead.
How much money should I send?
@@ -177,6 +177,12 @@ You can change your votes any time you like, up to two years after you
sent money. The points will be counted right away.
+Can I add an item to vote on?
+
+Not directly. You can suggest items to vote on to Bram. He will consider
+fitting your item into the list.
+
+
How about Charityware?
Currently the Vim donations go to |uganda| anyway. Thus it doesn't matter if
@@ -202,7 +208,9 @@ let him know that the donation is done because of the use of Vim.
Can you send me a bill?
-No. But a receipt is possible.
+No, because there is no relation between the money you send and the work that
+is done. But a receipt is possible.
+
vim:tw=78:ts=8:ft=help:norl:
Oops, something went wrong.

0 comments on commit 7dd92ca

Please sign in to comment.