This is the default border, it looks ugly

default border

This is fzf preview window, how I can replace the popup border as fzf's ?

fzf border

Update: thank @ralf ! it works !

I replace it with...


['─', '│', '─', '│', '╭', '╮', '╯', '╰'],


['─', '│', '─', '│', '┌', '┐', '┘', '└'],

fzf style


The border depends on 'encoding' and 'ambiwidth'. From the docs:

By default a double line is used all around when 'encoding' is "utf-8" and 'ambiwidth' is "single", otherwise ASCII characters are used.

In your case ASCII characters are used.

If you programmed the popup yourself, see :h popup and search for borderchars.

BTW: I don't think that fzf is using Vim popup.

  • IIRC fzf spins up a terminal (in or out of vim) when invoked via its vim plugin.
    – D. Ben Knoble
    May 27 '20 at 18:28
  • To be precise, fzf uses a terminal, except in Terminal Vim with the default layout (:h fzf-inside-terminal-buffer).
    – Biggybi
    May 28 '20 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.