" Vimball Archiver by Charles E. Campbell, Ph.D. UseVimball finish plugin/engspchk.vim [[[1 1755 " engspchk.vim: Vim syntax file " Language: depends on what dictionaries you have; comes with English " Author: Charles E Campbell " Date: Feb 22, 2011 - Jan 07, 2020 " Version: 65 " Copyright: Copyright (C) 1999-2011 Charles E. Campbell {{{1 " Permission is hereby granted to use and distribute this code, " with or without modifications, provided that this copyright " notice is copied with it. Like anything else that's free, " engspchk.vim is provided *as is* and comes with no warranty " of any kind, either expressed or implied. By using this " plugin, you agree that in no event will the copyright " holder be liable for any damages resulting from the use " of this software. " " GetLatestVimScripts: :AutoInstall: 195 1 engspchk.vim " GetLatestVimScripts: 1066 1 cecutil.vim "------------------------------------------------------------------------------ let s:keepcpo= &cpo set cpo&vim " Determining current language (based on name of this file) {{{2 " -or- if it previously exists " ie. engspchk gerspchk nlspchk hngspchk yidspchk etc " eng ger nl hng yid " " b:spchklang: dictionary language prefix " b:spchkfile: prefix based on name of this file if exists("g:spchklang") let b:spchklang= substitute(g:spchklang,'spchk\.vim',"","e") let b:spchkfile= substitute(expand(":t"),'spchk\.vim',"","e") " call Decho("g:spchklang<".g:spchklang."> exists, setting up b:spchklang<".b:spchklang."> and b:spchkfile<".b:spchkfile.">") else let b:spchklang= substitute(expand(":t"),'spchk\.vim',"","e") let b:spchkfile= b:spchklang " call Decho("g:spchklang !exists, setting up b:spchklang<".b:spchklang."> and b:spchkfile<".b:spchkfile.">") let g:spchklang = b:spchklang let g:spchkfile = b:spchkfile endif let s:spchkfile= b:spchkfile let b:Spchklang=substitute(b:spchklang,'\(.\)\(.*\)$','\u\1\2','') if !exists("g:spchklang") let g:spchklang = b:spchklang endif if !exists("g:spchkfile") let g:spchkfile = b:spchkfile endif if !exists("g:Spchklang") let g:Spchklang= b:Spchklang endif if exists("mapleader") && mapleader != "" let s:usermaplead= mapleader else let s:usermaplead= '\' endif let s:mapleadstring= escape(s:usermaplead,'\ ') " Quick load: if !exists("s:loaded_".s:spchkfile."spchk") " call Decho("Quick load: s:loaded_".s:spchkfile."spchk doesn't exist yet") let s:spchkversion = "v65" let s:loaded_{b:spchkfile}spchk= s:spchkversion let s:engspchk_loadcnt = 0 " =========================== " Pre-Loading Interface: {{{1 " =========================== " \ec invokes LoadSpchk which invokes LoadSpchk() {{{2 if !hasmapto('LoadSpchk') nmap ec LoadSpchk endif nmap