Hello all, The "backupcopy" option does not appear to be working as documented in the version of VIM I have built locally. As the run-time contains online help for the feature I assume that my version of VIM supports it, or does it?
Binary: 8.0.1766 Runtime: 8.0.1766 (full information at bottom) This is the age-old chestnut about trying to symbolic link "~/.viminfo" to another directory. The following URL is what appears to be the most recent bug raised on the issue: https://github.com/vim/vim/issues/2506 It was marked as resolved but my experiences beg to differ. These are the situations I am seeing: 1) I have no ".vimrc"; I edit shell script "x"; syntax highlighting is normal; ":set backupcopy" returns "auto"; I cursor around in file; I exit file; ".viminfo" is written as a regular file with lastediting position in "x". 2) I copy "~/.viminfo" to "~/temp/.viminfo" and symbolic link "~/.viminfo" to "~/temp/.viminfo"; I have no ".vimrc"; I edit script file "x"; syntax highlighting is normal; "set backupcopy" returns "auto"; I enter ":set backupcopy=yes"; I cursoraround in file; I exit file; ".viminfo" is written as a regular filewith last editing position in "x" and the symbolic link vanishes. 3) I copy "~/.viminfo" to "~/temp/.viminfo" and symbolic link "~/.viminfo" to "~/temp/.viminfo"; In the shell I execute "echo 'set backupcopy=yes' >~/.vimrc"; I edit file "x"; all *syntax highlighting disappears* and all text renders in white; ":set backupcopy" returns "yes"; I cursor around in file; I exit file; ".viminfo" is written as a regular file with last editingposition in "x" and the symbolic link vanishes. 4) Setting "backupcopy" to "no" when performing (2) or (3) above has no effect. In this case it performs as documented. So, from my experiences, "backupcopy" is not working as documented for "backupcopy=yes" in that it is not preserving file attributes (in this case, symbolic link). Furthermore, there is the mystery about why creating a one-line ".vimrc" with "set backupcopy=yes" in it removes all syntax highlighting. Any comments would be appreciated. Thanks in advance, Andre. [ SYSTEM INFO ] System: Ubuntu 18.10 VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Oct 25 2019 10:17:56) Included patches: 1-1766 Compiled by andre@pegasus Huge version with GTK2 GUI. Features included (+) or not (-): +acl +farsi +mouse_sgr -tag_any_white +arabic +file_in_path -mouse_sysmouse -tcl +autocmd +find_in_path +mouse_urxvt +termguicolors -autoservername +float +mouse_xterm +terminal +balloon_eval +folding +multi_byte +terminfo +balloon_eval_term -footer +multi_lang +termresponse +browse +fork() -mzscheme +textobjects ++builtin_terms +gettext +netbeans_intg +timers +byte_offset -hangul_input +num64 +title +channel +iconv +packages +toolbar +cindent +insert_expand +path_extra +user_commands +clientserver +job -perl +vertsplit +clipboard +jumplist +persistent_undo +virtualedit +cmdline_compl +keymap +postscript +visual +cmdline_hist +lambda +printer +visualextra +cmdline_info +langmap +profile +viminfo +comments +libcall -python +vreplace +conceal +linebreak -python3 +wildignore +cryptv +lispindent +quickfix +wildmenu +cscope +listcmds +reltime +windows +cursorbind +localmap +rightleft +writebackup +cursorshape -lua -ruby +X11 +dialog_con_gui +menu +scrollbind -xfontset +diff +mksession +signs +xim +digraphs +modify_fname +smartindent +xpm +dnd +mouse +startuptime +xsmp_interact -ebcdic +mouseshape +statusline +xterm_clipboard +emacs_tags +mouse_dec -sun_workshop -xterm_save +eval -mouse_gpm +syntax +ex_extra -mouse_jsbterm +tag_binary +extra_search +mouse_netterm +tag_old_static system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" system gvimrc file: "$VIM/gvimrc" user gvimrc file: "$HOME/.gvimrc" 2nd user gvimrc file: "~/.vim/gvimrc" defaults file: "$VIMRUNTIME/defaults.vim" system menu file: "$VIMRUNTIME/menu.vim" fall-back for $VIM: "/usr/local/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -L/usr/local/lib -Wl,--as-needed -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lnsl -lselinux -ldl -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/PSXP216MB027702AA754E1966E21CC274C0650%40PSXP216MB0277.KORP216.PROD.OUTLOOK.COM.
