Skip to content

Instantly share code, notes, and snippets.

@retorillo
Created August 4, 2017 07:10
Show Gist options
  • Save retorillo/1b1900b6c1385e8f1e6dff9907962860 to your computer and use it in GitHub Desktop.
Save retorillo/1b1900b6c1385e8f1e6dff9907962860 to your computer and use it in GitHub Desktop.

On Windows, most distributions uses dos as default format, and note that set fileformat=unix on vimrc cannot affect with newly created buffer. Use fileformats rather than fileformat.

" ~/.vimrc or ~/_vimrc (depends on distribution)
set fileformats=unix,dos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment