How can I turn off removing trailing whitespace?
liveseongho opened this issue · 2 comments
liveseongho commented
Hi,
When I save markdown file (.md file which is set filetype "pandoc") on vim, it automatically removes trailing whitespace.
But, I used trailing whitespace on markdown for list indentation. Now, I should add a backslash to where I put two trailing spaces.
How can I turn off removing trailing whitespace?
I tried to comment out line 878 and 879 in .vimrc, but it didn't work.
wookayin commented
Those L878-879 are the only relevant lines.
autocmd FileType c,cpp,java,javascript,html,ruby,python,pandoc
\ autocmd BufWritePre <buffer> :call StripTrailingWhitespaces()
I don't think there is any else configuration, so it should work. Have you tried restarting vim or reloading the buffer?
wookayin commented
I am closing this for now. Please let me know if you have any further questions.