global vimrc in linux

the location is /etc/vimrc, to set tab width to 4 spaces, add the following 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
set softtabstop=4
set nowrap