Tuesday, April 14, 2020

Re: Error editing perl source file with filetype plugin indent on in my _vimrc

On Tue, Apr 14, 2020 at 9:54 AM Knute Johnson <groups@585ranch.com> wrote:
>
> If I attempt to edit a perl source file with "filetype plugin indent on"
> in my _vimrc file I get the following error:
>
> "test.pl" 4L, 69CJohnson\AppData\Local\Temp\VIo1F34.tmp was unexpected
> at this t
> ime.
>
> Error detected while processing C:\Program Files
> (x86)\Vim\vim82\ftplugin\perl.v
> im:
> line 50:
> E484: Can't open file C:\Users\Knute Johnson\AppData\Local\Temp\VIo1F34.tmp
> Error detected while processing function <SNR>6_LoadFTPlugin:
> line 17:
> E170: Missing :endfor
> Error detected while processing function dist#ft#FTpl:
> line 10:
> E171: Missing :endif
> Press ENTER or type command to continue
>
> Then when I press ENTER and edit the file I can't use ZZ to save and
> exit because it shows another error:
>
> E13: File exists (add ! to override)
>
> This all used to work just fine. I've uninstalled, cleaned out all the
> files I could find and reinstalled and still have the problem. Using
> 8.2, Windows 10, I don't have this problem on Linux.
>
> My _vimrc file:
>
> syntax on
> filetype plugin indent on
> set showmatch
> set tabstop=4
> set shiftwidth=4
> set expandtab
>
> Any ideas where to start?
>
> Thanks,
>
> --
>
> Knute Johnson

• Which Vim version, including major.minor.patch? (As of this writing,
the latest version is 8.2.577)
• The Perl filetype-plugin ($VIMRUNTIME/ftplugin/perl.vim) hasn't
changed much recently AFAIK — the version on the master repository is
dated "Last Change: 2015-02-09" which I find weird.
• The function whose name starts with <SNR>6_ was defined in the 6th
script sourced in that particular run of Vim. Next time you get that
error, check the output of the :scriptnames command for the script
with the same number as the one following <SNR>. The function was
defined in that script with <SID> instead of <SNR>6_ at the start of
its name.

I'm adding the address listed as "maintainer" of the Perl ftplugin as
a CC, let's hope someone is still listening at that address.

Best regards,
Tony.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXs7aJKMYTF%3DmV3ATEMt2kUwAdsYribGZrr%3DEC09PEy7Pg%40mail.gmail.com.

No comments: