lambdalisue / vim-fern

🌿 General purpose asynchronous tree viewer written in Pure Vim script
MIT License
1.29k stars 49 forks source link

Not working on MacOS #293

Closed mrwonderfulness closed 3 years ago

mrwonderfulness commented 3 years ago

Are there issues with this plugin on MacOS? I have it loaded with vim plug and when I run it in vim with Fern . at the command prompt I get a blank vim screen and this:

fern:///file:///Users/my_username;$

I also tried it with the -drawer option but still nothing. Does it conflict with some other plugin or vim setting?

lambdalisue commented 3 years ago

I'm using macOS

Does it conflict with some other plugin or vim setting?

Probably. Investigate the situation by using minimal vimrc like https://github.com/lambdalisue/fern.vim/issues/290#issuecomment-769325553

lambdalisue commented 3 years ago

No response. Close it

omenking commented 3 years ago

I just did a fresh install on my mac and this fern plugin refuses to load. I keep getting newtree instead:

.vimrc file

call plug#begin('~/.vim/plugged')

Plug 'sickill/vim-monokai'
Plug 'lambdalisue/fern.vim'

call plug#end()

autocmd VimEnter *
  \  if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
  \|   PlugInstall --sync | q
  \| endif
Screen Shot 2021-03-27 at 11 50 45 AM Screen Shot 2021-03-27 at 11 51 26 AM

I also tried minimal vimrc file but no luck:

if exists('+compatible') && &compatible
  set nocompatible
endif

set packpath=
set runtimepath^=/Users/andrewbrown/.vim/plugged/fern.vim

filetype plugin indent on
syntax on

Looking inside the plugin it says requires v8.1.0994 I am running v8.1.950

if exists('g:loaded_fern') || (!has('nvim') && !has('patch-8.1.0994'))
  " NOTE:
  " At least https://github.com/vim/vim/releases/tag/v8.1.0994 is required
  " thus minimum working version is 8.1.0994. Remember that minimum support
  " version is not equal to this.
  finish
endif

I placed an echo within the ferm.vim and it definitely getting called. My echo only appears to print the first character so hard to debug at the moment