fix aut0ocommand to strip end of line ^M
This commit is contained in:
parent
84ad0f67e7
commit
9c608ba84a
|
@ -1,4 +1,8 @@
|
||||||
augroup RemoveControlM
|
function! StripSpecialM() abort
|
||||||
" FIXME - need to work out how to pass
without it being treated literally
|
:%s/
$//
|
||||||
" autocmd * BufWritePre <buffer> %s/
$//
|
endfunction
|
||||||
|
|
||||||
|
augroup RemoveControl
|
||||||
|
autocmd BufWritePre <buffer> call StripSpecialM()
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue