-
Notifications
You must be signed in to change notification settings - Fork 82
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
Sometimes you can't remove spaces when saving a file #147
Comments
This works for me. Do you have by any chances I’m replicating this behaviour by
So for example: What I’m seeing is that |
If I move the cursor to another window and then move it back, the |
If you need more information, please let me know. I'm afraid I didn't describe the problem clearly. Thanks |
Hi @onlycalm, your screen captures seem to describe the problem well. I’m supposing some event gets missed or something but I didn’t have time to look into it yet (also I don’t have NERDTree installed) |
Open file via VIM. Because neardtree can move the cursor to the window where the open file is located, the space cannot be deleted when saving the file. If you move the cursor to another window and then move back to the original window, the function will return to normal.
The configuration is as follows:
"autocmd StdinReadPre * let s:std_in=1
"autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif
let g:better_whitespace_enabled=1
let g:better_whitespace_ctermcolor='gray'
let g:strip_whitespace_on_save=1
let g:strip_whitespace_confirm=0
let g:better_whitespace_operator=''
let g:better_whitespace_blacklist=[]
let g:current_line_whitespace_disabled_hard=0
let g:current_line_whitespace_disabled_soft=0
The text was updated successfully, but these errors were encountered: