Power

 View Only
Expand all | Collapse all

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"

  • 1.  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"

    Posted Tue February 28, 2023 04:31 PM

     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
    ------------------------------


  • 2.  RE: 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"

    Posted Fri March 03, 2023 01:06 PM

    Hello Team,

    I am still waiting for a possible solution. Could you please help me?



    ------------------------------
    Amina Hassan
    ------------------------------



  • 3.  RE: 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"

    Posted Mon March 06, 2023 10:37 AM

    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
    ------------------------------



  • 4.  RE: 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"

    Posted Tue March 07, 2023 09:05 AM

    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
    ------------------------------



  • 5.  RE: 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"

    Posted Thu March 09, 2023 03:24 PM

    Thank you Nigel,

    Updating VIM resolved the issue. 



    ------------------------------
    Amina Hassan
    ------------------------------