LeaderF
LeaderF copied to clipboard
macbook vim paste copied string to LeaderF prompt not working
-
vim or neovim?
- [x] vim
- [ ] neovim
-
Output of
vim --version
ornvim --version
: VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Jul 9 2022 18:37:14) Included patches: 1-48 Compiled by root@bdwork Huge version without GUI. Features included (+) or not (-): +acl +file_in_path +mouse_urxvt -tag_any_white +arabic +find_in_path +mouse_xterm -tcl +autocmd +float +multi_byte +termguicolors +autochdir +folding +multi_lang +terminal -autoservername -footer -mzscheme +terminfo -balloon_eval +fork() +netbeans_intg +termresponse +balloon_eval_term +gettext +num64 +textobjects -browse -hangul_input +packages +textprop ++builtin_terms +iconv +path_extra +timers +byte_offset +insert_expand -perl +title +channel +ipv6 +persistent_undo -toolbar +cindent +job +popupwin +user_commands -clientserver +jumplist +postscript +vartabs -clipboard +keymap +printer +vertsplit +cmdline_compl +lambda +profile +vim9script +cmdline_hist +langmap -python +viminfo +cmdline_info +libcall +python3 +virtualedit +comments +linebreak +quickfix +visual +conceal +lispindent +reltime +visualextra +cryptv +listcmds +rightleft +vreplace +cscope +localmap +ruby +wildignore +cursorbind +lua +scrollbind +wildmenu +cursorshape +menu +signs +windows +dialog_con +mksession +smartindent +writebackup +diff +modify_fname -sodium -X11 +digraphs +mouse -sound -xfontset -dnd -mouseshape +spell -xim -ebcdic +mouse_dec +startuptime -xpm +emacs_tags -mouse_gpm +statusline -xsmp +eval -mouse_jsbterm -sun_workshop -xterm_clipboard +ex_extra +mouse_netterm +syntax -xterm_save +extra_search +mouse_sgr +tag_binary -farsi -mouse_sysmouse -tag_old_static system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" defaults file: "$VIMRUNTIME/defaults.vim" fall-back for $VIM: "/usr/local/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--as-needed -o vim -lm -ltinfo -lelf -lselinux -lrt -ldl -L/usr/lib -lluajit-5.1 -L/usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu -lpython3.8 -lpthread -ldl -lutil -lm -lruby -lpthread -lrt -ldl -lcrypt -lm -L/usr/lib64 -
Output of
:echo has("python")
: 0 -
Output of
:echo has("python3")
: 1 -
Output of
:echo &pythondll
(only vim, not neovim): -
Output of
:echo &pythonthreedll
(only vim, not neovim): -
Output of
:py print(sys.version)
: -
Output of
:py3 print(sys.version)
: 3.8.0 (default, Nov 26 2019, 02:37:02) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] -
Operating system:
- [ ] Linux
- [x] Mac OS X
- [ ] Windows
- [ ] Etc.
-
Configurations related to LeaderF in vimrc: let g:Lf_ShortcutF = '
' noremap :LeaderfTag let g:Lf_StlSeparator = { 'left': '', 'right': '', 'font': '' } let g:Lf_RootMarkers = ['.project', '.root', '.svn', '.git'] let g:Lf_WorkingDirectoryMode = 'Ac' let g:Lf_WindowHeight = 0.30 let g:Lf_CacheDirectory = expand('~/.vim/cache') let g:Lf_ShowRelativePath = 0 let g:Lf_HideHelp = 1 let g:Lf_StlColorscheme = 'powerline' let g:Lf_PreviewResult = {'Function':0, 'BufTag':0} let g:Lf_GtagsAutoGenerate = 1 let g:Lf_Gtagslabel = 'pygments'
Describe your question, feature request, or bug.
can't paste copied string to LeaderF prompt
Steps to reproduce
Actual behaviour
- use ctrl+v: nothing happend
- use command+v: only the first character of the string copied is pasted to LeaderF prompt
eg. I have copied string "runPodSandbox"
-
typed ctrl+v, nothing pasted
-
typed command+v: onlyt character 'r' pasted
Expected behaviour
the string copied is pasted to prompt entirety
Because your vim is compiled with -clipboard
.
Because your vim is compiled with
-clipboard
.
@Yggdroot Execuse me, I'm not so familiar with vim. I have make vim support +clipboard and +xterm_clipboard.
Now I can use vim yank string and ctrl + v paste to LeaderF prompt.
But if I use command + c to copy string out of vim (eg. from vscode), I still can't paste copied string to LeaderF prompt using both ctrl + v and command + v.
Could you please guild me how to copy string out of vim (eg. from vscode) and paste to LeaderF prompt now? Thanks so much!
my vim --version output now:
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Jul 31 2022 11:20:01) Included patches: 1-117 Compiled by root@bdwork Huge version without GUI. Features included (+) or not (-): +acl +file_in_path +mouse_urxvt -tag_any_white +arabic +find_in_path +mouse_xterm -tcl +autocmd +float +multi_byte +termguicolors +autochdir +folding +multi_lang +terminal -autoservername -footer -mzscheme +terminfo -balloon_eval +fork() +netbeans_intg +termresponse +balloon_eval_term +gettext +num64 +textobjects -browse -hangul_input +packages +textprop ++builtin_terms +iconv +path_extra +timers +byte_offset +insert_expand -perl +title +channel +ipv6 +persistent_undo -toolbar +cindent +job +popupwin +user_commands +clientserver +jumplist +postscript +vartabs +clipboard +keymap +printer +vertsplit +cmdline_compl +lambda +profile +vim9script +cmdline_hist +langmap -python +viminfo +cmdline_info +libcall +python3 +virtualedit +comments +linebreak +quickfix +visual +conceal +lispindent +reltime +visualextra +cryptv +listcmds +rightleft +vreplace +cscope +localmap +ruby +wildignore +cursorbind +lua +scrollbind +wildmenu +cursorshape +menu +signs +windows +dialog_con +mksession +smartindent +writebackup +diff +modify_fname -sodium +X11 +digraphs +mouse -sound +xfontset -dnd -mouseshape +spell -xim -ebcdic +mouse_dec +startuptime -xpm +emacs_tags -mouse_gpm +statusline +xsmp_interact +eval -mouse_jsbterm -sun_workshop +xterm_clipboard +ex_extra +mouse_netterm +syntax -xterm_save +extra_search +mouse_sgr +tag_binary -farsi -mouse_sysmouse -tag_old_static system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" defaults file: "$VIMRUNTIME/defaults.vim" fall-back for $VIM: "/usr/local/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--as-needed -o vim -lSM -lICE -lXt -lX11 -lSM -lICE -lm -ltinfo -lelf -lselinux -lrt -ldl -L/usr/lib -lluajit-5.1 -L/usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu -lpython3.8 -lpthread -ldl -lutil -lm -lruby -lpthread -lrt -ldl -lcrypt -lm -L/usr/lib64
I can not reproduce.
Copy something, then see the output of reg *
in vim.
same issue here, vim8/9 +python3 +cli +clipboard reg : 类型 名称 内容 c " fmt.Printf
leader +f: then use cmd +v => process hang
Please refer to #427 .