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

[MacVim] Cannot execute fzf in MacVim #234

Closed
bangedorrunt opened this issue May 13, 2015 · 9 comments
Closed

[MacVim] Cannot execute fzf in MacVim #234

bangedorrunt opened this issue May 13, 2015 · 9 comments

Comments

@bangedorrunt
Copy link

Hi @junegunn 🌃 ,

I just run into this error today while trying to run FZF command on MacVim. Here is the error msg 😵

Error running xterm -T [fzf] -bg "#141414" -fg "#E6E1DC" -geometry 183x25+0+0 -e bash -ic '/Users/babygau/.fzf/bin/fzf --expected=ctrl-v,ctrl-x,ctrl-m,ctrl-t > /var/folders/kh/hrlrq3cx6fg5kvb1tft8jm900000gn/T/vMy8R1Z/2

Note that, Vim Terminal has no issue at all

@bangedorrunt bangedorrunt changed the title Cannot execute fzf in MacVim [MacVim] Cannot execute fzf in MacVim May 13, 2015
@junegunn
Copy link
Owner

  • Does this work on command line?
xterm -T [fzf] -bg "#141414" -fg "#E6E1DC" -geometry 183x25+0+0 -e bash -ic '/Users/babygau/.fzf/bin/fzf'
  • Can you check if it works when there's no other plugins and settings?
mvim -Nu <(echo 'set rtp+=~/.fzf') +FZF
  • This is not relevant to your issue, but I just updated the vim plugin so that MacVim window is refocused when fzf is closed. So, please update.

@bangedorrunt
Copy link
Author

Thanks @junegunn for your quick reply. My feedback as follows:

Does this work on command line?

I don't understand what you mean here. If I run fzf on terminal, it works. If I run your mentioned script, it says zsh: command not found: xterm

Can you check if it works when there's no other plugins and settings?

It didn't work, I still suffer from the same error 😞

This is not relevant to your issue, but I just updated the vim plugin so that MacVim window is refocused when fzf is closed. So, please update

With new update, the nagging error has gone, but the plugin is defective. There no pop-up windows for FZF

@junegunn
Copy link
Owner

zsh: command not found: xterm

Well, that's the reason. You need to install http://xquartz.macosforge.org/landing/

With new update, the nagging error has gone, but the plugin is defective. There no pop-up windows for FZF

The update wasn't meant to fix your problem. I just wanted to let you know of it.

@bangedorrunt
Copy link
Author

Well, that's the reason. You need to install http://xquartz.macosforge.org/landing/

Your suggestion is spot on. I can run fzf on MacVim now 👍

The update wasn't meant to fix your problem. I just wanted to let you know of it.

Yeah, I also just wanted to let you know anyway 😀

Many thanks @junegunn, cheers 💯

@junegunn
Copy link
Owner

Great. Maybe I'll have to mention this requirement somewhere. Thanks.

@bangedorrunt
Copy link
Author

Thank you too 😄

@bangedorrunt
Copy link
Author

@junegunn
This could not be an issue, but is there anyway to change cursor background in fzf, currently the cursor background is white and it looks like a block cursor. I just want to turn off cursor highlight so it will look like a vertical bar cursor.

@junegunn
Copy link
Owner

I don't know. fzf is an ncurses program and I haven't checked if it's possible to customize cursor display on ncurses.

@bangedorrunt
Copy link
Author

Thanks @junegunn,

I found a way to fix it

set highlight TermCursor NONE

And the background disappeared though I lost the vertical bar cursor.

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

No branches or pull requests

2 participants