fix aut0ocommand to strip end of line ^M

This commit is contained in:
ManjaroOne666 2019-08-22 13:05:42 +01:00
parent 84ad0f67e7
commit 9c608ba84a
1 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,8 @@
augroup RemoveControlM
" FIXME - need to work out how to pass without it being treated literally
" autocmd * BufWritePre <buffer> %s/ $//
function! StripSpecialM() abort
:%s/ $//
endfunction
augroup RemoveControl
autocmd BufWritePre <buffer> call StripSpecialM()
augroup END