" " VIM Editor Settings " by Andrew Woods, 2011 " " " GENERAL SETTINGS " --------------------------------------- " " Use VIM settings, rather than Vi " This is set first because it changes other options as a side effect set nocompatible " Handles the settings for indentation set tabstop=4 set softtabstop=4 set shiftwidth=4 set autoindent smartindent " Turn on line numbering set number " Determine line endings set fileformat=unix set fileformats=unix,dos " When inserting a tab, expand it to the appropriate number of spaces set noexpandtab " Pattern searches should ignore case set ignorecase " Turns on syntax highlighting. "syntax on " Determine if background is light or dark. " it helps with syntax highlighting set background=dark " Autowraps text for you - don't use this with code " helps you find matching { and ( when you type ) } - if on screen set showmatch " Flash when errors occur set visualbell set errorbells " status bar settings set ruler set showmode " miscellaneous settings set shell=bash set nobackup set cursorline set showcmd " " Establish Abbreviations " ----------------------- " " Write a full php tag to prevent short tags :ab " Create 'Line' Comment in PHP :ab sdoc /* */hhhha :ab mdoc /* */ka " Create Function level PHPDoc :ab fdoc /** * * @param * @return * * Your Comment goes here */ " Create Class level PHPDoc :ab cdoc /** * * @package Example * @author First Last * @version 0.1 * @access public * * Your class comment goes here */