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-06-15 00:56:16 +08:00
parent 8f5d0317fc
commit 3578f44294
5 changed files with 12 additions and 10 deletions

View File

@ -11,8 +11,8 @@ highlight shyContext ctermfg=red
syntax match shyContext "\~[a-z\.]\+"
highlight shyCommand ctermfg=green
syntax match shyCommand "^ \a*"
syntax match shyCommand "^\a\+"
syntax match shyCommand "^ [a-zA-Z0-9:._]\+"
syntax match shyCommand "^[a-zA-Z0-9:._]\+"
highlight shyConfig ctermfg=yellow
syntax match shyConfig "^ config"

View File

@ -121,6 +121,8 @@ function! Config(type)
elseif a:type == "shy"
set filetype=shy
set commentstring=#%s
elseif a:type == "son"
set commentstring=#%s
elseif a:type == "tmpl"
set foldmethod=indent
elseif a:type == "conf"
@ -157,7 +159,7 @@ autocmd BufNewFile,BufReadPost *.js call Config("js")
autocmd BufReadPost * normal `"
if filereadable(expand("~/.vim_local")) | source ~/.vim_local | endif
if filereadable(expand("./etc/miss.vim")) | source ./etc/miss.vim | endif
if filereadable(expand("usr/publish/auto.vim")) | source usr/publish/auto.vim | endif
colorscheme torte
highlight Comment ctermfg=cyan ctermbg=darkblue
@ -176,3 +178,4 @@ nnoremap <F3> :NERDTreeToggle<CR>
" syntax match kitMiss ".*"
" syntax match kitMiss "\".*\""

View File

@ -33,8 +33,7 @@
init
~web.code.input
load usr/wubi-dict/person
load
# import usr/wubi-dict/person
# ~web.wiki.alpha
# load
@ -46,3 +45,4 @@
~ssh
source etc/local.shy
target web.code.input.load

5
hi.sh
View File

@ -1,5 +0,0 @@
#!/bin/bash
git clone https://github.com/shylinux/toolkits usr/toolkits
git clone https://github.com/shylinux/icebergs usr/icebergs
git clone https://github.com/shylinux/volcanos usr/volcanos

View File

@ -13,6 +13,10 @@ Volcanos("onengine", { river: {
"aaa.totp.get",
"web.route",
]},
"性能": {name: "性能", index: [
"web.code.bench",
"web.code.pprof",
]},
"trans": {name: "翻译", action: [
{name: "english", help: "英文", inputs: [
{type: "text", name: "word", value: "miss"},