We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcd37e1 commit 6894a3bCopy full SHA for 6894a3b
plugin/pangu.vim
@@ -106,8 +106,8 @@ function! PanGuSpaceCore()
106
silent! %s/@/@/g
107
108
" 汉字与其前后的英文字符、英文标点、数字间增加空白。
109
- silent! %s/\([\u4e00-\u9fa5\u3040-\u30FF]\)\([a-zA-Z0-9@&=_`\[\$\%\^\*\-\+(\/\\]\)/\1 \2/g " 汉字在前。
110
- silent! %s/\([a-zA-Z0-9!~&;=_`\]\,\.\:\?\$\%\^\*\-\+\)\/\\]\)\([\u4e00-\u9fa5\u3040-\u30FF]\)/\1 \2/g " 汉字在后。
+ silent! %s/\([\u4e00-\u9fa5\u3040-\u30FF]\)\([a-zA-Z0-9@&=`\[\$\%\^\-\+(\/\\]\)/\1 \2/g " 汉字在前。
+ silent! %s/\([a-zA-Z0-9!&;=`\]\,\.\:\?\$\%\^\-\+\)\/\\]\)\([\u4e00-\u9fa5\u3040-\u30FF]\)/\1 \2/g " 汉字在后。
111
112
" 修复 markdown 链接所使用的标点。
113
silent! %s/『\([^』\]]\+\)[』\]][((]\([^)]\+\)[))]/[\1](\2)/g
0 commit comments