From bff79aeb2861de8c4540502415709fddf22601e5 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 11 Apr 2019 11:30:07 -0700 Subject: 5079 --- vimrc.vim | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'vimrc.vim') 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() -" temporary helpers while we port https://github.com/akkartik/crenshaw to apps/crenshaw*.subx -command! -nargs=1 C exec "E crenshaw". -command! -nargs=1 CS exec "S crenshaw". -command! -nargs=1 CH exec "H crenshaw". -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 -- cgit 1.4.1-2-gfad0