{"id":1883,"date":"2019-08-17T20:14:08","date_gmt":"2019-08-17T11:14:08","guid":{"rendered":"https:\/\/yuis-programming.com\/?p=1883"},"modified":"2021-07-18T18:17:14","modified_gmt":"2021-07-18T09:17:14","slug":"vim-%e3%81%ae%e6%84%8f%e5%91%b3%e3%81%a8%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/yuis-programming.com\/?p=1883","title":{"rendered":"Vim <leader>\u306e\u610f\u5473\u3068\u4f7f\u3044\u65b9"},"content":{"rendered":"<p>Vim\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306e&#8221;<leader>&#8220;\u306e\u610f\u5473\u3068\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/leader><\/p>\n<p><leader><\/leader><\/p>\n<blockquote><p>\n  The <leader> key is mapped to <code>\\<\/code> by default. So if you have a map of <leader>t, you can execute it by default with <code>\\+t<\/code><\/leader><\/leader><\/p>\n<p>re-assigning it using the mapleader variable<\/p><\/blockquote>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/1764263\/what-is-the-leader-in-a-vimrc-file\">vim &#8211; What is the <leader> in a .vimrc file? &#8211; Stack Overflow<\/leader><\/a><\/p>\n<pre><code>:map &lt;Leader&gt;A  oanother line &lt;Esc&gt;\n<\/code><\/pre>\n<pre><code>:map \\A  oanother line &lt;Esc&gt;\n<\/code><\/pre>\n<pre><code>:let mapleader = \",\"\n<\/code><\/pre>\n<pre><code>:echo mapleader\n<\/code><\/pre>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e<code>\\<\/code>\u306e\u4ee3\u66ff\u3068\u3057\u3066\u306f\u3001 <code>,<\/code>, <code><\/code>(<code>\\s\\s<\/code>), <code>\\\\<\/code> \u3042\u305f\u308a\u304c\u4eba\u6c17\u306a\u3088\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vim\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306e&#8221;&#8220;\u306e\u610f\u5473\u3068\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002 The key is  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"acf":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rxwo-un","_links":{"self":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1883"}],"collection":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1883"}],"version-history":[{"count":2,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1883\/revisions"}],"predecessor-version":[{"id":2593,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1883\/revisions\/2593"}],"wp:attachment":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}