OrangeT / vim-csharp

Enhancement's to Vim's C-Sharp Functionality
117 stars 39 forks source link

Add .gitattributes and normalize line endings #15

Closed jwhitley closed 11 years ago

jwhitley commented 11 years ago

This change adds a .gitattributes file that normalizes line endings in the repository for all *.vim files. Line endings will be converted to the host system format on checkout. The line endings for all affected files are also normalized in this commit. This allows this plugin to work correctly on OS X and Linux, e.g. with Mono and Unity3D C# toolchains.

See also: Dealing with line endings.

jwhitley commented 11 years ago

Clarification: this PR is here as this plugin does not work due to CRLF line endings on Vim for OS X.

This change should enforce correct default line-endings on all platforms on checkout, but I don't have a Windows box available to test with right now. Do please verify that the plugin still loads correctly on Vim for Windows.

kianryan commented 11 years ago

Excellent. This was on to the todo list, thank you.