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

Disable unicode for windows #1375

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Disable unicode for windows #1375

wants to merge 1 commit into from

Conversation

iaalm
Copy link

@iaalm iaalm commented Mar 9, 2022

Hi, I use fzf.vim on Windows with ambiwidth=single. When I run any long operations like "Rg", my vim keeps bell and there's no way to disable it from vim side. It's quite annoying. It also doesn't matter whether I use cmd or powershell. I find it related to this issue because I don't see the spinner characters. Instead I see characters like "&" or "8" and the bell has same rhythm with the chars.
Screenshot

My suggestion is to add "--no-unicode" to all windows machine. Or maybe we can add a flag to disable spinner chars only?
Tested on Windows 11, gVim 8.2.

@junegunn
Copy link
Owner

junegunn commented Aug 3, 2022

I'm not really a Windows user, so it's hard to tell if it's the right call to disable it altogether. Some systems are capable of properly rendering the spinner (see junegunn/fzf#2631).

I'd suggest that you set it in your $FZF_DEFAULT_OPTS for the moment until we find a better way.

" In your vimrc
if has('win32') || has('win64')
  let $FZF_DEFAULT_OPTS = '--no-unicode'
endif

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

Successfully merging this pull request may close these issues.

None yet

2 participants