Skip to content

Install vim Package

An XCCDF Rule

Description

The vim-enhanced package can be installed with the following command:
$ sudo yum install vim-enhanced

Rationale

Vim (Vi IMproved) is an almost compatible version of the UNIX editor vi.

ID
xccdf_org.ssgproject.content_rule_package_vim_installed
Severity
Low
Updated

Remediation Templates

A Puppet Snippet

include install_vim-enhanced
class install_vim-enhanced {
  package { 'vim-enhanced':
    ensure => 'installed',
  }
}

An Ansible Snippet

- name: Ensure vim-enhanced is installed
  package:
    name: vim-enhanced
    state: present
  tags:
  - enable_strategy

OS Build Blueprint

[[packages]]
name = "vim-enhanced"
version = "*"

Anaconda Pre-Install Instructions

package --add=vim-enhanced

A Shell Script

if ! rpm -q --quiet "vim-enhanced" ; then
    yum install -y "vim-enhanced"
fi