用 vim 編輯 binary 檔案時,請注意 EOL


用 vim 編輯 binary 檔案的時候,請記得一定要 :set binary 要不然你會和我一樣被 EOL 搞死……

When writing a file the EOL for the last line is only written if
there was one in the original file (normally Vim appends an EOL to
the last line if there is none; this would make the file longer). See
the ‘endofline’ option.


Leave a Reply

Your email address will not be published. Required fields are marked *