mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
try
This commit is contained in:
parent
49317a3e5c
commit
9d1d188315
@ -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])
|
||||
|
2
etc/dotsfile/git_hooks/post-commit
Executable file
2
etc/dotsfile/git_hooks/post-commit
Executable file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
echo $*
|
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user