{"id":387,"date":"2010-08-11T16:03:14","date_gmt":"2010-08-11T23:03:14","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=387"},"modified":"2013-10-16T17:47:28","modified_gmt":"2013-10-17T00:47:28","slug":"hex-editor-vi","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=387","title":{"rendered":"Hex editor &#8211; vi?"},"content":{"rendered":"<p>Open the file as your normally would ( For example, vi mybinary.fil):<br \/>\nTo view in hex:<br \/>\n Enter the following from command mode: <em>:%!xxd<\/em><\/p>\n<p>To switch back:<br \/>\n Enter the following from command mode: <em>:%!xxd -r<\/em><\/p>\n<p>If you are making changes you want to save, make sure you switch back before saving the file.  Otherwise, you end up saving the file as the text you see when viewing the file in hex mode.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Open the file as your normally would ( For example, vi mybinary.fil): To view in hex: Enter the following from command mode: :%!xxd To switch back: Enter the following from command mode: :%!xxd -r If you are making changes you want to save, make sure you switch back before saving the file. Otherwise, you end [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[104,71],"class_list":["post-387","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-hex-editor","tag-vi"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=387"}],"version-history":[{"count":4,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/387\/revisions"}],"predecessor-version":[{"id":986,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/387\/revisions\/986"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}