Original Message:
Sent: Tue March 07, 2023 09:04 AM
From: Amina Hassan
Subject: Getting an error when editing a pyton program and tried ":syntax on", and it gave the error: "E484: Can't open file /usr/share/vim/vim63/syntax/syntax.vim"
Hello Nigel,
Thank you. The OS is AIX7.3. We recently upgraded from AIX7.2 to AIX7.3. I tried to upgrade VIM with DNF but there are no packages available.
[root@] / # oslevel -s
7300-00-02-2220
[root] / # vim -v
VIM - Vi IMproved
~
~ version 6.3
~ by Bram Moolenaar et al.
~ Vim is open source and freely distributable
~
~ Help poor children in Uganda!
~ type :help iccf<Enter> for information
~
~ type :q<Enter> to exit
~ type :help<Enter> or <F1> for on-line help
~ type :help version6<Enter> for version info
~
~ Running in Vi compatible mode
~ type :set nocp<Enter> for Vim defaults
~ type :help cp-default<Enter> for info on this
[root@/ # which vim
/usr/bin/vim
>>>>>>>>>>>
[root@ / # rpm -qa| grep vim
vim-enhanced-6.3-1.ppc
vim-common-8.2.5172-1.ppc
vim-X11-8.2.5172-1.ppc
vim-minimal-8.2.5172-1.ppc
>>>>>>>>>>>>>>
[root@/ # dnf update vim
Local AIX generic repository 3.0 MB/s | 3.0 kB 00:00
Local AIX noarch repository 3.0 MB/s | 3.0 kB 00:00
Local AIX 7.3 specific repository 2.9 MB/s | 3.0 kB 00:00
AIX 7.2 OSSEC repository 2.8 MB/s | 2.9 kB 00:00
No match for argument: vim
Error: No packages marked for upgrade.
Regards,
Sunita Jaiswal
------------------------------
Amina Hassan
Original Message:
Sent: Mon March 06, 2023 10:36 AM
From: Nigel Griffiths
Subject: Getting an error when editing a pyton program and tried ":syntax on", and it gave the error: "E484: Can't open file /usr/share/vim/vim63/syntax/syntax.vim"
Hi,
It would have helped if you had included in the problem report that this the operating system is AIX! Is my guess correct?
Next obvious fact is which version of AIX?
Don't worry - most people make this mistake.
I took a look at the AIX open source toolbox site and it says the current VIM for AIX is 9.0.0916.
See https://www.ibm.com/support/pages/aix-toolbox-open-source-software-downloads-alpha#V
Your question include references to 6.3 and 7.4, this suggests a history of using both vim 6.3 or 7.4 - which is pretty odd.
Are sure sure you know which you are using - perhaps you have been using the older one.
vim -v
tells you the version.
whence vim
will tell you file name it is running
I humble suggest you upgrade to a current vim version.
With AIX the open source tools are placed in /opt/freeware because we do not what to mix up Linux programs and data file with AIX files.
The error message part /usr/share/vim/vim63/syntax/syntax.vim
Suggests that the program is the 6.3 version and has this string hard coded in - the latest vim version may have that fixed.
You could try changing that file and see it it actual is being used.
Let us know if you work it out.
------------------------------
Nigel Griffiths
Original Message:
Sent: Tue February 28, 2023 04:30 PM
From: Amina Hassan
Subject: Getting an error when editing a pyton program and tried ":syntax on", and it gave the error: "E484: Can't open file /usr/share/vim/vim63/syntax/syntax.vim"
The syntax highlighting for code at least isn't working. I was editing a python program and tried ":syntax on", and it gave the error:
"E484: Can't open file /usr/share/vim/vim63/syntax/syntax.vim"
I looked around, and it looks like the config maybe/probably lives in this area:
#/home/user > find /opt -name syntax.vim
/opt/freeware/share/vim/vim74/syntax/syntax.vim
But I don't know how to tell whichever whole-host vim config file where the right config lives.
------------------------------
Amina Hassan
------------------------------