fix aut0ocommand to strip end of line ^M
This commit is contained in:
parent
84ad0f67e7
commit
9c608ba84a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue