More sensible mapping for clearing trailing spaces

This commit is contained in:
Claudio Maggioni 2019-01-17 22:24:04 +01:00
parent 45ee08debe
commit b91cbf4c72

View file

@ -96,7 +96,7 @@ function! g:ClearTrailingSpaces()
endfunction endfunction
" remove trailing spaces with: Leader t s " remove trailing spaces with: Leader t s
nnoremap <silent> <Leader>ts :call ClearTrailingSpaces()<CR> nnoremap <silent> <Leader>s :call ClearTrailingSpaces()<CR>
" automatically remove trailing spaces when saving a file " automatically remove trailing spaces when saving a file
autocmd BufWrite * call ClearTrailingSpaces() autocmd BufWrite * call ClearTrailingSpaces()