Closed poetaman closed 3 years ago
We have no idea. I performed replace
action and did same thing but could not reproduced in Vim/Neovim.
https://user-images.githubusercontent.com/546312/111063290-14730880-84f1-11eb-89d2-60ed6c081225.mp4
I think, that behavior comes from your configuration.
See https://github.com/lambdalisue/fern.vim/issues/290#issuecomment-769325553 to try fern.vim with minimal vimrc.
@lambdalisue Narrowed down to the following minimal configuration. You should be able to reproduce this behavior with it. (of course update the runtime path to yours)
if exists('+compatible') && &compatible
set nocompatible
endif
set packpath=
set runtimepath^=~/.vim/plugged/fern.vim/
filetype plugin indent on
syntax on
augroup nofoldonopen
autocmd!
autocmd BufWinEnter * normal zR
augroup END
Because R
is mapped to rename
action in fern. Use normal!
instead to make sure Vim's native mapping is used instead like
augroup nofoldonopen
autocmd!
autocmd BufWinEnter * normal! zR
augroup END
@lambdalisue Thanks!
Since some commit,
Fern .
or perhaps something likeFern . -drawer
also opens afern-rep
buffer in a new split (split made in last focussed buffer). How can I disable that from happening? When I had first installed this plugin, it didn't do anything like that (I just want to see drawer, for instance, when I runFern . -drawer
) Thanks!Here's a GIF that shows the problem: