public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* vim error with cygport file
@ 2017-12-31 18:21 Marco Atzeri
  2018-01-10  9:28 ` Corinna Vinschen
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Atzeri @ 2017-12-31 18:21 UTC (permalink / raw)
  To: cygwin

Hi Yaakov,
any time I use vim for cygport files I have the
following error message:

"R.cygport" 80L, 1600C
Error detected while processing BufRead Auto commands for "*.cygport":
E117: Unknown function: SetFileTypeSH


That seems caused by
$ cat /usr/share/vim/vimfiles/ftdetect/cygport.vim
[cut]
au BufNewFile,BufRead *.cygpart,*.cygport call SetFileTypeSH("bash")


$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Dec  7 2017 04:42:02)
Included patches: 1-1376

$ cygcheck -cd |grep vim
gvim                                    8.0.1376-1
vim                                     8.0.1376-1
vim-common                              8.0.1376-1
vim-minimal                             8.0.1376-1


Regards
Marco

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: vim error with cygport file
  2017-12-31 18:21 vim error with cygport file Marco Atzeri
@ 2018-01-10  9:28 ` Corinna Vinschen
  2018-01-10 16:49   ` Yaakov Selkowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Corinna Vinschen @ 2018-01-10  9:28 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 717 bytes --]

On Dec 31 18:21, Marco Atzeri wrote:
> Hi Yaakov,
> any time I use vim for cygport files I have the
> following error message:
> 
> "R.cygport" 80L, 1600C
> Error detected while processing BufRead Auto commands for "*.cygport":
> E117: Unknown function: SetFileTypeSH
> 
> 
> That seems caused by
> $ cat /usr/share/vim/vimfiles/ftdetect/cygport.vim
> [cut]
> au BufNewFile,BufRead *.cygpart,*.cygport call SetFileTypeSH("bash")

Apparently this has to be

  au BufNewFile,BufRead *.cygpart,*.cygport call dist#ft#SetFileTypeSH("bash")


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: vim error with cygport file
  2018-01-10  9:28 ` Corinna Vinschen
@ 2018-01-10 16:49   ` Yaakov Selkowitz
  0 siblings, 0 replies; 3+ messages in thread
From: Yaakov Selkowitz @ 2018-01-10 16:49 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 342 bytes --]

On 2018-01-10 03:27, Corinna Vinschen wrote:
> On Dec 31 18:21, Marco Atzeri wrote:
>> any time I use vim for cygport files I have the following error message:
[snip]>
> Apparently this has to be
> 
>   au BufNewFile,BufRead *.cygpart,*.cygport call dist#ft#SetFileTypeSH("bash")

Thanks, pushed this to git master.

-- 
Yaakov


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-10 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-31 18:21 vim error with cygport file Marco Atzeri
2018-01-10  9:28 ` Corinna Vinschen
2018-01-10 16:49   ` Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).