mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
01d3627f60
commit
34f06c9231
@ -129,7 +129,6 @@ fun! ShyComplete(firststart, base)
|
|||||||
" 命令位置
|
" 命令位置
|
||||||
if match(trim(line), "ice ") == 0 | return match(line, "ice ") | endif
|
if match(trim(line), "ice ") == 0 | return match(line, "ice ") | endif
|
||||||
" 符号位置
|
" 符号位置
|
||||||
call ShyLog("what", line[start-1], line[start-1] !~ '\a')
|
|
||||||
if line[start-1] !~ '\a' | return start - 1 | end
|
if line[start-1] !~ '\a' | return start - 1 | end
|
||||||
" 单词位置
|
" 单词位置
|
||||||
while start > 0 && line[start - 1] =~ '\a' | let start -= 1 | endwhile
|
while start > 0 && line[start - 1] =~ '\a' | let start -= 1 | endwhile
|
||||||
@ -139,8 +138,11 @@ fun! ShyComplete(firststart, base)
|
|||||||
" 符号转换
|
" 符号转换
|
||||||
if a:base == "," | return [",", ","] | end
|
if a:base == "," | return [",", ","] | end
|
||||||
if a:base == "." | return ["。", "."] | end
|
if a:base == "." | return ["。", "."] | end
|
||||||
|
if a:base == "\\" | return ["、", "\\"] | end
|
||||||
" 单词转换
|
" 单词转换
|
||||||
return ShyTrans(a:base)
|
let list = ShyTrans(a:base)
|
||||||
|
call ShyLog("trans", a:base, list)
|
||||||
|
return list
|
||||||
endfun
|
endfun
|
||||||
set completefunc=ShyComplete
|
set completefunc=ShyComplete
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user