summaryrefslogtreecommitdiffstats
path: root/autoload/contextcomplete.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-09-28 22:18:09 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2017-09-28 22:18:09 +0200
commit27903c5b8656c796564ef073c1ebe77a2f0154e1 (patch)
tree2b0a3a14494d7976fb79a7517706e25d2a95d080 /autoload/contextcomplete.vim
parentd5e38fa97bc50a93a66473d6cd7072fbcbadda57 (diff)
downloadvim-polyglot-3.0.0.tar.gz
vim-polyglot-3.0.0.zip
Revert inlining basic language packv3.0.0
Diffstat (limited to 'autoload/contextcomplete.vim')
-rw-r--r--autoload/contextcomplete.vim29
1 files changed, 0 insertions, 29 deletions
diff --git a/autoload/contextcomplete.vim b/autoload/contextcomplete.vim
deleted file mode 100644
index d4ffa05a..00000000
--- a/autoload/contextcomplete.vim
+++ /dev/null
@@ -1,29 +0,0 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1
-
-" Language: ConTeXt typesetting engine
-" Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com>
-" Latest Revision: 2016 Oct 15
-
-let s:keepcpo= &cpo
-set cpo&vim
-
-" Complete keywords in MetaPost blocks
-function! contextcomplete#Complete(findstart, base)
- if a:findstart == 1
- if len(synstack(line('.'), 1)) > 0 &&
- \ synIDattr(synstack(line('.'), 1)[0], "name") ==# 'contextMPGraphic'
- return syntaxcomplete#Complete(a:findstart, a:base)
- else
- return -3
- endif
- else
- return syntaxcomplete#Complete(a:findstart, a:base)
- endif
-endfunction
-
-let &cpo = s:keepcpo
-unlet s:keepcpo
-
-" vim: sw=2 fdm=marker
-
-endif