lambdalisue / vim-fern

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

Fern %:h -reveal=% -drawer has a wrong focus #301

Closed windwp closed 3 years ago

windwp commented 3 years ago

I open file ./plugin/abcdef.vim then

I run that command Fern %:h -reveal=% -drawer and the focus is wrong.

it should focus on abcdef.vim

lambdalisue commented 3 years ago

Because you are opening a fern buffer, the focus is moved on the fern buffer. Use -stay option to stay on the buffer you were in.

windwp commented 3 years ago

no i want that cursor is focus on line have file abcdef.vim on drawner. currently it is focus on the begin line of drawner

lambdalisue commented 3 years ago

Oops. Sorry you said "focus" thus I thought window focus.

Prob. https://github.com/lambdalisue/fern.vim/issues/295#issuecomment-774401337

windwp commented 3 years ago

Ok thanks