#37727: vim, vim-app, MacVim: Don't write backup for crontab or chpass ----------------------+-------------------------------- Reporter: raimue@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: vim vim-app MacVim ----------------------+-------------------------------- 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/37727> MacPorts <http://www.macports.org/> Ports system for Mac OS