Skip to main content

Questions about editing non-text files.

Although Vim was made to edit text files, it is possible to edit binary files with the option set binary or with the -b parameter. This options implies the folowing:

  • textwidth and wrapmargin are set to 0
  • modeline and expandtab are turned off
  • The fileformat and fileformats options won't be used
  • Files will be written using single line endings

For more information see :h edit-binary