Opened 12 years ago

Closed 6 years ago

#37727 closed defect (fixed)

vim, MacVim: Don't write backup for crontab or chpass

Reported by: raimue (Rainer Müller) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: nonstop.server@…, skymoo (Adam Mercer)
Port: vim MacVim

Description

The current vim configuration does not support EDITOR=${prefix}/bin/vim crontab -e or EDITOR=${prefix}/bin/vim chpass as the file is deleted and rewritten while crontab watches the file descriptor for changes.

The equivalent of /usr/share/vim/vimrc needs to be applied:

" Don't write backup file if vim is being called by "crontab -e"
au BufWrite /private/tmp/crontab.* set nowritebackup
" Don't write backup file if vim is being called by "chpass"
au BufWrite /private/etc/pw.* set nowritebackup

Change History (6)

comment:1 Changed 12 years ago by nonstop.server@…

Cc: nonstop.server@… added

Cc Me!

comment:2 Changed 10 years ago by skymoo (Adam Mercer)

Cc: ram@… added

Cc Me!

comment:3 Changed 9 years ago by raimue (Rainer Müller)

Port: vim-app removed
Status: newassigned
Summary: vim, vim-app, MacVim: Don't write backup for crontab or chpassvim, MacVim: Don't write backup for crontab or chpass

comment:4 Changed 6 years ago by raimue (Rainer Müller)

Fixed in upstream vim as of 8.0.1704.

comment:5 Changed 6 years ago by raimue (Rainer Müller)

In 00f3dc13b8ee0067b027f1fc6fd7b372a566618c/macports-ports (master):

MacVim: Update to version 8.1.snapshot147

Use --with-python-command/--with-python3-command configure options and
remove custom patches for the same functionality.

Closes: #56569
See: #37727

comment:6 Changed 6 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: assignedclosed

In 0dbff7850ad528025e44d4e9c5eaa0e864bcb43d/macports-ports (master):

vim: Update to version 8.1.0022

Use --with-python-command/--with-python3-command configure options and
remove custom patches for the same functionality.

Closes: #37727

Note: See TracTickets for help on using tickets.