Monday, December 29, 2014

Re: Vim 7.2.411 won't work on CentOS 2.6.32-504.3.3.el6.x86_64

On 2014-12-28, eiger3970 wrote:
> Hello,
> I install Vim on CentOS with command # yum install vim.
> This works, but then running vim gives error:
>
> [root@centos public_html]# vim contactus.html
> Error detected while processing /etc/vimrc:
> line 50:
> E484: Can't open file /usr/share/vim/syntax/syntax.vim
> Press ENTER or type command to continue
>
> The Vim file opens in green, rather than the usual colours I
> prefer to view code.
>
> Vimdiff has the same problem, as well as being unable to edit a
> file.

I logged on to a machine running Centos 6.6 and ran the following
command.

$ rpm -qa | grep vim
vim-minimal-7.2.411-1.8.el6.x86_64
vim-X11-7.2.411-1.8.el6.x86_64
vim-common-7.2.411-1.8.el6.x86_64
vim-enhanced-7.2.411-1.8.el6.x86_64
vim-clustershell-1.6-1.el6.noarch

According to that, there is no "vim" package. The vim-minimal,
vim-X11 and vim-enhanced packages provide executables but not the
runtime files. You appear to be missing the runtime files, which
are provided by the vim-common package. Try installing vim-common
and see if that fixes the problem.

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment