Closed s4my closed 1 year ago
@nakst please tell me what IDE/editor do you use ?
I use gVim.
I use gVim.
Perfect, can you add this to your .vimrc
:
" Automatically removing all trailing whitespace
function! TrimWhiteSpaces()
let l:save = winsaveview()
keeppatterns %s/\s\+$//e
call winrestview(l:save)
endfunction
augroup WHITESPACE
autocmd!
autocmd BufWritePre * :call TrimWhiteSpaces()
augroup END
You can also render tabs and spaces visible with this:
set list listchars=tab:⇥\ ,trail:·,precedes:←,extends:→
@nakst please tell me what IDE/editor do you use ?