dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE

binary.vim (431B)


      1 " vim -b : edit binary using xxd-format!
      2 augroup Binary
      3     autocmd!  " remove all vimrc autocommands
      4     autocmd BufReadPre  *.bin let &bin=1
      5     autocmd BufReadPost *.bin if &bin | %!xxd
      6     autocmd BufReadPost *.bin set ft=xxd | endif
      7     autocmd BufWritePre *.bin if &bin | %!xxd -r
      8     autocmd BufWritePre *.bin endif
      9     autocmd BufWritePost *.bin if &bin | %!xxd
     10     autocmd BufWritePost *.bin set nomod | endif
     11 augroup END