上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 259 下一页
摘要: 原文 module arsd.exception; interface ThrowableBase { void fly(string file = __FILE__, size_t line = __LINE__); //应该内置在编译器的throw语句中 // 需要时覆盖 void printM 阅读全文
posted @ 2022-08-12 10:45 zjh6 阅读(18) 评论(0) 推荐(0)
摘要: function! MyFunc() let status = system("git status") if v:shell_error Files else GFiles endif endfunction //隐藏变长码,`vim-unicode-homoglyphs`. augroup Hi 阅读全文
posted @ 2022-08-12 09:46 zjh6 阅读(28) 评论(0) 推荐(0)
摘要: syn region markdownLinkText matchgroup=markdownLinkTextDelimiter \ start="!\=\[\%(\_[^]]*]\%( \=[[(]\)\)\@=" end="\]\%( \=[[(]\)\@=" \ nextgroup=markd 阅读全文
posted @ 2022-08-12 09:45 zjh6 阅读(23) 评论(0) 推荐(0)
摘要: syntax match pyOperator "<=" conceal cchar=≤ syntax match pyOperator ">=" conceal cchar=≥ syntax match pyOperator "!=" conceal cchar=? syntax match py 阅读全文
posted @ 2022-08-12 09:44 zjh6 阅读(44) 评论(0) 推荐(0)
摘要: 原文 module testcmpmodule; //公共导入 public import std.algorithm, std.math, std.stdio; import std.range, std.traits; //函数重载组. public import std.algorithm : 阅读全文
posted @ 2022-08-12 09:41 zjh6 阅读(17) 评论(0) 推荐(0)
摘要: 原文 #!/usr/bin/env rdmd import std; auto contextWithString(T)(lazy scope T expression, string s) { try { return expression(); } catch (Exception e) { t 阅读全文
posted @ 2022-08-12 08:47 zjh6 阅读(16) 评论(0) 推荐(0)
摘要: syntax match haskOperator "->" conceal cchar=→ syntax match haskOperator "<-" conceal cchar=← highlight! link haskOperator Normal setlocal concealleve 阅读全文
posted @ 2022-08-11 23:55 zjh6 阅读(52) 评论(0) 推荐(0)
摘要: 原文 按正则排序: :sort r /regex/ " 零宽度 :h /\@=" /<\@<=[^>]*>\@= :搜索标签内容,忽略>形 /<\@<=\_[^>]*>\@= :在可能的`多行`中搜索标签 :bufdo exe ":normal Gp" | update : :bufdo exe " 阅读全文
posted @ 2022-08-11 21:13 zjh6 阅读(21) 评论(0) 推荐(0)
摘要: matchadd({group}, {pattern} [, {priority} [, {id} [, {dict}]]]) 在当前窗口,定义待高亮模式,会用{group}高亮组高亮.返回可用matchdelete()的(ID).其中ID是和窗口绑定的. 匹配区分大小写且带魔术的,但可在{patt 阅读全文
posted @ 2022-08-11 17:05 zjh6 阅读(116) 评论(0) 推荐(0)
摘要: 原文 可以这样: struct MY_KEY { template opDispatch(string name) { static import bindbc.glfw; mixin(`alias opDispatch = bindbc.glfw.GLFW_KEY_`, name, `;`); } 阅读全文
posted @ 2022-08-11 15:42 zjh6 阅读(18) 评论(0) 推荐(0)
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 259 下一页