Search code examples
vimspf13vim

Spf13 VIM: Not to eat up tabs on empty lines on save


The wanted behavior for many on Spf13 VIM is to eat up any whitespace or tabs on an empty line. I am working on an existing project, and I've got a lot of these changes in the change log:

enter image description here

How can I stop Spf13 VIM from deleting these tabs on empty lines?

Edit:

Never mind, it does work. Answering my own question now.


Solution

  • Found this in the Spf13 .vimrc file:

    " To disable the stripping of whitespace, add the following to your
    " .vimrc.before.local file:
    "   let g:spf13_keep_trailing_whitespace = 1
    

    After adding that it worked, also for tabs.