Loading

摘要: 终端 Vim 改变光标在不同模式下的样式 Reference: Change cursor shape in different modes Vim Help: :h termcap-cursor-shape let &t_SI = "\<Esc>[5 q" let &t_SR = "\<Esc>[ 阅读全文
posted @ 2025-02-21 20:32 bitlogic 阅读(30) 评论(0) 推荐(0)
摘要: 如何匹配对称的括号,且允许单层嵌套 ? 就像匹配一个允许包含转义字符的字符串一样,"[^\\"]*(\\.[^\\"]*)*",这是我们常用的一种正则结构 Unrolling the Loop,即opening normal* (special normal*)* closing;类似的,我们可以很 阅读全文
posted @ 2025-02-21 19:55 bitlogic 阅读(113) 评论(0) 推荐(0)