1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shaoying 2020-01-21 20:04:09 +08:00
parent 01d3627f60
commit 34f06c9231
2 changed files with 7 additions and 3 deletions

View File

@ -1 +1,3 @@
hello ice world 模块化
集群化
自动化

View File

@ -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