about summary refs log tree commit diff stats
path: root/subx/teensy/vimrc.vim
blob: e0fe2c1e0340ca21779e0cc4f9039d855b42c3b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
" assumes CWD is subx/
command! -nargs=1 EE call EditSubx(<f-args>)

function! EditSubx(arg)
  " run commands silently because we may get an error loading EditSubx from a
  " different directory.
  if a:arg =~ "test.*"
    exec "silent! vert split teensy/" . a:arg . "*.[cs]"
  else
    exec "silent! vert split " . a:arg . "*.subx"
  endif
endfunction