projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
eeeae571f8e410a9b4f730eb7fa035717b5dad45
[dotfiles/.git]
/
autocmds.vim
1
"My_autocmds:
2
fun! TrimWhitespace()
3
let l:save = winsaveview()
4
keeppatterns %s/\s\+$//e
5
call winrestview(l:save)
6
endfun
7
8
augroup JOSUERODRIGUEZ
9
autocmd!
10
autocmd BufWritePre * :call TrimWhitespace()
11
augroup END