Pārlūkot izejas kodu

Set buffer modifiable and noreadonly

When using :Startify in an empty buffer (so no :enew is used), which is set to
'nomodifiable' or 'readonly', the plugin would throw errors.

Closes https://github.com/mhinz/vim-startify/issues/406
Closes https://github.com/mhinz/vim-startify/issues/408
Marco Hinz 5 gadi atpakaļ
vecāks
revīzija
2e610ac523
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      autoload/startify.vim

+ 2 - 0
autoload/startify.vim

@@ -67,11 +67,13 @@ function! startify#insane_in_the_membrane(on_vimenter) abort
         \ colorcolumn=
         \ foldcolumn=0
         \ matchpairs=
+        \ modifiable
         \ nobuflisted
         \ nocursorcolumn
         \ nocursorline
         \ nolist
         \ nonumber
+        \ noreadonly
         \ norelativenumber
         \ nospell
         \ noswapfile