mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
white space filtering apply to all file types
This commit is contained in:
parent
4bf0c0eb37
commit
4f373ed73a
1 changed files with 3 additions and 3 deletions
6
.vimrc
6
.vimrc
|
|
@ -93,9 +93,9 @@ let g:pymode_syntax_space_errors = g:pymode_syntax_all
|
|||
let g:pymode_folding = 0
|
||||
|
||||
" Highlight trailing white space and delete on save
|
||||
autocmd InsertLeave *.py, *.js, *.c, *.h match ErrorMsg '\s\+$'
|
||||
autocmd InsertEnter *.py, *.js, *.c, *.h call clearmatches()
|
||||
autocmd BufWritePre *.py, *.js, *.c, *.h :%s/\s\+$//e
|
||||
autocmd InsertLeave * match ErrorMsg '\s\+$'
|
||||
autocmd InsertEnter * call clearmatches()
|
||||
autocmd BufWritePre * :%s/\s\+$//e
|
||||
|
||||
" automatically change window's cwd to file's dir
|
||||
set autochdir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue