Skip to content

Commit 68492a1

Browse files
committed
Delete first and last spaces.
1 parent 4b43172 commit 68492a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/pangu.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ function! PanGuSpacingCore()
113113
silent! %s/\s*[『\[]\([^』\]]\+\)[』\]][『\[]\([^』\]]\+\)[』\]]\s*/ [\1][\2] /g " 参考链接
114114
silent! %s/\s*[『\[]\([^』\]]\+\)[』\]][((]\([^』)]\+\)[))]\s*/ [\1](\2) /g " 内联链接
115115

116+
silent! %s/^ \[/[/
117+
silent! %s/\s\+$//
118+
116119
call cursor(b:curline, b:curcol)
117120
endif
118121
endfunction

0 commit comments

Comments
 (0)