$ touch ~/.vimrc
if v:progname =~? "evim"
finish
endif
set nocompatible
set backspace=indent,eol,start
if has("vms")
set nobackup
else
set backup
endif
set history=50
set ruler
set showcmd
set incsearch
map Q gq
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
if has("autocmd")
filetype plugin indent on
augroup vimrcEx
au!
autocmd FileType text setlocal textwidth=78
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
autocmd FileType php setlocal dictionary=~/.vim/dict/PHP.dict
augroup END
else
set autoindent
endif
colorscheme desert
set background=dark
set number
set showmode
set title
set showcmd
set showmatch
set laststatus=2
augroup cch
autocmd! cch
autocmd WinLeave * set nocursorline
autocmd WinEnter,BufRead * set cursorline
augroup END
hi CursorLine ctermbg=Black ctermfg=Green
hi Search ctermbg=Yellow ctermfg=Blue
set smartindent
set tabstop=4
set shiftwidth=4
set softtabstop=0
set ignorecase
set smartcase
set wrapscan
set fileformats=unix,dos
set encoding=utf-8
set termencoding=utf-8
set fileencoding=utf-8
helptags ~/.vim/doc