" Disable bell and visual bell.
set noerrorbells visualbell t_vb=
augroup gui-visualbell
  autocmd!
  autocmd GUIEnter * set visualbell t_vb=
augroup END

" Hide some autocompletion messages.
set shortmess+=c

" Hide buffers instead of closing them.
set hidden

" Show line numbers.
set number

" Set nonzero scrolloff.
set scrolloff=3

" Assume fast connection.
set ttyfast

" Always show status line.
set laststatus=2

" Set indentation preferences.
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
set ai

" Set search preferences.
set hlsearch
set ignorecase
set smartcase

" Set folding preferences.
set foldmethod=syntax
set nofoldenable

" Open splits below by default.
set splitbelow

" Disable bell and visual bell.
set noerrorbells visualbell t_vb=
augroup gui-visualbell
  autocmd!
  autocmd GUIEnter * set visualbell t_vb=
augroup END

" Hide some autocompletion messages.
set shortmess+=c

" Hide buffers instead of closing them.
set hidden

" Show line numbers.
set number

" Set nonzero scrolloff.
set scrolloff=3

" Assume fast connection.
set ttyfast

" Always show status line.
set laststatus=2

" Set indentation preferences.
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
set ai

" Set search preferences.
set hlsearch
set ignorecase
set smartcase

" Set folding preferences.
set foldmethod=syntax
set nofoldenable

" Open splits below by default.
set splitbelow

" Set language specific overrides.
augroup php-indent-size
  autocmd!
  autocmd FileType php setlocal shiftwidth=4 softtabstop=4
augroup END

Use 4 spaces for php indent
Use 4 spaces for php indent

rxrc/vimrc