aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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