More sensible mapping for clearing trailing spaces
This commit is contained in:
parent
45ee08debe
commit
b91cbf4c72
1 changed files with 1 additions and 1 deletions
2
init.vim
2
init.vim
|
@ -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()
|
||||
|
|
Reference in a new issue