From 5e5f569c1777e4062b2d4379ed4b17b9d0b18281 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 26 Oct 2018 10:12:51 -0700 Subject: 4725 - back to porting the Crenshaw compiler --- vimrc.vim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'vimrc.vim') diff --git a/vimrc.vim b/vimrc.vim index f76396da..d5f0e809 100644 --- a/vimrc.vim +++ b/vimrc.vim @@ -81,3 +81,12 @@ function! GrepSubX(regex) silent exec "r !grep -h '".a:regex."' *.subx */*.subx" endfunction command! -nargs=1 G call GrepSubX() + +" temporary helpers while we port https://github.com/akkartik/crenshaw to apps/crenshaw*.subx +function! Orig() + let l:p = expand("%:t:r") + if l:p =~ "^crenshaw\\d*-\\d*$" + exec "vert split crenshaw/tutor" . substitute(expand("%:t:r"), "^crenshaw\\(\\d*\\)-\\(\\d*\\)$", "\\1.\\2", "") . ".pas" + endif +endfunction +command! O call Orig() -- cgit 1.4.1-2-gfad0