summaryrefslogtreecommitdiff
path: root/modules/terminal.vim
diff options
context:
space:
mode:
authorChris <[email protected]>2020-04-23 22:44:32 -0400
committerChris <[email protected]>2020-04-23 22:44:32 -0400
commit29b0a5c47862f387c5905a85d2c03e056003b915 (patch)
tree7b8e4c064e9285f685a9e1c14d00e5d9c81b117c /modules/terminal.vim
parent6f4727d620f50e31f5043f33b6bccd86c8d73972 (diff)
auto push
Diffstat (limited to 'modules/terminal.vim')
-rw-r--r--modules/terminal.vim25
1 files changed, 0 insertions, 25 deletions
diff --git a/modules/terminal.vim b/modules/terminal.vim
deleted file mode 100644
index 5dfe28c3..00000000
--- a/modules/terminal.vim
+++ /dev/null
@@ -1,25 +0,0 @@
-" I am experimenting with different ways to use the terminal in nvim "
-" So far I hate all my options
-
-let s:term_buf = 0
-let s:term_win = 0
-
-function! Term_toggle(height)
- if win_gotoid(s:term_win)
- hide
- else
- botright new
- exec "resize " . a:height
- try
- exec "buffer " . s:term_buf
- catch
- call termopen($SHELL, {"detach": 0})
- let s:term_buf = bufnr("")
- endtry
- startinsert!
- let s:term_win = win_getid()
- endif
-endfunction
-
-nnoremap <silent> <M-t> :call Term_toggle(10)<cr>
-tnoremap <silent> <M-t> <C-\><C-n>:call Term_toggle(10)<cr>