Please make sure you have searched through the F.A.Q. first.
Please make sure you are using the latest version of this plugin.
It's better to use English as it's more friendly to other non-Chinese native users.
Environment
If you are using vim(not neovim), fill in the following blanks
Output of vim --version: vim9.0.335
Platform:
[x] Linux
[ ] Mac OS X
[x] Windows
If you are using neovim, just run :checkhealth floaterm and post the content
below.
not happened in neovim
Configurations related to vim-floaterm in vimrc(i.e. g:floaterm_xxx):
if has('patch-8.1.1')
set termwinkey=<C-_>
let g:has_terminal=2
endif
tnoremap <expr> <C-r> '<C-\><C-n>"'.nr2char(getchar()).'pi'
tnoremap <M-q> <C-\><C-n>:q!<CR>
tnoremap <M-w> <C-\><C-n>:ChooseWin<CR>
tnoremap <C-v> <C-\><C-n>
tnoremap <C-g> <C-\><C-n>
" --------------------------
" XXX: cannot paste in floaterm when using [vim9.0]
" --------------------------
if g:has_terminal == 1
tnoremap <M-'> <C-\><C-n>""pa
else
tnoremap <M-'> <C-_>""
endif
if has('clipboard')
if g:has_terminal == 1
tnoremap <M-v> <C-\><C-n>"*pa
else
tnoremap <M-v> <C-_>"*
endif
else
if has('nvim')
tnoremap <M-v> <C-\><C-n>""pa
else
tnoremap <M-v> <C-_>""
endif
endif
Describe your question, feature request, or bug.
Steps to reproduce
Using the minimal vimrc
You can see what I have mapped and configured to yank from " or * into terminal, I am sure it is floaterm's bug related `only` with vim's `popup window`.
1. In `vim-terminal-help` when vim , the paste map takes effects, g:has_terminal==2
2. In `floterm` in the right half screen(not popup) when vim , the paste map takes effects, g:has_terminal==2
3. In `neovim`,the paste map takes effects, g:has_terminal==1
4. In `terminal` created in next tab ,the paste map takes effects, g:has_terminal==1 or 2
Before reporting
Please make sure you have searched through the F.A.Q. first.
Please make sure you are using the latest version of this plugin.
It's better to use English as it's more friendly to other non-Chinese native users.
Environment
If you are using vim(not neovim), fill in the following blanks
vim --version
: vim9.0.335Platform:
If you are using neovim, just run
:checkhealth floaterm
and post the contentbelow.
Configurations related to vim-floaterm in vimrc(i.e.
g:floaterm_xxx
):Describe your question, feature request, or bug.
Steps to reproduce
Using the minimal vimrc
Steps to reproduce the behavior:
Actual behaviour
Just do
M-'
orM-* , give me
""or
"*`Expected behaviour
Paste from register " or *
Screenshots(Optional, GIF is better)