packages/utils/vim/files/vimrc
Florian Fieber 9f4c0abc22 vim: Fix editing crontabs with crontab -e
Per default, vim creates a new file and keeps the original file as backup.
This leads to crontab checking the backup file for changes instead of the
one actually being edited, resulting in any changes being silently dropped.
Since busybox's crontab saves temporary crontab files in "/etc/crontabs.*"
vim's default of "backupskip=/tmp/*" doesn't circumvent this.

This commit fixes this issue by appending "/etc/crontabs.*" to "backupskip".

Signed-off-by: Florian Fieber <florian@florianfieber.de>
2015-06-05 20:32:44 +02:00

12 lines
571 B
VimL

set showcmd " show (partial) command in status line
set showmatch " show matching brackets
set incsearch " incremental search
set autowrite " automatically save before commands like :next and :make
set nocompatible " use vim defaults instead of 100% vi compatibility
set backspace=indent,eol,start " more powerful backspacing
set autoindent " always set autoindenting on
set linebreak " don't wrap words by default
set textwidth=0 " don't wrap lines by default
set ruler " show the cursor position all the time
set backupskip+=/etc/crontabs.* " fix crontab -e