about summary refs log tree commit diff stats
path: root/vimrc.vim
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-03-29 18:47:52 -0700
committerKartik Agaram <vc@akkartik.com>2021-03-29 18:47:52 -0700
commit16f2bd1174632659cbad925f7271cd72feef3522 (patch)
treed3a729b5cdf4413ae7dfc86e15c1f0a63532b943 /vimrc.vim
parent386641c0212437e719e6601596da82df1d0969e0 (diff)
downloadmu-16f2bd1174632659cbad925f7271cd72feef3522.tar.gz
.
Diffstat (limited to 'vimrc.vim')
-rw-r--r--vimrc.vim26
1 files changed, 0 insertions, 26 deletions
diff --git a/vimrc.vim b/vimrc.vim
index 53a60e0d..8f902777 100644
--- a/vimrc.vim
+++ b/vimrc.vim
@@ -27,32 +27,6 @@ augroup LocalVimrc
   autocmd BufRead,BufNewFile *.subx set ft=subx
 augroup END
 
-" Scenarios considered:
-"   opening or starting vim with a new or existing file without an extension (should interpret as C++)
-"   opening or starting vim with a new or existing file with a .mu extension
-"   starting vim or opening a buffer without a file name (ok to do nothing)
-"   opening a second file in a new or existing window (shouldn't mess up existing highlighting)
-"   reloading an existing file (shouldn't mess up existing highlighting)
-
-command! -nargs=1 E call EditMuFile("edit", <f-args>)
-if exists("&splitvertical")
-  command! -nargs=1 S call EditMuFile("vert split", <f-args>)
-  command! -nargs=1 H call EditMuFile("hor split", <f-args>)
-else
-  command! -nargs=1 S call EditMuFile("vert split", <f-args>)
-  command! -nargs=1 H call EditMuFile("split", <f-args>)
-endif
-
-function! EditMuFile(cmd, arg)
-  let l:full_path = "apps/" . a:arg
-  if filereadable(l:full_path . ".mu")
-    let l:full_path = l:full_path . ".mu"
-  else
-    let l:full_path = l:full_path . ".subx"
-  endif
-  exec "silent! " . a:cmd . " " . l:full_path
-endfunction
-
 " we often want to crib lines of machine code from other files
 function! GrepSubX(regex)
   " https://github.com/mtth/scratch.vim