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 |
---|
comment:3 Changed 9 years ago by raimue (Rainer Müller)
Port: | vim-app removed |
---|---|
Status: | new → assigned |
Summary: | vim, vim-app, MacVim: Don't write backup for crontab or chpass → vim, MacVim: Don't write backup for crontab or chpass |
comment:5 Changed 6 years ago by raimue (Rainer Müller)
comment:6 Changed 6 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Cc Me!