如何快速去源码中的红块?
vim吧
全部回复
仅看楼主
level 2
tao_627
楼主
如何快速批量去掉红块呀?请大牛指点!
2014年09月18日 09点09分
1
level 11
我喜欢的那女孩
高大上的正则
可惜我不会用,删除行尾空格吗?
2014年09月21日 14点09分
3
level 10
VimIcewind
"DS 去行尾空格
func! DS()
if search('\s\+$', 'pw') > 0
"去掉行尾空格
exec "%s/\\s\\+$//"
exec "update"
endif
endfunc
2017年09月19日 10点09分
7
level 10
VimIcewind
2017年09月19日 10点09分
8
level 10
VimIcewind
"DS去掉尾空 g=d
map g=d :call DS()<CR>v<Esc>
2017年09月19日 10点09分
9
level 10
VimIcewind
2017年09月19日 10点09分
10
1