Closed ShinyLeee closed 6 years ago
The 'readonly'
is local to the buffer, so it should only be set for the Startify buffer. All files opened from the buffer should be opened normally.
<cr>
on an entry to open the file, right?Plug
lines but the startify one. Nerdtree is known to make troubles.)E21: Cannot make changes, 'modifiable' is off
shows.Can you give exact steps?
E.g. vim
, (startify buffer appears), you navigate to a file with j
, you hit <cr>
to open the file, the file gets opened read-only.
Is the above correct?
vim
then startify buffer appears as below
index
, e.g. 0 (open a empty buffer by e
or :new
is ok)Thanks for your reply!
I think this is a Vim bug.
Do you happen to use a very old Vim in this case? (Maybe system Vim from an older macOS version? See https://github.com/mhinz/vim-startify#gotchas)
After upgrade to VIM - Vi IMproved 8.1 (2018 May 17, compiled May 29 2018 21:39:01)
by homebrew, everything works fine.
Maybe the previous vim version VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 29 2017 18:37:46)
have bug too..
Yeah, Vim is very far from being flawless software. Stuff like this happens every now and then. :-)
Thanks for bringing this up anyway!
It only happens when I open file in Startify Screen, my .vimrc , and my vim version is
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 29 2017 18:37:46)
,I am wondering whether this code caused it.