From 3578f442944669cf10456ba1ec10400057542d5c Mon Sep 17 00:00:00 2001 From: shaoying Date: Mon, 15 Jun 2020 00:56:16 +0800 Subject: [PATCH] opt some --- etc/conf/shy.vim | 4 ++-- etc/conf/vimrc | 5 ++++- etc/init.shy | 4 ++-- hi.sh | 5 ----- usr/publish/order.js | 4 ++++ 5 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 hi.sh diff --git a/etc/conf/shy.vim b/etc/conf/shy.vim index 20c1529f..5c2f8422 100644 --- a/etc/conf/shy.vim +++ b/etc/conf/shy.vim @@ -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" diff --git a/etc/conf/vimrc b/etc/conf/vimrc index bd55c0fe..6e7466c0 100644 --- a/etc/conf/vimrc +++ b/etc/conf/vimrc @@ -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 :NERDTreeToggle " syntax match kitMiss ".*" " syntax match kitMiss "\".*\"" + diff --git a/etc/init.shy b/etc/init.shy index 80bb6cd5..969691ef 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -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 diff --git a/hi.sh b/hi.sh deleted file mode 100644 index acbdebe9..00000000 --- a/hi.sh +++ /dev/null @@ -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 diff --git a/usr/publish/order.js b/usr/publish/order.js index e0eb308b..9db7cb3e 100644 --- a/usr/publish/order.js +++ b/usr/publish/order.js @@ -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"},