dylanaraps / fff.vim

A plugin for vim/neovim which allows you to use fff as a file opener.
MIT License
104 stars 11 forks source link

Preserve split prefs #14

Open Roy-Orbison opened 3 years ago

Roy-Orbison commented 3 years ago

They are global settings and get overwritten every time fff#Run() is invoked.

Roy-Orbison commented 2 years ago

@dylanaraps Since you agreed that #16 made sense, is there some reason this one doesn't? Is there something I need to improve?

Roy-Orbison commented 1 year ago

This is a consistently reproducible bug, and this patch is nearly two years old. To verify:

  1. Check your default split prefs with :set sb? spr?.
  2. Set g:fff#split_direction to anything that conflicts with those, for me that's 'nospb nospr'.
  3. Run :F.
  4. Check your default split prefs again, they will have been overwritten with fff.vim's internal setting.