如何删除列范围内的前导和尾随空格?
这不起作用:
9s/\%>11c\%<40c^\(\s\+\)//e
9s/\%>11c\%<40c\(\s\+\)$//e
如何删除列范围内的前导和尾随空格?
这不起作用:
9s/\%>11c\%<40c^\(\s\+\)//e
9s/\%>11c\%<40c\(\s\+\)$//e
""""""""""""""""""""""""""""""""""""""""""""""""
" 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