From 498a7e77539e44d7bee60c5e5379dafbd98a19e8 Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Sat, 11 Dec 2021 07:36:04 -0500 Subject: Allow `:term` buffers to receive input --- autoload/novim_mode.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/novim_mode.vim b/autoload/novim_mode.vim index 0278f51..3e003d2 100644 --- a/autoload/novim_mode.vim +++ b/autoload/novim_mode.vim @@ -1,7 +1,9 @@ " A fundamental question for this plugin is whether insertmode " is always relevant. This is where we try to get an answer. function! s:IsEditableBuffer() - if &buftype ==# 'nofile' + if &buftype ==# 'terminal' + return 1 + elseif &buftype ==# 'nofile' \|| !&modifiable \|| &readonly return 0 -- cgit v1.2.3-70-g09d2