July 9, 2022

RHEL 9.0 Bash Completion and in VIM use Space Instead of Tab

$ sudo dnf install vim-enhanced bash-completion -y
$ sudo vim /etc/vimrc
...
set tabstop=2
set shiftwidth=2
set expandtab

Set default editor to vim.

$ sudo vim /etc/profile
...
EDITOR=vim

After installing bash completion you need to login out and then login before completion takes affect.

No comments: