add nc
(namespace and class) for php
http://knplabs.com/blog/boost-your-productivity-with-sf2-and-vim
This commit is contained in:
parent
2b59196777
commit
3fa45cda70
@ -222,6 +222,13 @@ snippet class
|
||||
${8:// code...}
|
||||
}
|
||||
}
|
||||
snippet nc
|
||||
namespace ${1:`substitute(substitute(expand("%:h"), '\v^\w+\/(\u)', '\1', ''), '\/', '\\\', 'g')`};
|
||||
|
||||
${2:abstract }class ${3:`Filename()`}
|
||||
{
|
||||
${4}
|
||||
}
|
||||
# define(...)
|
||||
snippet def
|
||||
define('${1}'${2});${3}
|
||||
|
Loading…
Reference in New Issue
Block a user