Skip to content

Commit

Permalink
Add elixir to the list of file types that automatically strip whitesp…
Browse files Browse the repository at this point in the history
…ace.
  • Loading branch information
pgr0ss committed Jan 27, 2015
1 parent d39cd08 commit 2ef6cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimrc
Expand Up @@ -73,7 +73,7 @@ autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd BufRead,InsertLeave * match ExtraWhitespace /\s\+$/

" Autoremove trailing spaces when saving the buffer
autocmd FileType c,cpp,eruby,html,java,javascript,php,ruby autocmd BufWritePre <buffer> :%s/\s\+$//e
autocmd FileType c,cpp,elixir,eruby,html,java,javascript,php,ruby autocmd BufWritePre <buffer> :%s/\s\+$//e

" Highlight too-long lines
autocmd BufRead,InsertEnter,InsertLeave * 2match LineLengthError /\%126v.*/
Expand Down

0 comments on commit 2ef6cad

Please sign in to comment.