{"id":2843,"date":"2018-04-25T10:00:42","date_gmt":"2018-04-25T01:00:42","guid":{"rendered":"https:\/\/blog.timecrowd.net\/?p=2843"},"modified":"2018-04-13T13:35:13","modified_gmt":"2018-04-13T04:35:13","slug":"improve-development-environment","status":"publish","type":"post","link":"https:\/\/blog.timecrowd.net\/improve-development-environment\/","title":{"rendered":"\u958b\u767a\u74b0\u5883\u3092\u6539\u5584\u3057\u3066\u958b\u767a\u52b9\u7387\u3092\u4e0a\u3052\u308b"},"content":{"rendered":"<p>\u7686\u3055\u3093\u4eca\u65e5\u3082\u30d0\u30ea\u30d0\u30ea\u958b\u767a\u3057\u3066\u3044\u307e\u3059\u304b\uff1f\u6bce\u65e5\u306e\u3088\u3046\u306b\u4f7f\u3046\u958b\u767a\u30c4\u30fc\u30eb\u3063\u3066\u3059\u3054\u304f\u5927\u4e8b\u3067\u3059\u3088\u306d\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u9650\u3089\u305a\u3001\u666e\u6bb5\u304b\u3089\u81ea\u5206\u304c\u4f7f\u3046\u9053\u5177\u3092\u78e8\u3044\u3066\u304a\u304f\u3068\u3044\u3046\u306e\u306f\u3068\u3066\u3082\u5927\u4e8b\u3060\u3068\u601d\u3044\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u666e\u6bb5\u306fTerminal.app + tmux + vim\u3068\u3044\u3046\u69cb\u6210\u3067\u958b\u767a\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u53f0\u6e7e\u3067\u82b1\u7c89\u3092\u907f\u3051\u306a\u304c\u3089\u4ed5\u4e8b\u3092\u3059\u308b\u3053\u3068\u3067\u3001\u958b\u767a\u52b9\u7387\u3092\u30a2\u30c3\u30d7\u3059\u308b\u3068\u3044\u3046\u30cf\u30c3\u30af\u3092\u5b9f\u8df5\u4e2d\u306e\u65c5\u3057\u3066\u3044\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u4e09\u5b85\u3067\u3059\u3002<\/p>\n<p>\u5148\u65e5<a href=\"https:\/\/postd.cc\/vim3\/\" target=\"_blank\" rel=\"noopener\">15\u5e74\u76ee\u306eVim | POSTD<\/a>\u3068\u3044\u3046\u8a18\u4e8b\u3092\u898b\u304b\u3051\u3066\u3001\u304a\u304a\u3053\u308c\u306f\u9762\u767d\u305d\u3046\u3060\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3053\u308c\u3092\u6a5f\u306b\u5c11\u3057\u958b\u767a\u74b0\u5883\u306e\u6539\u5584\u3092\u56f3\u308a\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u6539\u5584\u3057\u305f\u3044\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e2\u70b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>vim\u3067\u65b0\u305f\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u6642\u3001\u968e\u5c64\u3092\u8fbf\u3063\u3066\u3044\u304b\u306a\u3044\u3068\u3044\u3051\u306a\u3044<\/li>\n<li>vim\u304b\u3089\u30ad\u30fc\u30ef\u30fc\u30c9\u691c\u7d22\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u305f\u3044<\/li>\n<\/ul>\n<div id=\"toc_container\" class=\"toc_white no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#vim\"><span class=\"toc_number toc_depth_1\">1<\/span> vim\u3067\u65b0\u305f\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u6642\u3001\u968e\u5c64\u3092\u8fbf\u3063\u3066\u3044\u304b\u306a\u3044\u3068\u3044\u3051\u306a\u3044<\/a><\/li><li><a href=\"#vim-2\"><span class=\"toc_number toc_depth_1\">2<\/span> vim\u304b\u3089\u30ad\u30fc\u30ef\u30fc\u30c9\u691c\u7d22\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u305f\u3044<\/a><\/li><li><a href=\"#Appendix\"><span class=\"toc_number toc_depth_1\">3<\/span> Appendix<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">4<\/span> \u307e\u3068\u3081<\/a><\/li><\/ul><\/div>\n<h2><span id=\"vim\">vim\u3067\u65b0\u305f\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u6642\u3001\u968e\u5c64\u3092\u8fbf\u3063\u3066\u3044\u304b\u306a\u3044\u3068\u3044\u3051\u306a\u3044<\/span><\/h2>\n<p>\u65b0\u305f\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3068\u304d\u306b\u306funite.vim + vimfiler\u3067\u968e\u5c64\u3092\u6398\u3063\u3066\u3044\u3063\u3066\u958b\u3044\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u3060\u3068\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u8a72\u5f53\u30d5\u30a1\u30a4\u30eb\u307e\u3067\u306e\u4f4d\u7f6e\u3092\u5165\u529b\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u9762\u5012\u3060\u306a\u3041\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u5148\u306e\u8a18\u4e8b\u306b\u3082\u3042\u3063\u305f<a href=\"https:\/\/github.com\/junegunn\/fzf.vim\" target=\"_blank\" rel=\"noopener\">fzf.vim<\/a>\u3092\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306fhomebrew\u7d4c\u7531\u3067fzf\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code>$ brew install fzf<\/code><\/pre>\n<p>\u6b21\u306bvim\u304b\u3089fzf\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3042\u308bfzf.vim\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code>NeoBundle 'junegunn\/fzf.vim'\r\nset rtp+=\/usr\/local\/opt\/fzf\r\nnmap ; :Buffers&lt;CR&gt;\r\nnmap t :Files&lt;CR&gt;\r\nnmap r :Tags&lt;CR&gt;<\/code><\/pre>\n<p>\u3053\u308c\u3067vim\u304b\u3089fzf\u4ecb\u3057\u3066fuzzy\u691c\u7d22\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u968e\u5c64\u3092\u6398\u3063\u3066\u3044\u304f\u5fc5\u8981\u3082\u306a\u304f\u3001\u96d1\u306a\u611f\u3058\u3067\u691c\u7d22\u3057\u3066\u3082\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u5f15\u3063\u304b\u304b\u3063\u3066\u304f\u308b\u306e\u3067\u4fbf\u5229\u305d\u3046\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-2850\" src=\"https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2018\/04\/fzf-vim.png\" alt=\"\" width=\"1134\" height=\"744\" srcset=\"https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2018\/04\/fzf-vim.png 1134w, https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2018\/04\/fzf-vim-768x504.png 768w\" sizes=\"(max-width: 1134px) 100vw, 1134px\" \/><\/p>\n<h2><span id=\"vim-2\">vim\u304b\u3089\u30ad\u30fc\u30ef\u30fc\u30c9\u691c\u7d22\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u305f\u3044<\/span><\/h2>\n<p>\u7279\u5b9a\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u691c\u7d22\u3057\u3066\u30de\u30c3\u30c1\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u305f\u3044\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u4eca\u307e\u3067\u306f\u4e00\u65e6vim\u3092\u96e2\u308c\u3066grep\u3057\u3066\u8a72\u5f53\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u3079\u3066\u958b\u304f\u3088\u3046\u306a\u3053\u3068\u3092\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u6bce\u56devim\u3092\u96e2\u308c\u308b\u306e\u306f\u9762\u5012\u306a\u306e\u3067\u3001vim\u5185\u3067\u5b8c\u7d50\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u307e\u305f\u5148\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b<a href=\"https:\/\/github.com\/mileszs\/ack.vim\" target=\"_blank\" rel=\"noopener\">ack.vim<\/a>\u3092\u4f7f\u3046\u5c0e\u5165\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>ack.vim\u81ea\u4f53\u306fack, ag\u3092vim\u4e0a\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u306a\u306e\u3067\u3001\u307e\u305a\u306fag\u81ea\u4f53\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre><code>$ brew install ag<\/code><\/pre>\n<p>\u3061\u306a\u307f\u306b\u5148\u306e\u8a18\u4e8b\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001<\/p>\n<blockquote><p>ag\u306f\u65b0\u305f\u306aack\u3067\u3059\u3002ack\u306f\u65b0\u305f\u306agrep\u3067\u3057\u305f\u3002<\/p><\/blockquote>\n<p>\u3068\u3044\u3046\u3053\u3068\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306back.vim\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code>NeoBundle 'mileszs\/ack.vim'\r\nnmap [q :cnext&lt;CR&gt;\r\nnmap ]q :cprev&lt;CR&gt;<\/code><\/pre>\n<p>ack.vim\u304b\u3089ag\u3092\u5229\u7528\u3059\u308b\u306b\u306f\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u3066\u4e0a\u3052\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3082\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code>if executable('ag')\r\n\u00a0 let g:ackprg = 'ag --vimgrep'\r\nendif<\/code><\/pre>\n<p><a href=\"https:\/\/github.com\/mileszs\/ack.vim#can-i-use-ag-the-silver-searcher-with-this\" target=\"_blank\" rel=\"noopener\">Can I use ag (The Silver Searcher) with this?<\/a><\/p>\n<p>\u3053\u308c\u3067vim\u304b\u3089\u5feb\u9069\u306b\u30ad\u30fc\u30ef\u30fc\u30c9\u691c\u7d22\u3057\u3066\u8a72\u5f53\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30ad\u30fc\u30d0\u30a4\u30f3\u30c9\u306a\u3069\u306f\u8a18\u4e8b\u306e\u3068\u304a\u308a\u306b\u8a2d\u5b9a\u3057\u305f\u3060\u3051\u306a\u306e\u3067\u3001\u4f7f\u3044\u306a\u304c\u3089\u81ea\u5206\u304c\u4f7f\u3044\u3084\u3059\u3044\u3088\u3046\u306b\u8abf\u6574\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-2851\" src=\"https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2018\/04\/ack-vim.png\" alt=\"\" width=\"1944\" height=\"1636\" srcset=\"https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2018\/04\/ack-vim.png 1944w, https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2018\/04\/ack-vim-768x646.png 768w\" sizes=\"(max-width: 1944px) 100vw, 1944px\" \/><\/p>\n<h2><span id=\"Appendix\">Appendix<\/span><\/h2>\n<p>\u6539\u5584\u3068\u3044\u3046\u307b\u3069\u3067\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u5148\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u305f<a href=\"https:\/\/github.com\/airblade\/vim-gitgutter\" target=\"_blank\" rel=\"noopener\">vim-gitgutter<\/a>\u3082\u5c0e\u5165\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u7de8\u96c6\u3057\u306a\u304c\u3089\u5909\u66f4\u5185\u5bb9\u304c\u898b\u308c\u308b\u306e\u3067\u4fbf\u5229\u305d\u3046\u3067\u3059\u3002README\u3067updatetime\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u63d0\u6848\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u305d\u308c\u306b\u7fd2\u3044\u307e\u3059\u3002<\/p>\n<pre><code>NeoBundle 'airblade\/vim-gitgutter'\r\nset updatetime=100<\/code><\/pre>\n<p>ale\u306elint\u7d50\u679c\u3068\u88ab\u3063\u3066\u96a0\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u5909\u66f4\u70b9\u304c\u3072\u3068\u76ee\u3067\u5206\u304b\u308b\u306e\u3067\u5730\u5473\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2845 size-full\" src=\"https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2018\/04\/vim-gitgutter.png\" alt=\"\" width=\"1196\" height=\"552\" srcset=\"https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2018\/04\/vim-gitgutter.png 1196w, https:\/\/blog.timecrowd.net\/wp-content\/uploads\/2018\/04\/vim-gitgutter-768x354.png 768w\" sizes=\"(max-width: 1196px) 100vw, 1196px\" \/><\/p>\n<h2><span id=\"i\">\u307e\u3068\u3081<\/span><\/h2>\n<p>\u6bce\u56de\u4f7f\u3046\u9053\u5177\u3060\u304b\u3089\u3053\u305d\u5e38\u65e5\u9803\u304b\u3089\u78e8\u3044\u3066\u304a\u304f\u3053\u3068\u304c\u5927\u5207\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u666e\u6bb5\u304b\u3089\u5b9a\u578b\u7684\u306a\u4f5c\u696d\u306f\u81ea\u52d5\u5316\u3067\u304d\u306a\u3044\u304b\u3001\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3059\u308b\u4f5c\u696d\u306f\u52b9\u7387\u5316\u3067\u304d\u306a\u3044\u304b\u3068\u3044\u3046\u3053\u3068\u3092\u8003\u3048\u6539\u5584\u3059\u308b\u3053\u3068\u3067\u3001\u5168\u4f53\u7684\u306a\u751f\u7523\u6027\u5411\u4e0a\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u7686\u3055\u3093\u3082\u5feb\u9069\u306a\u74b0\u5883\u3092\u4f5c\u3063\u3066\u30d0\u30ea\u30d0\u30ea\u958b\u767a\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"\u7686\u3055\u3093\u4eca\u65e5\u3082\u30d0\u30ea\u30d0\u30ea\u958b\u767a\u3057\u3066\u3044\u307e\u3059\u304b\uff1f\u6bce\u65e5\u306e\u3088\u3046\u306b\u4f7f\u3046\u958b\u767a\u30c4\u30fc\u30eb\u3063\u3066\u3059\u3054\u304f\u5927\u4e8b\u3067\u3059\u3088\u306d\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u9650\u3089\u305a\u3001\u666e\u6bb5\u304b\u3089\u81ea\u5206\u304c\u4f7f\u3046\u9053\u5177\u3092\u78e8\u3044\u3066\u304a&#8230;","protected":false},"author":5,"featured_media":2857,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":""},"categories":[5],"tags":[12],"_links":{"self":[{"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/posts\/2843"}],"collection":[{"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/comments?post=2843"}],"version-history":[{"count":7,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/posts\/2843\/revisions"}],"predecessor-version":[{"id":2856,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/posts\/2843\/revisions\/2856"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/media\/2857"}],"wp:attachment":[{"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/media?parent=2843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/categories?post=2843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.timecrowd.net\/wp-json\/wp\/v2\/tags?post=2843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}