tpope / vim-vinegar

vinegar.vim: Combine with netrw to create a delicious salad dressing
https://www.vim.org/scripts/script.php?script_id=5671
2.23k stars 87 forks source link

Copy all file create an error #118

Closed OpakAlex closed 4 years ago

OpakAlex commented 4 years ago

OS: Catalina Vim version -

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jun 18 2020 17:05:56)
macOS version
Included patches: 1-1000

When i go to file, select all and click Y, then i click -, and go to new file, and click P, i got file content like: ../ If windown open already, and just go to window it works perfect, only issue when i copy and click -. Can you help?

AndrewVos commented 4 years ago

I'm experiencing this on Ubuntu 20.03. Opening vim-vinegar seems to destroy the default copy buffer.

VIM - Vi IMproved 8.1 (2018 May 18, compiled Apr 15 2020 06:40:31)
Included patches: 1-2269
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Huge version with GTK3 GUI.  Features included (+) or not (-):
+acl               -farsi             -mouse_sysmouse    -tag_any_white
+arabic            +file_in_path      +mouse_urxvt       +tcl
+autocmd           +find_in_path      +mouse_xterm       +termguicolors
+autochdir         +float             +multi_byte        +terminal
-autoservername    +folding           +multi_lang        +terminfo
+balloon_eval      -footer            -mzscheme          +termresponse
+balloon_eval_term +fork()            +netbeans_intg     +textobjects
+browse            +gettext           +num64             +textprop
++builtin_terms    -hangul_input      +packages          +timers
+byte_offset       +iconv             +path_extra        +title
+channel           +insert_expand     +perl              +toolbar
+cindent           +job               +persistent_undo   +user_commands
+clientserver      +jumplist          +postscript        +vartabs
+clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +virtualedit
+cmdline_hist      +langmap           -python            +visual
+cmdline_info      +libcall           +python3           +visualextra
+comments          +linebreak         +quickfix          +viminfo
+conceal           +lispindent        +reltime           +vreplace
+cryptv            +listcmds          +rightleft         +wildignore
+cscope            +localmap          -ruby              +wildmenu
+cursorbind        +lua               +scrollbind        +windows
+cursorshape       +menu              +signs             +writebackup
+dialog_con_gui    +mksession         +smartindent       +X11
+diff              +modify_fname      +sound             -xfontset
+digraphs          +mouse             +spell             +xim
+dnd               +mouseshape        +startuptime       +xpm
-ebcdic            +mouse_dec         +statusline        +xsmp_interact
+emacs_tags        +mouse_gpm         -sun_workshop      +xterm_clipboard
+eval              -mouse_jsbterm     +syntax            -xterm_save
+ex_extra          +mouse_netterm     +tag_binary        
+extra_search      +mouse_sgr         -tag_old_static    
AndrewVos commented 4 years ago

I've just looked at the latest commits. This is a recent thing for me, and I tend to keep updated plugins. This probably means it's a netrw bug.

AndrewVos commented 4 years ago

Okay @OpakAlex this is because of your netrw/vim version. See here: https://github.com/vim/vim/issues/2445

I would suggest installing vim from source, or upgrading it if possible in your OS.

AndrewVos commented 4 years ago

A workaround that fixes this is to just enable the banner:

let g:netrw_banner = 1