Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which plugin is removing blank spaces at the end of lines when writing? #295

Open
capn-freako opened this issue Aug 2, 2018 · 1 comment

Comments

@capn-freako
Copy link

I'd like to disable the automatic removal of blank space at the ends of lines in my Haskell code, so I can better control the resultant formatting of the Haddock generated documentation (by forcing line breaks, using two blank spaces at the end of a line).

Does anyone know which plugin is responsible for removing blank space at the end of lines when writing out the file?

@jship
Copy link
Collaborator

jship commented Aug 2, 2018

It is from a utility function defined in .vimrc:

haskell-vim-now/.vimrc

Lines 421 to 426 in f55a720

" Utility function to delete trailing white space
func! DeleteTrailingWS()
exe "normal mz"
%s/\s\+$//ge
exe "normal `z"
endfunc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants