forked from aniani/vim
updated for version 7.0229
This commit is contained in:
parent
e0fa560e6f
commit
c15ef30c08
@ -1,12 +1,18 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: All languages, uses existing syntax highlighting rules
|
" Language: All languages, uses existing syntax highlighting rules
|
||||||
" Maintainer: David Fishburn <fishburn@ianywhere.com>
|
" Maintainer: David Fishburn <fishburn@ianywhere.com>
|
||||||
" Version: 1.1
|
" Version: 1.2
|
||||||
" Last Change: Wed Mar 01 2006 9:58:14 PM
|
" Last Change: Sat Mar 18 2006 8:25:30 PM
|
||||||
|
|
||||||
" Set completion with CTRL-X CTRL-O to autoloaded function.
|
" Set completion with CTRL-X CTRL-O to autoloaded function.
|
||||||
|
" This check is in place in case this script is
|
||||||
|
" sourced directly instead of using the autoload feature.
|
||||||
if exists('+omnifunc')
|
if exists('+omnifunc')
|
||||||
setlocal omnifunc=syntaxcomplete#Complete
|
" Do not set the option if already set since this
|
||||||
|
" results in an E117 warning.
|
||||||
|
if &omnifunc == ""
|
||||||
|
setlocal omnifunc=syntaxcomplete#Complete
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists('g:loaded_syntax_completion')
|
if exists('g:loaded_syntax_completion')
|
||||||
@ -22,6 +28,7 @@ let s:syn_remove_words = 'match,matchgroup=,contains,'.
|
|||||||
|
|
||||||
let s:cache_name = []
|
let s:cache_name = []
|
||||||
let s:cache_list = []
|
let s:cache_list = []
|
||||||
|
let s:prepended = ''
|
||||||
|
|
||||||
" This function is used for the 'omnifunc' option.
|
" This function is used for the 'omnifunc' option.
|
||||||
function! syntaxcomplete#Complete(findstart, base)
|
function! syntaxcomplete#Complete(findstart, base)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: XML
|
" Language: XML
|
||||||
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||||
" Last Change: 2006 Feb 18
|
" Last Change: 2006 Mar 19
|
||||||
|
|
||||||
" This function will create Dictionary with users namespace strings and values
|
" This function will create Dictionary with users namespace strings and values
|
||||||
" canonical (system) names of data files. Names should be lowercase,
|
" canonical (system) names of data files. Names should be lowercase,
|
||||||
@ -81,8 +81,9 @@ function! xmlcomplete#CompleteTags(findstart, base)
|
|||||||
let context_lines = getline(curline-i, curline)
|
let context_lines = getline(curline-i, curline)
|
||||||
let b:compl_context = join(context_lines, ' ')
|
let b:compl_context = join(context_lines, ' ')
|
||||||
break
|
break
|
||||||
elseif context_line =~ '>[^<]*$'
|
elseif context_line =~ '>[^<]*$' || i == curline
|
||||||
" Normal tag line, no need for completion at all
|
" Normal tag line, no need for completion at all
|
||||||
|
" OR reached first line without tag at all
|
||||||
let b:compl_context = ''
|
let b:compl_context = ''
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*insert.txt* For Vim version 7.0aa. Last change: 2006 Mar 15
|
*insert.txt* For Vim version 7.0aa. Last change: 2006 Mar 19
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -993,6 +993,7 @@ Each list item can either be a string or a Dictionary. When it is a string it
|
|||||||
is used as the completion. When it is a Dictionary it can contain these
|
is used as the completion. When it is a Dictionary it can contain these
|
||||||
items:
|
items:
|
||||||
word the completion, mandatory
|
word the completion, mandatory
|
||||||
|
abbr abbreviation of "word", to be used in the menu
|
||||||
menu extra text for the popup menu
|
menu extra text for the popup menu
|
||||||
info more information about the item
|
info more information about the item
|
||||||
kind single letter indicating the type of completion
|
kind single letter indicating the type of completion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user