Skip to content

Instantly share code, notes, and snippets.

View ilkermutlu's full-sized avatar

Ilker Mutlu ilkermutlu

View GitHub Profile
@ilkermutlu
ilkermutlu / .vimrc
Last active June 7, 2016 11:29 — forked from mattstauffer/.vimrc
Vimscripts to easily create PHP class and easily add dependency to PHP classTweaked versions of a script by Jeffrey Way
" Note: To add this to your .vimrc, you'll have to delete any character that is written with a caret (e.g. "^M") and enter the real value; to enter ^M, enter insert mode and type CTRL-V CTRL-M.
" Easily create class.
function! Class()
let name = input('Class Name? ')
let namespace = input('Any Namespace? ')
if strlen(namespace)
exec 'normal i<?php namespace ' . namespace . ';^M^M^['
else