{"id":1554,"date":"2006-12-07T22:55:00","date_gmt":"2006-12-07T22:55:00","guid":{"rendered":"http:\/\/gleamynode.net\/articles\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager"},"modified":"2022-12-28T01:46:46","modified_gmt":"2022-12-27T16:46:46","slug":"tabbed-editing-with-gvim-and-nautilus-file-manager","status":"publish","type":"post","link":"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/","title":{"rendered":"Tabbed Editing with GViM and Nautilus File Manager"},"content":{"rendered":"

The default text editor of GNOME desktop environment<\/a> is ‘gedit<\/a>‘. I prefer ViM<\/a> because it has much better functionality and customizability, and moreover, it launches faster. One thing I’ve been missing from GViM, a GUI version of ViM, was tabbed editing. GViM already supports tabbed editing, but opening a text file from Nautilus File Manager<\/a> always creates a new window by default.<\/p>\n

GNOME \ub370\uc2a4\ud06c\ud0d1 \ud658\uacbd\uc758 \uae30\ubcf8 \ud14d\uc2a4\ud2b8 \ud3b8\uc9d1\uae30\ub294 gedit\uc785\ub2c8\ub2e4. \uc800\ub294 \uae30\ub2a5\ub3c4 \ud6e8\uc52c \ub9ce\uace0 \ucee4\uc2a4\ud130\ub9c8\uc774\uc988\ub3c4 \uc6a9\uc774\ud55c\ub370\ub2e4\uac00 \uc2e4\ud589 \uc18d\ub3c4\ub3c4 \ub354 \ube60\ub978 ViM\uc744 \uc120\ud638\ud569\ub2c8\ub2e4. ViM\uc758 GViM\uc5d0\uc11c \ud55c \uac00\uc9c0 \uc544\uc26c\uc6e0\ub358 \uae30\ub2a5\uc740 \ud0ed \ud3b8\uc9d1 \uae30\ub2a5(\ud0ed \ube0c\ub77c\uc6b0\uc9d5\ucc98\ub7fc \ud0ed\uc73c\ub85c \uc5ec\ub7ec \ubb38\uc11c\ub97c \ud3b8\uc9d1\ud558\ub294 \uae30\ub2a5)\uc785\ub2c8\ub2e4. GViM\uc740 \uc774\ubbf8 \ud0ed \ud3b8\uc9d1 \uae30\ub2a5\uc744 \uc81c\uacf5\ud558\uc9c0\ub9cc Nautilus \ud30c\uc77c \uad00\ub9ac\uc790\uc5d0\uc11c \ud14d\uc2a4\ud2b8 \ud30c\uc77c\uc744 \uc5f4\uba74 \uae30\ubcf8\uc801\uc73c\ub85c \uc0c8 \ucc3d\uc744 \uc5f4\uac8c \ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n

Fortunately, I finally found out how to change this behavior. Nautilus stores its file association information in ~\/.local\/share\/applications<\/tt> directory. You can put customized .desktop<\/tt> files there, and then you can associate certain file type to the customized .desktop<\/tt> file. In my case, I want text files to be opened in a new tab of the current GViM window. I put gvim-usercustom.desktop<\/tt> file to ~\/.local\/share\/applications<\/tt> directory:<\/p>\n

\uc6b4\uc88b\uac8c\ub3c4 \uc774 \ub3d9\uc791\uc744 \ubc14\uafb8\ub294 \ubc29\ubc95\uc744 \uacb0\uad6d \uc54c\uc544\ub0c8\uc2b5\ub2c8\ub2e4. Nautilus\ub294 \ud30c\uc77c \uc5f0\uacb0 \uc815\ubcf4\ub97c ~\/.local\/share\/applications<\/tt> \ub514\ub809\ud1a0\ub9ac\uc5d0 \uc800\uc7a5\ud569\ub2c8\ub2e4. \uc774 \ub514\ub809\ud1a0\ub9ac\uc5d0 \ucee4\uc2a4\ud130\ub9c8\uc774\uc988\ud55c .desktop<\/tt> \ud30c\uc77c\uc744 \ub123\uace0 \ud2b9\uc815 \ud30c\uc77c \uc720\ud615\uc744 \uadf8 .desktop<\/tt> \ud30c\uc77c\uc5d0 \uc5f0\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc81c \uacbd\uc6b0\uc5d0\ub294 \ud604\uc7ac \ub5a0 \uc788\ub294 GViM \ucc3d\uc758 \uc0c8 \ud0ed\uc5d0 \ud14d\uc2a4\ud2b8 \ud30c\uc77c\uc774 \uc5f4\ub9ac\uae30\ub97c \uc6d0\ud558\ub294 \uac83\uc774\uc8e0. \uadf8\ub798\uc11c gvim-usercustom.desktop<\/tt> \ud30c\uc77c\uc744 ~\/.local\/share\/applications<\/tt> \ub514\ub809\ud1a0\ub9ac\uc5d0 \ub123\uc5b4 \uc8fc\uc5c8\uc2b5\ub2c8\ub2e4:<\/p>\n

\n
[Desktop Entry]
\nEncoding=UTF-8
\nName=GVim Text Editor (Tab)
\nComment=Edit text files in a new tab
\nExec=gvim --remote-tab %F
\nTerminal=false
\nType=Application
\nIcon=\/usr\/share\/pixmaps\/vim.svg
\nCategories=Application;Utility;TextEditor;
\nStartupNotify=true
\nMimeType=text\/plain;
\nNoDisplay=true<\/pre>\n<\/blockquote>\n

\nIf you prefer other text editor and want to change its default bahavior, you could copy its .desktop<\/tt> file from \/usr\/share\/applications\/<\/tt> and rename it to <appname>-usercustom.desktop<\/tt> and tweak it a little bit. Refering to this document<\/a> will also help you if the application you want to associate with a certain file type isn’t listed in a default setting.<\/p>\n

\ub2e4\ub978 \ud3b8\uc9d1\uae30\ub97c \ub354 \uc120\ud638\ud558\uace0 \uadf8 \ud3b8\uc9d1\uae30\uc758 \uae30\ubcf8 \ub3d9\uc791\uc744 \ubc14\uafb8\uace0 \uc2f6\ub2e4\uba74 \/usr\/share\/applications\/<\/tt> \ub514\ub809\ud1a0\ub9ac\uc5d0\uc11c \uadf8 \ud3b8\uc9d1\uae30\uc758 .desktop<\/tt> \ud30c\uc77c\uc744 \ubcf5\uc0ac\ud574 <appname>-usercustom.desktop<\/tt>\uc73c\ub85c \uc774\ub984\uc744 \ubc14\uafb8\uace0 \uc190\uc744 \uc880 \ubcf4\uba74 \ub420 \uac81\ub2c8\ub2e4. \ud2b9\uc815 \ud30c\uc77c \uc720\ud615\uc5d0 \uc5f0\uacb0\ud558\uace0\uc790 \ud558\ub294 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\uc774 \uae30\ubcf8 \uc124\uc815\uc5d0 \ud3ec\ud568\ub418\uc5b4 \uc788\uc9c0 \uc54a\ub2e4\uba74 \uc774 \ubb38\uc11c<\/a>\ub97c \ucc38\uc870\ud558\uba74 \ub3c4\uc6c0\uc774 \ub420 \uac83\uc785\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"

The default text editor of GNOME desktop environment is ‘gedit‘. I prefer ViM because it has much better functionality and customizability, and moreover, it launches faster. One thing I’ve been missing from GViM, a GUI version of ViM, was tabbed editing. GViM already supports tabbed editing, but opening a text file from Nautilus File Manager… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"Tabbed Editing with GViM and Nautilus File Manager — T's message of the day<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tabbed Editing with GViM and Nautilus File Manager — T's message of the day\" \/>\n<meta property=\"og:description\" content=\"The default text editor of GNOME desktop environment is ‘gedit‘. I prefer ViM because it has much better functionality and customizability, and moreover, it launches faster. One thing I’ve been missing from GViM, a GUI version of ViM, was tabbed editing. GViM already supports tabbed editing, but opening a text file from Nautilus File Manager... Continue reading →\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"T's message of the day\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/trustin\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/trustin\" \/>\n<meta property=\"article:published_time\" content=\"2006-12-07T22:55:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-27T16:46:46+00:00\" \/>\n<meta name=\"author\" content=\"Trustin Lee\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/www.twitter.com\/trustin\" \/>\n<meta name=\"twitter:site\" content=\"@trustin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Trustin Lee\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/\"},\"author\":{\"name\":\"Trustin Lee\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d\"},\"headline\":\"Tabbed Editing with GViM and Nautilus File Manager\",\"datePublished\":\"2006-12-07T22:55:00+00:00\",\"dateModified\":\"2022-12-27T16:46:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/\"},\"wordCount\":234,\"publisher\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/\",\"url\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/\",\"name\":\"Tabbed Editing with GViM and Nautilus File Manager — T's message of the day\",\"isPartOf\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#website\"},\"datePublished\":\"2006-12-07T22:55:00+00:00\",\"dateModified\":\"2022-12-27T16:46:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/vault.motd.kr\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tabbed Editing with GViM and Nautilus File Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#website\",\"url\":\"https:\/\/vault.motd.kr\/wordpress\/\",\"name\":\"T's message of the day\",\"description\":\"the best is yet to come\",\"publisher\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/vault.motd.kr\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d\",\"name\":\"Trustin Lee\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/vault.motd.kr\/wordpress\/wp-content\/uploads\/2020\/09\/avatar-2019-966px.png\",\"contentUrl\":\"https:\/\/vault.motd.kr\/wordpress\/wp-content\/uploads\/2020\/09\/avatar-2019-966px.png\",\"width\":966,\"height\":966,\"caption\":\"Trustin Lee\"},\"logo\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/t.motd.kr\/\",\"https:\/\/www.facebook.com\/trustin\",\"https:\/\/www.instagram.com\/trustinlee\/\",\"https:\/\/www.linkedin.com\/in\/trustin\",\"https:\/\/twitter.com\/https:\/\/www.twitter.com\/trustin\",\"https:\/\/www.youtube.com\/@trustinlee\"]}]}<\/script>","yoast_head_json":{"title":"Tabbed Editing with GViM and Nautilus File Manager — T's message of the day","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/","og_locale":"en_US","og_type":"article","og_title":"Tabbed Editing with GViM and Nautilus File Manager — T's message of the day","og_description":"The default text editor of GNOME desktop environment is ‘gedit‘. I prefer ViM because it has much better functionality and customizability, and moreover, it launches faster. One thing I’ve been missing from GViM, a GUI version of ViM, was tabbed editing. GViM already supports tabbed editing, but opening a text file from Nautilus File Manager... Continue reading →","og_url":"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/","og_site_name":"T's message of the day","article_publisher":"https:\/\/www.facebook.com\/trustin","article_author":"https:\/\/www.facebook.com\/trustin","article_published_time":"2006-12-07T22:55:00+00:00","article_modified_time":"2022-12-27T16:46:46+00:00","author":"Trustin Lee","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/www.twitter.com\/trustin","twitter_site":"@trustin","twitter_misc":{"Written by":"Trustin Lee","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/#article","isPartOf":{"@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/"},"author":{"name":"Trustin Lee","@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d"},"headline":"Tabbed Editing with GViM and Nautilus File Manager","datePublished":"2006-12-07T22:55:00+00:00","dateModified":"2022-12-27T16:46:46+00:00","mainEntityOfPage":{"@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/"},"wordCount":234,"publisher":{"@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/","url":"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/","name":"Tabbed Editing with GViM and Nautilus File Manager — T's message of the day","isPartOf":{"@id":"https:\/\/vault.motd.kr\/wordpress\/#website"},"datePublished":"2006-12-07T22:55:00+00:00","dateModified":"2022-12-27T16:46:46+00:00","breadcrumb":{"@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/1554\/tabbed-editing-with-gvim-and-nautilus-file-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vault.motd.kr\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Tabbed Editing with GViM and Nautilus File Manager"}]},{"@type":"WebSite","@id":"https:\/\/vault.motd.kr\/wordpress\/#website","url":"https:\/\/vault.motd.kr\/wordpress\/","name":"T's message of the day","description":"the best is yet to come","publisher":{"@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vault.motd.kr\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d","name":"Trustin Lee","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/vault.motd.kr\/wordpress\/wp-content\/uploads\/2020\/09\/avatar-2019-966px.png","contentUrl":"https:\/\/vault.motd.kr\/wordpress\/wp-content\/uploads\/2020\/09\/avatar-2019-966px.png","width":966,"height":966,"caption":"Trustin Lee"},"logo":{"@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/t.motd.kr\/","https:\/\/www.facebook.com\/trustin","https:\/\/www.instagram.com\/trustinlee\/","https:\/\/www.linkedin.com\/in\/trustin","https:\/\/twitter.com\/https:\/\/www.twitter.com\/trustin","https:\/\/www.youtube.com\/@trustinlee"]}]}},"_links":{"self":[{"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/posts\/1554"}],"collection":[{"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/comments?post=1554"}],"version-history":[{"count":1,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/posts\/1554\/revisions"}],"predecessor-version":[{"id":5834,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/posts\/1554\/revisions\/5834"}],"wp:attachment":[{"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/media?parent=1554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/categories?post=1554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/tags?post=1554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}