> diff --git a/runtime/doc/tips.txt b/runtime/doc/tips.txt
> index ea8d538bf..79b1574e2 100644
> --- a/runtime/doc/tips.txt
> +++ b/runtime/doc/tips.txt
> @@ -431,14 +431,26 @@ comma-separated list of extension(s) you find yourself wanting to edit: >
>
> " vim -b : edit binary using xxd-format!
> augroup Binary
> - au!
> - au BufReadPre *.bin let &bin=1
> - au BufReadPost *.bin if &bin | %!xxd
> - au BufReadPost *.bin set ft=xxd | endif
> - au BufWritePre *.bin if &bin | %!xxd -r
> - au BufWritePre *.bin endif
> - au BufWritePost *.bin if &bin | %!xxd
> - au BufWritePost *.bin set nomod | endif
> + autocmd!
> + autocmd BufReadPre *.bin set binary
> + autocmd BufReadPost *.bin
> + \ if &binary
> + \ | execute "silent %!xxd -c 32"
> + \ | set filetype=xxd
> + \ | redraw
> + \ | endif
> + autocmd BufWritePre *.bin
> + \ if &binary
> + \ | let s:view = winsaveview()
> + \ | execute "silent %!xxd -r -c 32"
> + \ | endif
> + autocmd BufWritePost *.bin
> + \ if &binary
> + \ | execute "silent %!xxd -c 32"
> + \ | set nomodified
> + \ | call winrestview(s:view)
> + \ | redraw
> + \ | endif
> augroup END
>
> ==============================================================================
Thanks, I think using the long command form makes sense.
Best,
Christian
--
angeln:
stundenlang geduldig an einem Fleck lauern, bis man nichts gefangen hat.