上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 259 下一页
摘要: 简介 使用它,可避免微软的文件管理器,因为它会崩溃! Dirvish是极简目录查看器.转储路径列表到Vim缓冲区中并提供一些快捷键. 因为每个Dirvish缓冲区名都是字面目录路径,所以可:cd到目录, :cd % 创建新文件, :edit %/foo.txt expand()目录路径, :let 阅读全文
posted @ 2022-06-24 20:24 zjh6 阅读(124) 评论(0) 推荐(0)
摘要: :command! -nargs=+ Fl :call Lxdm(<f-args>) "Fl表示显示联想函数.由中文关联的函数.1个或多个 :command! -nargs=1 Fn :call Xshs(<f-args>) "Fn表示显示函数. :command! -nargs=1 Fm :cal 阅读全文
posted @ 2022-06-24 16:41 zjh6 阅读(19) 评论(0) 推荐(0)
摘要: 用C++写帮助函数,很爽. 你只需要: 1,先写C++函数的库,帮助包装函数. 2,再写C++函数的包装函数,然后用外(C),并导出dll.然后如下命令来编译: cl /EHsc /Zc:strictStrings- /LD @e:\\path\\cl额外链接 扩展.cxx 3,vim函数中如下: 阅读全文
posted @ 2022-06-24 14:42 zjh6 阅读(20) 评论(0) 推荐(0)
摘要: #SingleInstance force ;防多次运行 If A_Hour Between 22 and 24 ;22点至24点 { 提醒器("222222","睡觉!") ;设定闹钟 } 提醒器(定时,提醒内容) { StringLeft,当前日期,A_Now,8 ;A_Now格式:年4位,月2 阅读全文
posted @ 2022-06-24 09:08 zjh6 阅读(77) 评论(0) 推荐(0)
摘要: 原文 '\0'*10 没用,这样: import std.range; repeat("\0", 10).join(""); 或数组: char[] n; n.length = 10; n[] = '\0'; 阅读全文
posted @ 2022-06-24 08:55 zjh6 阅读(37) 评论(0) 推荐(0)
摘要: vim自身的历史命令好像有问题,我们自己备份一份. fun! Lsks() //"历史开始. let s:k=histnr("cmd") endf fun! Lsjs() //历史结束.文件中历史命令. //应该是打开文件前,取前后,历史命令,再全部加至`历史命令.vim`. let s:j=his 阅读全文
posted @ 2022-06-23 11:17 zjh6 阅读(22) 评论(0) 推荐(0)
摘要: 原文 void main(){ template bar(){ void bar(int){} void bar(float){} } bar(1); bar(3.14); } 这真是个好主意. import std.stdio; void main() { template funcs() { v 阅读全文
posted @ 2022-06-22 21:14 zjh6 阅读(13) 评论(0) 推荐(0)
摘要: 1,处理行写成行处理了. 2,要这样写逆序: 静 常式 整 N=型长...(I); (((i+I+1==N)&&(G<I>(),0)),...); 3,调用G<I>(),不需要静态函数. 4,写模板类型时,要元<元<整>>,不能写成元<元<类>>. 看起来,这些都是小错误,可要发现他们不容易. 阅读全文
posted @ 2022-06-22 21:05 zjh6 阅读(13) 评论(0) 推荐(0)
摘要: 看看,这种情况: 如(i){//i为0或1 动作<0>a;中; } 动作<1>a;//相反 是不是觉得很难看,借助简单的顺序/逆序启动来重构它: 元<元<整>类 G,整...I> 空 顺序启动(序列<I...>,整 i){ (((i==I)&&(G<I>(),0)),...); }//构也是函数. 阅读全文
posted @ 2022-06-22 18:19 zjh6 阅读(30) 评论(0) 推荐(0)
摘要: 原文 DIP1000:现代系统编程语言中的内存安全 现代高级语言如D是内存安全的,可防止用户意外读写未用内存或破坏语言的类型系统.D的安全子集提供保证,用@safe来保证函数内存安全. @safe string getBeginning(immutable(char)* cString) { ret 阅读全文
posted @ 2022-06-22 15:14 zjh6 阅读(23) 评论(0) 推荐(0)
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 259 下一页