{"id":4013,"date":"2015-12-15T09:59:51","date_gmt":"2015-12-15T00:59:51","guid":{"rendered":"http:\/\/www.lancard.com\/blog\/?p=4013"},"modified":"2025-03-12T11:27:31","modified_gmt":"2025-03-12T02:27:31","slug":"use-mvim","status":"publish","type":"post","link":"https:\/\/www.lancard.com\/blog\/2015\/12\/15\/use-mvim\/","title":{"rendered":"MacVim \u3067 mvim \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6d3b\u7528\u3059\u308b"},"content":{"rendered":"<p>OS X \u3067\u4f7f\u3048\u308b GUI \u7528 Vim \u306b\u306f <a href=\"https:\/\/github.com\/splhack\/macvim-kaoriya\/releases\">MacVim kaoriYa \u7248<\/a> \u304c\u3042\u308a\u307e\u3059\u3002<br \/>\ndmg \u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u3066\u5c0e\u5165\u304c\u624b\u8efd\u3001\u304b\u3064\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30bf\u7b49\u306e\u6a5f\u80fd\u3082\u3042\u308a\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>KaoriYa \u7248\u306b\u9650\u3089\u305a\u3053\u306e MacVim \u306b\u306f\u4ee5\u524d\u304b\u3089 mvim \u3068\u3044\u3046\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u540c\u68b1\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p>https:\/\/github.com\/splhack\/macvim-kaoriya\/wiki\/Readme#\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089macvimapp\u3092\u8d77\u52d5\u3059\u308b<\/p>\n<p>Terminal.app\u3084iTerm.app\u304b\u3089MacVim.app (GUI)\u3092\u8d77\u52d5\u3059\u308b\u5834\u5408\u306f\u3001mvim\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n  $ \/Applications\/MacVim.app\/Contents\/MacOS\/mvim<br \/>\nGUI\u3067vimdiff\u3092\u8d77\u52d5\u3059\u308b\u306b\u306fmvimdiff\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n  $ \/Applications\/MacVim.app\/Contents\/MacOS\/mvimdiff file1 file2<br \/>\n\/Applications\/MacVim.app\/Contents\/MacOS\u306b\u30d1\u30b9\u3092\u901a\u3059\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p><\/blockquote>\n<p>\u3053\u308c\u306f MacVim \u3092\u7aef\u672b\u304b\u3089\u69d8\u3005\u306a\u65b9\u6cd5\u3067\u8d77\u52d5\u3059\u308b\u70ba\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001\u4e0a\u8a18\u306e\u30da\u30fc\u30b8\u3067\u306f GUI \u8d77\u52d5\u306e\u307f\u89e6\u308c\u3066\u3042\u308a\u307e\u3059\u304c<br \/>\n\u4ed6\u306b\u3082\u69d8\u3005\u306b\u7528\u3044\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p><code>:help mvim<\/code> \u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u901a\u308a\u3001\u3053\u308c\u306f\u4ee3\u8868\u7684\u306a MacVim.app \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u3092\u63a2\u7d22\u3057\u3066<br \/>\n\u8d77\u52d5\u3092\u8a66\u307f\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002<\/p>\n<p>mvim \u3068\u3057\u3066\u8d77\u52d5\u3059\u308b\u3068 GUI \u3067\u306e\u8d77\u52d5\u304c\u884c\u308f\u308c\u307e\u3059\u304c\u3001\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u81ea\u8eab\u304c\u8d77\u52d5\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u3092\u898b\u3066<br \/>\n\u8d77\u52d5\u65b9\u6cd5\u3092\u66ff\u3048\u308b\u3088\u3046\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u70ba\u3001\u3053\u308c\u306b symlink \u3059\u308b\u3053\u3068\u3067\u69d8\u3005\u306b\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<pre lang=\"bash\">\n# GUI mode, implies forking\ncase \"$name\" in m*|g*|rm*|rg*) gui=true ;; esac\n\n# Restricted mode\ncase \"$name\" in r*) opts=\"$opts -Z\";; esac\n\n# vimdiff, view, and ex mode\ncase \"$name\" in\n    *vimdiff)\n        opts=\"$opts -dO\"\n        ;;\n    *view)\n        opts=\"$opts -R\"\n        ;;\n    *ex)\n        opts=\"$opts -e\"\n        ;;\nesac\n<\/pre>\n<p>\u4f8b\u3048\u3070 mvimdiff a.file b.file \u3068\u3059\u308b\u3068 m prefix \u3067 GUI \u8d77\u52d5\u306e\u8a2d\u5b9a\u3001vimdiff suffix \u3067 vimdiff \u8d77\u52d5\u3068\u306a\u308b\u70ba<br \/>\nGUI \u3067 a.file-b.file \u9593\u306e vimdiff \u304c\u8d77\u52d5\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001m \u3092\u4ed8\u3051\u305a\u306b vim \u3068\u3057\u3066\u30ea\u30f3\u30af\u3057\u8d77\u52d5\u3059\u308b\u3068\u3001\u7aef\u672b\u5185\u304b\u3089 MacVim \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u3002MacVim kaoriya \u306f<br \/>\n\u983b\u7e41\u306b\u66f4\u65b0\u3055\u308c\u308b\u70ba\u3001\u5e38\u306b\u65b0\u3057\u3044\u3001\u307e\u305f GUI \u3068\u7d71\u4e00\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u306e Vim \u3092\u4f7f\u7528\u51fa\u6765\u308b\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>GUI \u8d77\u52d5\u306e prefix \u306b\u306f g \u3082\u3042\u308b\u70ba\u3001gentoo \u30b3\u30de\u30f3\u30c9\u3092\u4f5c\u6210\u3057\u3066 MacVim (GUI) \u3092\u8d77\u52d5\u3059\u308b\u306a\u3069\u3068\u3044\u3063\u305f\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h1>\u5c0e\u5165<\/h1>\n<p>mvim \u30b3\u30de\u30f3\u30c9\u81ea\u4f53\u306f\u4e0b\u8a18\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p>\n  $ \/Applications\/MacVim.app\/Contents\/MacOS\/mvim\n<\/p><\/blockquote>\n<p><code>:help mvim<\/code> \u3092\u898b\u308b\u3068 mvim \u30b9\u30af\u30ea\u30d7\u30c8\u306f \/usr\/local\/bin \u306b\u914d\u7f6e\u3057\u3066\u4f7f\u304a\u3046\u3068\u3044\u3063\u305f\u65e8\u306e\u8a18\u8f09\u304c\u3042\u308a\u307e\u3059\u304c\u3001MacVim KaoriYa \u306e\u30da\u30fc\u30b8\u3060\u3068<\/p>\n<blockquote><p>\n  \/Applications\/MacVim.app\/Contents\/MacOS\u306b\u30d1\u30b9\u3092\u901a\u3059\u3068\u4fbf\u5229\u3067\u3059\u3002\n<\/p><\/blockquote>\n<p>\u3068\u89e3\u8aac\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u3061\u3089\u306b\u306f symlinked \u306a mvimdiff \u7b49\u6d3e\u751f\u30b3\u30de\u30f3\u30c9\u304c\u65e2\u306b\u914d\u7f6e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre lang='bash'>\n\u276f ll \/Applications\/MacVim.app\/Contents\/MacOS\/\ntotal 6264\n-rwxr-xr-x  1 shun  staff   356K Dec  7 13:59 MacVim\n-rwxr-xr-x  1 shun  staff   2.3M Dec  7 13:59 Vim\n-r-xr-xr-x  1 shun  staff   373K Dec  7 13:59 ctags\n-rwxr-xr-x  1 shun  staff   685B Dec  7 13:59 macvim-askpass\nlrwxr-xr-x  1 shun  staff     4B Dec  8 15:37 mview -> mvim\n-rwxr-xr-x  1 shun  staff   2.2K Dec  7 13:59 mvim\nlrwxr-xr-x  1 shun  staff     4B Dec  8 15:37 mvimdiff -> mvim\nlrwxr-xr-x  1 shun  staff     4B Dec  8 15:37 view -> mvim\nlrwxr-xr-x  1 shun  staff     4B Dec  8 15:37 vimdiff -> mvim\n<\/pre>\n<p>\u597d\u307f\u306e\u65b9\u6cd5\u3067\u4f7f\u7528\u3059\u308b\u3068\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>mvim \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u306f 14 \u884c\u76ee\u8fba\u308a\u306b\u3042\u308b <code>VIM_APP_DIR<\/code> \u306e\u8a2d\u5b9a\u304c\u9069\u5207\u3067\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u3001<br \/>\n\u3053\u306e\u5834\u5408\u306f \/usr\/local\/bin\/ \u306b\u3067\u3082\u518d\u914d\u7f6e\u3057\u3066\u74b0\u5883\u306b\u5408\u3063\u305f\u9069\u5207\u306a\u5024\u306b\u8a2d\u5b9a\u3057\u3066\u4f7f\u7528\u3059\u308b\u3068\u826f\u3055\u305d\u3046\u3067\u3059\u3002<br \/>\ndmg \u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070 \/Applications \u3092\u8a2d\u5b9a\u3059\u308b\u3068\u52d5\u304f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h1>\u7d42\u308f\u308a\u306b<\/h1>\n<p>\u3053\u306e\u5b63\u7bc0\u6052\u4f8b\u306e Advent Calendar\u3001\u4eca\u5e74\u3082\u76db\u308a\u4e0a\u304c\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/qiita.com\/advent-calendar\/2015\/vim\">Vim Advent Calendar 2015 &#8211; Qiita<\/a><\/li>\n<li><a href=\"http:\/\/qiita.com\/advent-calendar\/2015\/vim-script\">Vim script Advent Calendar 2015 &#8211; Qiita<\/a><\/li>\n<\/ul>\n<hr \/>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4013&amp;t=MacVim%20%E3%81%A7%20mvim%20%E3%82%B7%E3%82%A7%E3%83%AB%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E6%B4%BB%E7%94%A8%E3%81%99%E3%82%8B&amp;s=100&amp;p[url]=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4013&amp;p[images][0]=&amp;p[title]=MacVim%20%E3%81%A7%20mvim%20%E3%82%B7%E3%82%A7%E3%83%AB%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E6%B4%BB%E7%94%A8%E3%81%99%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"http:\/\/twitter.com\/share?url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4013&amp;text=MacVim%20%E3%81%A7%20mvim%20%E3%82%B7%E3%82%A7%E3%83%AB%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E6%B4%BB%E7%94%A8%E3%81%99%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&amp;url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4013&amp;title=MacVim%20%E3%81%A7%20mvim%20%E3%82%B7%E3%82%A7%E3%83%AB%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E6%B4%BB%E7%94%A8%E3%81%99%E3%82%8B\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-tumblr nolightbox\" data-provider=\"tumblr\" target=\"_blank\" rel=\"nofollow\" title=\"Share on tumblr\" href=\"https:\/\/tumblr.com\/share?s=&amp;v=3&amp;t=MacVim%20%E3%81%A7%20mvim%20%E3%82%B7%E3%82%A7%E3%83%AB%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E6%B4%BB%E7%94%A8%E3%81%99%E3%82%8B&amp;u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4013\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"tumblr\" title=\"Share on tumblr\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/tumblr.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=MacVim%20%E3%81%A7%20mvim%20%E3%82%B7%E3%82%A7%E3%83%AB%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E6%B4%BB%E7%94%A8%E3%81%99%E3%82%8B&amp;body=%E3%82%B7%E3%82%A7%E3%82%A2%E3%81%99%E3%82%8B%EF%BC%9A:%20https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F4013\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>OS X \u3067\u4f7f\u3048\u308b GUI \u7528 Vim \u306b\u306f MacVim kaoriYa \u7248 \u304c\u3042\u308a\u307e\u3059\u3002 dmg \u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u3066\u5c0e\u5165\u304c\u624b\u8efd\u3001\u304b\u3064\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30bf\u7b49\u306e\u6a5f\u80fd\u3082\u3042\u308a\u4fbf\u5229\u3067\u3059\u3002 KaoriYa \u7248\u306b\u9650\u3089\u305a\u3053\u306e M [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[146],"tags":[],"class_list":["post-4013","post","type-post","status-publish","format-standard","hentry","category-vim"],"_links":{"self":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/4013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/comments?post=4013"}],"version-history":[{"count":13,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/4013\/revisions"}],"predecessor-version":[{"id":4026,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/4013\/revisions\/4026"}],"wp:attachment":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/media?parent=4013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/categories?post=4013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/tags?post=4013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}