Saturday, April 18, 2020

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

Turns out I was wrong, the problem didn't go away, I took the filetype
plugin indent on line out of my _vimrc file. So let's run through this
again.

Window 10 64bit
Vim 8.2.587 64bit

Enabled:
All Enhancements
Remap a few keys
Windows button behavior

_vimrc file:

syntax on
filetype plugin indent on
set showmatch
set tabstop=4
set shiftwidth=4
set expandtab

Open any file with a .pl extension and this is the error:

"test.pl" 6L, 110CJohnson\AppData\Local\Temp\VIo639C.tmp was unexpected
at this
time.

Error detected while processing C:\Program
Files\Vim\vim82\ftplugin\perl.vim:
line 50:
E484: Can't open file C:\Users\Knute Johnson\AppData\Local\Temp\VIo639C.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

Tony wrote: "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 ran :scriptnames and this is what I got. I don't think that is
exactly what he was looking for as there are no numbers listed?

1: ~\_vimrc
2: C:\Program Files\Vim\vim82\syntax\syntax.vim
3: C:\Program Files\Vim\vim82\syntax\synload.vim
4: C:\Program Files\Vim\vim82\syntax\syncolor.vim
5: C:\Program Files\Vim\vim82\filetype.vim
6: C:\Program Files\Vim\vim82\ftplugin.vim
7: C:\Program Files\Vim\vim82\indent.vim
8: C:\Program Files\Vim\vim82\plugin\getscriptPlugin.vim
9: C:\Program Files\Vim\vim82\plugin\gzip.vim
10: C:\Program Files\Vim\vim82\plugin\logiPat.vim
11: C:\Program Files\Vim\vim82\plugin\manpager.vim
12: C:\Program Files\Vim\vim82\plugin\matchparen.vim
13: C:\Program Files\Vim\vim82\plugin\netrwPlugin.vim
14: C:\Program Files\Vim\vim82\plugin\rrhelper.vim
15: C:\Program Files\Vim\vim82\plugin\spellfile.vim
16: C:\Program Files\Vim\vim82\plugin\tarPlugin.vim
17: C:\Program Files\Vim\vim82\plugin\tohtml.vim
18: C:\Program Files\Vim\vim82\plugin\vimballPlugin.vim
19: C:\Program Files\Vim\vim82\plugin\zipPlugin.vim
20: C:\Program Files\Vim\vim82\autoload\dist\ft.vim
21: C:\Program Files\Vim\vim82\syntax\perl.vim
22: C:\Program Files\Vim\vim82\syntax\pod.vim
23: C:\Program Files\Vim\vim82\ftplugin\perl.vim
Press ENTER or type command to continue

gvim has the same problem.

I'm going to try different options on the install to see if that makes a
difference and will report back.

Thanks,

--

Knute Johnson

--
--
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/25857fac-17dd-11e6-d554-2c19e3120fc3%40585ranch.com.

No comments: