Browse Source

Adding whitespace trimming on save

pull/2/head
Ryan Reed 3 years ago
parent
commit
073ba2968c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      dot_vim/vimrc

+ 3
- 0
dot_vim/vimrc View File

@ -238,3 +238,6 @@
nmap <leader>D ysiw nmap <leader>D ysiw
nnoremap <leader>j :%!python -m json.tool<CR> " Pretty print json nnoremap <leader>j :%!python -m json.tool<CR> " Pretty print json
" 05 - Auto Commands
autocmd BufWritePre * :%s/\s\+$//e " Remove trailing whitespace on save

Loading…
Cancel
Save