Skip to content

Instantly share code, notes, and snippets.

@violetyk
Created October 1, 2013 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save violetyk/6775071 to your computer and use it in GitHub Desktop.
Save violetyk/6775071 to your computer and use it in GitHub Desktop.
cnoreabbrev <expr> Ctest
\ (getcmdtype() == ':' && getcmdline() ==# 'e Ctest' && exists('g:cake.paths.test')) ? g:cake.paths.test : 'Ctest'
cnoreabbrev <expr> Cfixute
\ (getcmdtype() == ':' && getcmdline() ==# 'e Cfixture' && exists('g:cake.paths.fixtures')) ? g:cake.paths.fixtures : 'Cfixture'
cnoreabbrev <expr> Cmodel
\ (getcmdtype() == ':' && getcmdline() ==# 'e Cmodel' && exists('g:cake.paths.models')) ? g:cake.paths.models : 'Cmodel'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment