From 29b0a5c47862f387c5905a85d2c03e056003b915 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 23 Apr 2020 22:44:32 -0400 Subject: auto push --- modules/terminal.vim | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 modules/terminal.vim (limited to 'modules/terminal.vim') 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 :call Term_toggle(10) -tnoremap :call Term_toggle(10) -- cgit v1.2.3