Skip to content

Instantly share code, notes, and snippets.

@Bartuz
Forked from jandudulski/.vimrc
Last active August 29, 2015 14:06
Show Gist options
  • Save Bartuz/addf3f206c3e80c6f96c to your computer and use it in GitHub Desktop.
Save Bartuz/addf3f206c3e80c6f96c to your computer and use it in GitHub Desktop.
if has("autocmd")
" remove trailing white spaces
autocmd BufWritePre * :%s/\s\+$//e
endif
* Tools -> Options -> Editor -> On Save > Remove Trailing Whitespace From
* Select: All lines
Go to preferences / editor and check:
* Ensure line feed at file end on Save
* Strip trailing spaces on Save
// Trims white space added by auto_indent when moving the caret off the line.
"ensure_newline_at_eof_on_save": true,
"trim_automatic_white_space": true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment