My Oracle Support Banner

vim fails to start with "E484: Can't open file /usr/share/vim/vim82/syntax/syntax.vim" (Doc ID 2856913.1)

Last updated on MAY 23, 2022

Applies to:

Solaris Operating System - Version 11.4 and later
Information in this document applies to any platform.
On local zone:

root@zonexyz:/usr/share/vim/vim82# vim
Error detected while processing /usr/share/vim/vim82/defaults.vim:
line 138:
E484: Can't open file /usr/share/vim/vim82/syntax/syntax.vim
Press ENTER or type command to continue

root@zonexyzonexyz:/usr/share/vim/vim82# uname -a
SunOS zonexyz 5.11 sun4v sparc sun4v !!!! non-global-zone

root@zonexyz:/usr/share/vim/vim82# ls -l
total 26
-r--r--r-- 1 root bin 5022 Mar 9 16:50 defaults.vim
drwxr-xr-x 2 root sys 3 Jul 27 2021 doc

It works fine on the global zone, and contents of /usr/share/vim/vim82 is different from the local zone.

root@globalzone:/usr/share/vim/vim82# ls
autoload defaults.vim filetype.vim ftplugof.vim keymap mswin.vim print syntax
bugreport.vim delmenu.vim ftoff.vim indent lang optwin.vim scripts.vim tools
colors doc ftplugin indent.vim macros pack spell tutor
compiler evim.vim ftplugin.vim indoff.vim menu.vim plugin synmenu.vim vimrc_example.vim

This could also happen on systems without zones.


This happened after upgrading to


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.