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
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ function! g:ClearTrailingSpaces()
endfunction
" 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
autocmd BufWrite * call ClearTrailingSpaces()