about summary refs log tree commit diff stats
path: root/vimrc.vim
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-04-11 11:30:07 -0700
committerKartik Agaram <vc@akkartik.com>2019-04-11 11:30:07 -0700
commitbff79aeb2861de8c4540502415709fddf22601e5 (patch)
treeb46966d88a9389160ee2cd360d314de9164cd114 /vimrc.vim
parenta8cea00a29892be8f6481c5abdbc95cd1c1d4b83 (diff)
downloadmu-bff79aeb2861de8c4540502415709fddf22601e5.tar.gz
5079
Diffstat (limited to 'vimrc.vim')
-rw-r--r--vimrc.vim15
1 files changed, 2 insertions, 13 deletions
diff --git a/vimrc.vim b/vimrc.vim
index 5eba7448..98f9e836 100644
--- a/vimrc.vim
+++ b/vimrc.vim
@@ -24,8 +24,9 @@ function! HighlightTangledFile()
   syntax match subxGlobal %\<[A-Z][a-z0-9_-]*\>% | highlight link subxGlobal SpecialChar
 endfunction
 augroup LocalVimrc
-  autocmd BufRead,BufNewFile *.mu set ft=mu
   autocmd BufRead,BufNewFile *.cc call HighlightTangledFile()
+  autocmd BufRead,BufNewFile *.subx set ft=subx
+  autocmd BufRead,BufNewFile *.mu set ft=mu
 augroup END
 
 " Scenarios considered:
@@ -65,18 +66,6 @@ function! GrepSubX(regex)
 endfunction
 command! -nargs=1 G call GrepSubX(<q-args>)
 
-" temporary helpers while we port https://github.com/akkartik/crenshaw to apps/crenshaw*.subx
-command! -nargs=1 C exec "E crenshaw".<f-args>
-command! -nargs=1 CS exec "S crenshaw".<f-args>
-command! -nargs=1 CH exec "H crenshaw".<f-args>
-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()
-
 if exists("&splitvertical")
   command! -nargs=0 P hor split opcodes
 else