kparnell /.vimrc

A simple .vimrc
" Set tab spacing to 4
set tabstop=4
set expandtab
set shiftwidth=4
set background=dark
set showtabline=2

" My Colors
colorscheme 256_asu1dark

" Enable mouse
set mouse=a

" Search as you type
set vb t_vb=

" Options for programming
set nocompatible    " We're running Vim no Vi!
syntax on           " Enable syntax highlighting
filetype on         " Enable filetype detection
filetype indent on  " Enable filetype-specific indenting
filetype plugin on  " Enable filetype-specific plugins
set number
set foldcolumn=3

" Snippet Manager
" nmap   sm smgr_MapSnippetsManager
" let g:smgr_snippetsPath = "/Users/kenny/.vim/snippets"

" cvim stuff
let g:C_AuthorName      = 'Kenny Parnell'
let g:C_AuthorRef       = 'KP'
let g:C_Email           = 'kparnell@redventures.com'
let g:C_Company         = 'Red Ventures'

" enable wildmenu
set wildmenu
set wildmode=list:longest,full

" php editing
let php_sql_query   = 1                             " SQL Highlighting in Strings
let php_folding     = 0                             " Fold all { } regions
au BufNewFile,BufRead *.htm,*.html set ft=php       " All is php

au BufNewFile *.php,*.htm,*.html call PHP_template()
fun PHP_template()
    let file = input("File title? ")
    let desc = input("File description? ")
    let date = strftime("%c")
    append

 * @date @DATE@
 */



/* vim:set ft=php ts=4 sw=4 et */
.
execute ":%s/@FILE@/\\=file/"
execute ":%s/@DESC@/\\=desc/"
execute ":%s/@DATE@/\\=date/"
execute ":%s/@AUTHOR@/\\=g:C_AuthorName/"
execute ":%s/@AUTHOREMAIL@/\\=g:C_Email/"
call cursor(11,1)
endfun