>$ sudo dnf install vim-enhanced bash-completion -y
After installing bash completion you need to login out and then login before completion takes affect.
>$ sudo vim /etc/vimrc
...
" insert space for tab
set expandtab
" number of space for tab
set tabstop=2
" number of space for indentation
set shiftwidth=2