aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Buckley-Houston2021-12-11 12:36:04 +0000
committerThomas Buckley-Houston2021-12-11 12:36:04 +0000
commit498a7e77539e44d7bee60c5e5379dafbd98a19e8 (patch)
treed793f1a55a79732dc82c6595514e57630c3f0f53
parente79194233442e79e515c47c01573580fdf3690b7 (diff)
Allow `:term` buffers to receive input
-rw-r--r--autoload/novim_mode.vim4
1 files changed, 3 insertions, 1 deletions
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