Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks splits when used with { 'window': 'enew' } #128

Closed
chopfitzroy opened this issue Apr 19, 2016 · 5 comments
Closed

Breaks splits when used with { 'window': 'enew' } #128

chopfitzroy opened this issue Apr 19, 2016 · 5 comments
Labels

Comments

@chopfitzroy
Copy link

Hello when I have,

let g:fzf_layout = { 'window': 'enew' }

enabled, after I perform a search using FZF my splits resize incorrectly. see images below for example:

  1. Normal Layout
  2. How I expect it to look
  3. How it looks after fzf search in window

enter image description here
enter image description here
enter image description here

@junegunn
Copy link
Owner

Is it still reproducible with this minimal configuration?

call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'scrooloose/nerdtree'
call plug#end()
let g:fzf_layout = { 'window': 'enew' }

@chopfitzroy
Copy link
Author

Hey @junegunn will test tonight and let you know.

Cheers,
Otis.

@chopfitzroy
Copy link
Author

Hey @junegunn,

Using:

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

Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'scrooloose/nerdtree'

call plug#end()

nnoremap <leader>f :Files <cr>'

nnoremap <leader>b :Buffers <cr>

let NERDTreeShowHidden=1

autocmd vimenter * NERDTree

I still get the error.

Steps to reproduce:

  • nvim file.name (Open file)
  • ctrl + w - LeftArrow (Navigate from NERDTree to main window)
  • :vsp (This works fine)
  • :Files (Search for and select a random file)
  • ctrl + w - LeftArrow (Navigate to left most split)
  • :q (Close left most split and enter split I previous did fzf search in)
  • :vsp (Splits now broken)

I have attached a demoing gif I hope this helps.

desktop-animation

@junegunn
Copy link
Owner

junegunn commented Apr 20, 2016

Yeah, I could reproduce the problem. Thanks.
Please update the main fzf repo then it'll work fine.

By the way, you have a trailing ' after :Files <cr>.

@chopfitzroy
Copy link
Author

Hey @junegunn,

Woop woop thank you!!!

The ' is intentional I almost always use the exact match functionality.

Cheers,
Otis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants