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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user