Closed orlp closed 3 years ago
Reproduced with the following
FROM thinca/vim:v8.1.0451
ENV VIMPATH=/root/.vim \
PACKPATH=/root/.vim/pack/test/start
RUN apk --no-cache add git
RUN git clone https://github.com/lambdalisue/fern.vim $PACKPATH/fern.vim
COPY vimrc /root/.vim/
if exists('+compatible') && &compatible
set nocompatible
endif
if has('nvim')
set runtimepath^=~/.vim
set runtimepath+=~/.vim/after
set packpath^=~/.vim
endif
packloadall
filetype plugin indent on
syntax on
echomsg "Custom vimrc has loaded"
It seems ++nested
cause this issue. ~I'll fix it.~ I'll drop that version instead while Vim 8.1.0451 is too old to support.
++nested
is introduced by https://github.com/vim/vim/releases/tag/v8.1.1113
With #305, fern support Vim 8.1.2269 but 8.1.0451 so please update your Vim.
Would it be possible to add a version check to fern so that it at least tells the user to update instead of just failing silently?
No while it's too annoying if Vim plugin said "This plugin is not supported on your environment brabrabra" every after Vim started.
@lambdalisue I was more thinking that an error gets displayed if you tried calling :Fern
with a too old version, instead of on startup.
It shows "E492: Not an editor command: Fern" now introduced at #305.
Minimal
vimrc.vim
:Then
vim -u vimrc.vim
followed by:Fern ~ -drawer
gives just an empty buffer with nothing visible, but it does do something:My Vim version:
Doing the exact same process with
nvim v0.4.4
works on the same machine with the same vimrc.