1 " unicodePlugin : A completion plugin for Unicode glyphs
2 " Author: C.Brabandt <cb@256bit.org>
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! *** ***
11 " GetLatestVimScripts: 2822 17 :AutoInstall: unicode.vim
13 " ---------------------------------------------------------------------
17 " ---------------------------------------------------------------------
19 if &cp || exists("g:loaded_unicodePlugin")
22 let g:loaded_unicodePlugin = 1
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>)
34 if s:enableUnicodeCompletion
35 exe "call unicode#Init(s:enableUnicodeCompletion)"
36 "let s:enableUnicodeCompletion = !s:enableUnicodeCompletion
39 " =====================================================================
40 " Restoration And Modelines: {{{1