vim error with cygport file

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Jan 10 09:28:00 GMT 2018


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20180110/56dd8797/attachment.sig>


More information about the Cygwin mailing list