add autocmd for crontab editing

This fix prevents the "crontab: temp file must be edited in place" error message on OSX
This commit is contained in:
Nick Nisi
2015-09-01 14:10:54 -05:00
parent 1ac787e861
commit a239ad5a46
2 changed files with 2 additions and 0 deletions

View File

@@ -122,6 +122,7 @@ if has('autocmd') && !exists('autocommands_loaded')
autocmd FileType *.md.js :call SyntasticReset<cr>
autocmd FileType markdown,textile setlocal textwidth=0 wrapmargin=0 wrap spell
autocmd FileType .xml exe ":silent %!xmllint --format --recover - 2>/dev/null"
autocmd FileType crontab setlocal nobackup nowritebackup
"autocmd WinEnter * setlocal cursorline
"autocmd WinLeave * setlocal nocursorline

View File

@@ -56,6 +56,7 @@ if has('autocmd') && !exists('autocommands_loaded')
autocmd FileType *.md.js :call SyntasticReset<cr>
autocmd FileType markdown,textile setlocal textwidth=0 wrapmargin=0 wrap spell
autocmd FileType .xml exe ":silent %!xmllint --format --recover - 2>/dev/null"
autocmd FileType crontab setlocal nobackup nowritebackup
"autocmd WinEnter * setlocal cursorline
"autocmd WinLeave * setlocal nocursorline