Edit vimrc file

sudo vim /etc/vimrc


Add lines

filetype plugin indent on

" show existing tab with 4 spaces width
set tabstop=4

" when indenting with '>', use 4 spaces width
set shiftwidth=4

" On pressing tab, insert 4 spaces
set expandtab

" Move line up or down
nnoremap <silent> <A-down> :m .+1<CR>==
nnoremap <silent> <A-up> :m .-2<CR>==
inoremap <silent> <A-down> <Esc>:m .+1<CR>==gi
inoremap <silent> <A-up> <Esc>:m .-2<CR>==gi
vnoremap <silent> <A-down> :m '>+1<CR>gv=gv
vnoremap <silent> <A-up> :m '<-2<CR>gv=gv

" Statusbar
set laststatus=2
set statusline=\ %f%m%r%h%w\ %=%([%{&ff}\|%{(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\",B\":\"\")}%k\|%Y]%)\ %([%l\/%L,\ %v]\ [%p%%]\ %)