摘要:
1参考 2参考 内联 静 串 a{"C:\\Users\\xxx\\_viminfo"}; //常 静 串 a;//不行的 主要是,可以内联静态串了.不用再折腾.有时静态变量很有用,又要外部来赋值.不爽. 阅读全文
posted @ 2021-09-18 14:21
zjh6
阅读(21)
评论(0)
推荐(0)
摘要:
fun! Jqhz()range "加前后缀,加代码前后缀 let[i,j]=Xqj() call Ths(i) "跳至i行 norm! O```cpp^[ call Ths(j+1) "这里的j可能变了 norm! o```^[ endf 注意这里的^[是单个符. 阅读全文
posted @ 2021-09-18 10:31
zjh6
阅读(14)
评论(0)
推荐(0)
摘要:
策略(policy)技术中的算法策略 //函数模板 template <typename T,typename U = 特征<T> > auto 函数(const T* begin, const T* end) { typename U::sumT sum = U::initValue(); for 阅读全文
posted @ 2021-09-18 10:26
zjh6
阅读(19)
评论(0)
推荐(0)
摘要:
参考地址 augroup my_cmdline_window au! au CmdWinEnter * let s:old_cmdline_hist = getline(1, line('$')-1) "旧命令行列表. au CmdWinLeave * call s:update_history() 阅读全文
posted @ 2021-09-17 20:56
zjh6
阅读(30)
评论(0)
推荐(0)
摘要:
fun! Qjgs() "取间隔数,这之间要统计中文及英文数,只能是一行内.不能跨多行. let i=getpos("'>") let j=getpos("'<") let c=Hnfs(j[2],i[2])/2 return c endf fun! Hnfs(i,j) "行内符数,这里中文算1个. 阅读全文
posted @ 2021-09-17 17:45
zjh6
阅读(18)
评论(0)
推荐(0)
摘要:
import std.traits; import std.getopt; // 指定参数结构 struct Options { @Option("threads", "t") @Help("要用线程数") size_t threads; @Option("file") @Help("输入文件") 阅读全文
posted @ 2021-09-17 14:26
zjh6
阅读(15)
评论(0)
推荐(0)
摘要:
import std.stdio; import std.traits; template JoinStruct(Ss...) { static foreach (S; Ss) { static foreach(i, alias f; S.tupleof) { mixin("typeof(f) ", 阅读全文
posted @ 2021-09-17 14:16
zjh6
阅读(28)
评论(0)
推荐(0)
摘要:
fun! Kxtw(a,b,w,t='^') "可选头尾.此时头为,分隔,尾为空格分隔 "b为剩余项总数,t为^,自身用,分隔 let[g,s]=Tmr(a:a,2,a:t,',') let l=Wmr(s,a:b,a:w) return extend([g],l) "合并可选首尾 endf 阅读全文
posted @ 2021-09-17 09:52
zjh6
阅读(14)
评论(0)
推荐(0)
摘要:
参见这里中joe的回答. 微软,VS,更新,禁用掉. 还有两个后台 #TrustedInstaller.exe 1 #TiWorker.exe 1 不注意,后台程序太多,坑你的极点五笔显示. 阅读全文
posted @ 2021-09-16 11:20
zjh6
阅读(87)
评论(0)
推荐(0)
摘要:
mixin template foo() { int _ignoreme() { if (readln.strip == "abort") throw new AbortException; return 1; } int _alsoIgnoreMe = _ignoreme(); } void ma 阅读全文
posted @ 2021-09-16 11:13
zjh6
阅读(13)
评论(0)
推荐(0)
浙公网安备 33010602011771号