Open
Description
- I have fzf 0.23.0 or above
- I have read through https://github.com/junegunn/fzf.vim/blob/master/README.md
- I have read through https://github.com/junegunn/fzf/blob/master/README-VIM.md
- I have read through the manual page of fzf (
man fzf
) - I have searched through the existing issues
Hi please see the issue in GIF. Essentially when running :Rg
command or :Files
command (and others), switching from files that contains Chinese characters causes rendering issue that does not clear the Chinese characters from the screen.
PS: I've tested on my 2 PCs running Win10Pro and Win10Home, both set CHCP = 65001 and vim, CMD, Powershell, Bash all set the font that supports Chinese. Plz let me know if anything else I could try. Thanks much in advance!
PS2: below is my fzf config, pretty standard I assume.
"fzf config
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.9 } }
let $FZF_DEFAULT_OPTS="--ansi --preview-window 'right:60%' --margin=1,4"
let $PATH = "C:\\Program Files\\Git\\usr\\bin;" . $PATH
"!! note: fd need to be installed separated before using in fd
"ignored file search is configured @ c:\Users\xxx\AppData\Roaming\fd\ignore
let $FZF_DEFAULT_COMMAND = 'fd --type f --color always'
command! -bang -nargs=* Rg
\ call fzf#vim#grep(
\ 'rg --column --line-number --no-heading --color=always --smart-case -- '.shellescape(<q-args>), 1,
\ fzf#vim#with_preview(), <bang>0)
nnoremap <Leader>/ :Rg<Space>