mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.31k stars 187 forks source link

Startify screen opening files are in readonly mode #326

Closed ShinyLeee closed 6 years ago

ShinyLeee commented 6 years ago

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.

image

mhinz commented 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.

ShinyLeee commented 6 years ago
mhinz commented 6 years ago

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?

ShinyLeee commented 6 years ago

Thanks for your reply!

mhinz commented 6 years ago

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)

ShinyLeee commented 6 years ago

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..

mhinz commented 6 years ago

Yeah, Vim is very far from being flawless software. Stuff like this happens every now and then. :-)

Thanks for bringing this up anyway!