{"id":1360,"date":"2022-12-14T20:20:19","date_gmt":"2022-12-14T14:50:19","guid":{"rendered":"https:\/\/mutesoft.com\/spaces\/software\/?p=1360"},"modified":"2022-12-15T16:15:24","modified_gmt":"2022-12-15T10:45:24","slug":"how-to-open-files-starting-with-plus-or-hyphen-in-vi-editor","status":"publish","type":"post","link":"https:\/\/mutesoft.com\/spaces\/software\/how-to-open-files-starting-with-plus-or-hyphen-in-vi-editor.html","title":{"rendered":"In vi Editor How to Open Files Starting with + (Plus) or &#8211; (Hyphen) in Name"},"content":{"rendered":"\n<p>Using vi editor if you want to create a new file or open an existing file having a name starting with <code>+<\/code> (plus) or <code>-<\/code> (hyphen), you&#8217;ll get an error like the one below:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ vi -test.txt\n\nE433: No tags file\nE426: tag not found: est.txt\nPress ENTER or type command to continue<\/pre>\n\n\n\n<p>Using double quotes or escape characters won&#8217;t help. You have to use <code>--<\/code> to allow <code>+<\/code> or <code>-<\/code> at the beginning of the file name.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ vi -- -test.txt\n$ vi -- +test.txt<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Using vi editor if you want to create a new file or open an existing file having a name starting with + (plus) or &#8211; (hyphen), you&#8217;ll get an error.<\/p>\n","protected":false},"author":2,"featured_media":881,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"Using vi editor if you want to create a new file or open an existing file having a name starting with + (plus) or - (hyphen), you&#039;ll get an error.","_seopress_robots_index":"","_vp_format_video_url":"","_vp_image_focal_point":[],"footnotes":""},"categories":[32,8],"tags":[36,3,42,43],"class_list":["post-1360","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tools","category-troubleshooting","tag-tools","tag-troubleshoot","tag-vi-editor","tag-vim-editor"],"_links":{"self":[{"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/posts\/1360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/comments?post=1360"}],"version-history":[{"count":4,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/posts\/1360\/revisions"}],"predecessor-version":[{"id":1366,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/posts\/1360\/revisions\/1366"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/media\/881"}],"wp:attachment":[{"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/media?parent=1360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/categories?post=1360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mutesoft.com\/spaces\/software\/wp-json\/wp\/v2\/tags?post=1360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}