如何删除领先&在列范围内尾随空格?
这不起作用:
9s/\%>11c\%<40c^\(\s\+\)//e
9s/\%>11c\%<40c\(\s\+\)$//e
答案 0 :(得分:0)
""""""""""""""""""""""""""""""""""""""""""""""""
" Delete Leading White Spaces
""""""""""""""""""""""""""""""""""""""""""""""""
function <SID>OxnzDeleteLeadingSpacesFunc()
try
:%s/^\s\+//
catch /^Vim\%((\a\+)\)\=:E486/
echo "No more leading space exists"
endtry
endfunction
""""""""""""""""""""""""""""""""""""""""""""""""
" Delete Trailing White Spaces
""""""""""""""""""""""""""""""""""""""""""""""""
function <SID>OxnzDeleteTrailingSpacesFunc()
try
:%s/\s\+$//
catch /^Vim\%((\a\+)\)\=:E486/
echo "No more trailing space exists"
endtry
endfunction