PYENV prompt.
[profile.git] / .vim / plugin / unicode.vim
1 " unicodePlugin : A completion plugin for Unicode glyphs
2 " Author: C.Brabandt <cb@256bit.org>
3 " Version: 0.17
4 " Copyright: (c) 2009 by Christian Brabandt
5 "            The VIM LICENSE applies to unicode.vim, and unicode.txt
6 "            (see |copyright|) except use "unicode" instead of "Vim".
7 "            No warranty, express or implied.
8 "  *** ***   Use At-Your-Own-Risk!   *** ***
9 "
10 " TODO: enable GLVS:
11 " GetLatestVimScripts: 2822 17 :AutoInstall: unicode.vim
12
13 " ---------------------------------------------------------------------
14 if version < 703
15   finish
16 endif
17 " ---------------------------------------------------------------------
18 "  Load Once: {{{1
19 if &cp || exists("g:loaded_unicodePlugin")
20  finish
21 endif
22 let g:loaded_unicodePlugin = 1
23 let s:keepcpo              = &cpo
24 set cpo&vim
25
26 let s:enableUnicodeCompletion = (exists("g:enableUnicodeCompletion") ? g:enableUnicodeCompletion : 0)
27 " ------------------------------------------------------------------------------
28 " Public Interface: {{{1
29 com! EnableUnicodeCompletion call unicode#Init(1)
30 com! DisableUnicodeCompletion call unicode#Init(0)
31 com! -nargs=? UnicodeName call unicode#GetUniChar(<q-args>)
32 com! -nargs=? -bang Digraphs call unicode#OutputDigraphs(<q-args>, <q-bang>)
33
34 if s:enableUnicodeCompletion
35     exe "call unicode#Init(s:enableUnicodeCompletion)"
36     "let s:enableUnicodeCompletion = !s:enableUnicodeCompletion
37 endif
38
39 " =====================================================================
40 " Restoration And Modelines: {{{1
41 " vim: fdm=marker
42 let &cpo= s:keepcpo
43 unlet s:keepcpo