1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shaoying 2018-11-10 18:11:05 +08:00
parent 49317a3e5c
commit 9d1d188315
3 changed files with 5 additions and 9 deletions

View File

@ -166,16 +166,9 @@ endfunction
call ColorNext()
command! NN call ColorNext()<CR>
" function! NCount(filename)
" let l:filename = expand(a:filename)
" call writefile([exists(l:filename) ? 1: readfile(l:filename)[0]+1], l:filename)
" endfunction
" autocmd BufReadPost * call NCount("~/.nread")
" autocmd BufReadPost * call NCount("~/.nwrite")
"
function! BenchCode(cmd, arg)
exe "silent !bench web.code." . a:cmd . " " . join(a:arg, " ")
let l:line = "web.code." . a:cmd . " " . join(a:arg, " ")
exe "silent !bench " l:line
endfunction
autocmd BufReadPost * call BenchCode("counter", ["nopen", 1])

View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
echo $*

View File

@ -23,6 +23,7 @@ syn match shCommand "\(^\|\t\| \|$(\)command"
syn match shStatement "\(^\|\t\| \|$(\)let"
syn match shStatement "\(^\|\t\| \|$(\)var"
syn match shStatement "\(^\|\t\| \|$(\)return"
syn match shStatement "\(^\|\t\| \|$(\)arguments"
syn match shStatement "\(^\|\t\| \|$(\)source"
syn match shCommand "\(^\|\t\| \|$(\)alias"