summaryrefslogtreecommitdiff
path: root/vim/vim-potion/autoload/potion/running.vim
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2021-11-03 19:59:44 +0100
committerMiguel <m.i@gmx.at>2021-11-03 19:59:44 +0100
commitf70d5dc9b1f546bcfae67f067fe2e3b67f94ca45 (patch)
tree3bffaa05b78db0e393bc44eb273f771e08320154 /vim/vim-potion/autoload/potion/running.vim
parente3fb79099e233185825b248a0b275173bd182239 (diff)
improving dotfiles
Diffstat (limited to 'vim/vim-potion/autoload/potion/running.vim')
-rw-r--r--vim/vim-potion/autoload/potion/running.vim33
1 files changed, 0 insertions, 33 deletions
diff --git a/vim/vim-potion/autoload/potion/running.vim b/vim/vim-potion/autoload/potion/running.vim
deleted file mode 100644
index 562f713..0000000
--- a/vim/vim-potion/autoload/potion/running.vim
+++ /dev/null
@@ -1,33 +0,0 @@
-function! potion#running#PotionCompileAndRunFile()
- write
- silent !clear
- execute "!" . g:potion_command . " " . bufname("%")
-endfunction
-
-function! potion#running#PotionShowBytecode()
-
- write
-
- " Get the bytecode.
- let bytecode = system(g:potion_command . " -c -V " . bufname("%") . " 2>&1")
-
- " Check returned string for errors.
- if bytecode=~#"Syntax error"
- let bytecode = "SYNTAX ERROR!! Check your potion."
- endif
-
- " Open a new split and set it up or use existing one!
- let potbufnr=bufwinnr('__Potion_Bytecode__')
- if potbufnr==#-1
- vsplit __Potion_Bytecode__
- else
- execute potbufnr.'wincmd w'
- endif
- normal! ggdG
- setlocal filetype=potionbytecode
- setlocal buftype=nofile
-
- " Insert the bytecode.
- call append(0, split(bytecode, '\v\n'))
-
-endfunction