Bug 1075541 - vim repoorts error when edit a file(with .sh extension)
vim repoorts error when edit a file(with .sh extension)
Status: NEW
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other
Current
Other Other
: P5 - None : Minor (vote)
: ---
Assigned To: Ismail Dönmez
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-11 09:15 UTC by Larry Chen
Modified: 2018-02-19 13:30 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Chen 2018-01-11 09:15:52 UTC
"test.sh" 36L, 332C
Error detected while processing BufRead Auto commands for "*.sh":
E117: Unknown function: dist#ft#SetFileTypeSH
Error detected while processing /usr/share/vim/vim80/scripts.vim:
line   69:
E117: Unknown function: dist#ft#SetFileTypeSH
Press ENTER or type command to continue


tw-2:~/deploy-ocfs2-test # rpm -qi vim
Name        : vim
Version     : 8.0.1417
Release     : 1.1
Architecture: x86_64
Install Date: Thu 11 Jan 2018 02:41:30 PM CST
Group       : Productivity/Editors/Vi
Size        : 3333305
License     : Vim
Signature   : RSA/SHA256, Sat 30 Dec 2017 02:46:47 AM CST, Key ID b88b2fd43dbdc284
Source RPM  : vim-8.0.1417-1.1.src.rpm
Build Date  : Wed 20 Dec 2017 08:00:00 PM CST
Build Host  : lamb13
Relocations : (not relocatable)
Packager    : https://bugs.opensuse.org
Vendor      : openSUSE
URL         : http://www.vim.org/
Summary     : Vi IMproved
Description :
Vim (Vi IMproved) is an almost compatible version of the UNIX editor
vi. Almost every possible command can be performed using only ASCII
characters. Only the 'Q' command is missing (you do not need it). Many
new features have been added: multilevel undo, command line history,
file name completion, block operations, and editing of binary data.
Distribution: openSUSE Tumbleweed
Comment 1 Freek de Kruijf 2018-01-15 21:20:51 UTC
Confirmed for Tumbleweed 20180110 on Raspberry Pi 2
Comment 3 Yifan Jiang 2018-01-24 06:59:41 UTC
It looks the newly added function is not included in the package:

https://github.com/vim/vim/blob/master/runtime/autoload/dist/ft.vim

The workaround:

1. mkdir /usr/share/vim/vim80/autoload/dist
2. pushd /usr/share/vim/vim80/autoload/dist
3. wget https://raw.githubusercontent.com/vim/vim/master/runtime/autoload/dist/ft.vim
Comment 4 Ismail Dönmez 2018-01-24 11:06:34 UTC
Installing vim-data will fix this problem.
Comment 5 Swamp Workflow Management 2018-01-24 12:30:12 UTC
This is an autogenerated message for OBS integration:
This bug (1075541) was mentioned in
https://build.opensuse.org/request/show/568886 Factory / vim
Comment 6 Swamp Workflow Management 2018-02-14 13:30:19 UTC
This is an autogenerated message for OBS integration:
This bug (1075541) was mentioned in
https://build.opensuse.org/request/show/576582 Factory / vim
Comment 7 Swamp Workflow Management 2018-02-15 10:00:24 UTC
This is an autogenerated message for OBS integration:
This bug (1075541) was mentioned in
https://build.opensuse.org/request/show/576933 Factory / vim