Monday, September 9, 2013

Re: Unix vim running dos files

Bram Moolenaar wrote:
> Linda W wrote:
>
>> Tony Mechelynck wrote:
>>> On 28/08/13 18:27, Philip Piper wrote:
>>>> Is it standard behavior that vim on my debian install can not run DOS
>>>> plugins that I download without me converting said plugins to unix
>>>> fileformat?
>>>>
>>>> The screenshot is after trying open vim after install Unite through
>>>> pathogen.
>>>>
>>> According to the help, Windows Vim can source a Unix-fileformat plugin
>>> if 'fileformats' includes "unix" but not vice-versa. On a Unix Vim
>>> (including Vim for Mac OS X), all lines of all plugins must end in a
>>> linefeed with no carriage-return.
>> ----
>> Seems like it would be more user friendly if it could autodetect
>> the line endings like it does on source files.
> That cannot be done reliably. Especially for short scripts.
> Just write all Vim scripts with Unix line endings, that's the most
> straightforward way.
>
Or use dos2unix on the offending file first...
Chip

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment