{"id":1943,"date":"2016-04-28T04:56:13","date_gmt":"2016-04-27T19:56:13","guid":{"rendered":"http:\/\/appsweets.net\/blog\/?p=1943"},"modified":"2016-04-28T04:56:13","modified_gmt":"2016-04-27T19:56:13","slug":"assign-to-a-register","status":"publish","type":"post","link":"https:\/\/appsweets.net\/blog\/2016\/04\/28\/assign-to-a-register\/","title":{"rendered":"Assign to a register"},"content":{"rendered":"<div class=\"db9cc8cdb64025d13c1cc9dad0a0e262\" data-index=\"1\" style=\"float: left; margin: 16px 16px 16px 0;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-5825700137064158\";\r\n\/* 250sq, appsweets-blog *\/\r\ngoogle_ad_slot = \"4837931762\";\r\ngoogle_ad_width = 250;\r\ngoogle_ad_height = 250;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\">\n<p lang=\"ja\" dir=\"ltr\">\u7d50\u5c40ignore\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u3067\u306e\u632f\u308b\u821e\u3044\u304c\u4e0d\u5b89\u5b9a\u306a\u306e\u306b\u5acc\u6c17\u304c\u5dee\u3057\u3066\u3057\u307e\u3044\u3001cVim \u304b\u3089 Vimium \u306b\u4e57\u308a\u63db\u3048\u3066\u3057\u307e\u3063\u305f\u3002Vimium \u3068 wasavi \u3067\u3001\u5feb\u9069chrome\u751f\u6d3b\u3002wasavi\u3067\u6052\u5e38\u7684\u306a\u30ec\u30b8\u30b9\u30bf\u767b\u9332\u306f\u3069\u3046\u3057\u305f\u3089\u51fa\u6765\u308b\u3093\u3060\u308d\u3046\uff1f\u6559\u3048\u3066\u5049\u3044\u4eba\uff01<\/p>\n<p>&mdash; \ud83c\udf8c Yoshi \ud83c\uddef\ud83c\uddf5 (@zenzo0410) <a href=\"https:\/\/twitter.com\/zenzo0410\/status\/723524231091228672?ref_src=twsrc%5Etfw\">April 22, 2016<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>\u30a8\u30c7\u30a3\u30bf\u3092\u958b\u3044\u305f\u6642\u306b\u7279\u5b9a\u306e\u30ec\u30b8\u30b9\u30bf\u306b\u5e38\u306b\u4efb\u610f\u306e\u5185\u5bb9\u304c\u5165\u3063\u3066\u3044\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001vim \u3067\u306f vimrc \u306b<br \/>\n<code><br \/>\n:let &z=\"foobar\"<br \/>\n<\/code><br \/>\n\u307f\u305f\u3044\u306b\u3059\u308b\u3068\u601d\u3046\u3002\u3053\u306e\u624b\u306e\u3053\u3068\u306f\u3001wasavi \u3067\u306f\u307e\u3060\u3067\u304d\u306a\u3044\uff08\u30ec\u30b8\u30b9\u30bf\u306e\u5185\u5bb9\u81ea\u4f53\u306f wasavi \u3092\u9589\u3058\u308b\u3068\u304d\u306b\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3078\u6c38\u7d9a\u5316\u3055\u308c\u308b\u306e\u3067\u7d50\u679c\u7684\u306b\u4ef6\u306e\u30c4\u30a4\u30fc\u30c8\u306e\u8981\u4ef6\u306f\u3059\u3067\u306b\u6e80\u305f\u3057\u3066\u3044\u308b\uff09\u3002<\/p>\n<p>\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u306e\u306f\u3001vim \u306e [cci]let[\/cci] \u6587\u306f\u3001ex \u30b3\u30de\u30f3\u30c9\u3068\u3044\u3046\u3088\u308a\u306f vimscript \u306e\u3044\u308f\u3086\u308b assignment statement \u3067\uff08\u305f\u3060\u3057\u30d8\u30eb\u30d7\u4e0a\u3067\u306f expression command \u3068\u3044\u3046\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\uff09\u3001wasavi \u306b\u306f\u307e\u3060\u30b9\u30af\u30ea\u30d7\u30c6\u30a3\u30f3\u30b0\u306e\u6a5f\u80fd\u304c\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3060\u3002<\/p>\n<p>\u3082\u3057\u305d\u306e\u624b\u306e\u6a5f\u80fd\u3092\u8a2d\u3051\u308b\u3068\u3057\u305f\u3089\u3001ex \u30b3\u30de\u30f3\u30c9\u306b [cci]script[\/cci] \u3092\u65b0\u8a2d\u3057\u3066<br \/>\n<code><br \/>\n:script wasavi.registers[\"z\"] = \"foobar\";<br \/>\n<\/code><br \/>\n<code><br \/>\n:script << END\nwasavi.registers[\"z\"] = \"foobar\";\nEND\n<\/code><br \/>\n\u306a\u611f\u3058\u306b\u306a\u308b\u3068\u601d\u3046\uff08\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u6587\u6cd5\u304c\u3053\u3046\u306a\u308b\u304b\u3069\u3046\u304b\u306f\u672a\u5b9a\u3060\uff09\u3002vim \u306e\u3088\u3046\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u69cb\u9020\u304c ex \u30b3\u30de\u30f3\u30c9\u306e\u30b9\u30fc\u30d1\u30fc\u30bb\u30c3\u30c8\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u8a2d\u8a08\u306b\u306f\u3001\u591a\u5206\u3057\u306a\u3044\u3002<\/p>\n<p>\u5b9f\u306f\u4ee5\u524d\u306b script \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u88c5\u3057\u304b\u3051\u305f\u3053\u3068\u306f\u3042\u3063\u305f\u306e\u3060\u304c<\/p>\n<ul>\n<li>wasavi \u306e\u52d5\u4f5c\u306e\u3046\u3061\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u3066\u8fd4\u4e8b\u3092\u5f85\u3064\u7b87\u6240\u306f\u975e\u540c\u671f\u3060\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3082\u5358\u306b\u30b7\u30fc\u30b1\u30f3\u30b7\u30e3\u30eb\u306b\u5b9f\u884c\u3059\u308b\u308f\u3051\u306b\u306f\u3044\u304b\u306a\u3044\u3002\u3064\u307e\u308a<br \/>\n<code lang=\"javascript\"><br \/>\na = wasavi.registers[\"*\"];<br \/>\nprint a;<br \/>\n<\/code><br \/>\n\u3068\u3044\u3046\u3088\u3046\u306b\u306f\u3044\u304b\u306a\u3044\u3002<br \/>\n<code lang=\"javascript\"><br \/>\nwasav.registers.get(\"*\").then(function (content) {<br \/>\n  print a;<br \/>\n});<br \/>\n<\/code><br \/>\n\u306e\u3088\u3046\u306a\u5f62\u5f0f\u306b\u305b\u3056\u308b\u3092\u5f97\u306a\u3044\u3002\u3059\u3079\u3066\u3053\u306e\u5f62\u5f0f\u3060\u3068\u304a\u6c17\u697d\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7bc4\u7587\u3092\u8d85\u3048\u3066\u3044\u308b\u3002\u540c\u671f\u304b\u975e\u540c\u671f\u304b\u3067\u6587\u6cd5\u3092\u4f7f\u3044\u5206\u3051\u308b\u3068\u3057\u3066\u3082\u305d\u308c\u3082\u7169\u96d1\u3059\u304e\u308b<\/li>\n<li>\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u4f8b\u3048\u3070 javascript \u3067\u3042\u308b\u3068\u5b9a\u7fa9\u3059\u308b\u3068\u305d\u308c\u3092\u5b9f\u884c\u3059\u308b\u306e\u306f eval \u6587\u306b\u306a\u308b\u304c\u3001\u305d\u308c\u3060\u3068\u3067\u304d\u308b\u3053\u3068\u304c\u591a\u3059\u304e\u308b\u3002\u4f55\u3067\u3082\u3067\u304d\u3059\u304e\u308b\u3068\u52d5\u4f5c\u306e\u4fdd\u8a3c\u3082\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u9762\u3067\u306e\u5b89\u5168\u6027\u306e\u4fdd\u8a3c\u3082\u3067\u304d\u306a\u3044<\/li>\n<li>\u4e00\u65b9\u3067\u5b8c\u5168\u306b\u52d5\u4f5c\u3092\u5236\u5fa1\u53ef\u80fd\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u3092\u5b9f\u88c5\u3057\u3001\u305d\u306e\u7ba1\u7406\u4e0b\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u52d5\u304b\u3059\u3068\u306a\u308b\u3068\u30b3\u30fc\u30c9\u30b5\u30a4\u30ba\u3068\u5b9f\u884c\u901f\u5ea6\u306e\u5371\u967a\u304c\u5371\u306a\u3044<\/li>\n<\/ul>\n<p>\u306a\u3069\u306a\u3069\u554f\u984c\u304c\u3042\u308a\u3059\u304e\u3066\u3053\u308a\u3083\u6642\u671f\u5c1a\u65e9\u3060\u3068\u3044\u3046\u3053\u3068\u3067\u68da\u4e0a\u3052\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u3069\u3046\u3057\u305f\u3082\u306e\u304b\u3002<\/p>\n<div class=\"db9cc8cdb64025d13c1cc9dad0a0e262\" data-index=\"1\" style=\"float: left; margin: 16px 16px 16px 0;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-5825700137064158\";\r\n\/* 250sq, appsweets-blog *\/\r\ngoogle_ad_slot = \"4837931762\";\r\ngoogle_ad_width = 250;\r\ngoogle_ad_height = 250;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u7d50\u5c40ignore\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u3067\u306e\u632f\u308b\u821e\u3044\u304c\u4e0d\u5b89\u5b9a\u306a\u306e\u306b\u5acc\u6c17\u304c\u5dee\u3057\u3066\u3057\u307e\u3044\u3001cVim \u304b\u3089 Vimium \u306b\u4e57\u308a\u63db\u3048\u3066\u3057\u307e\u3063\u305f\u3002Vimium \u3068 wasavi \u3067\u3001\u5feb\u9069chrome\u751f\u6d3b\u3002wasavi\u3067\u6052\u5e38\u7684\u306a\u30ec\u30b8\u30b9\u30bf\u767b\u9332\u306f\u3069\u3046\u3057\u305f\u3089\u51fa\u6765\u308b\u3093\u3060\u308d\u3046\uff1f\u6559\u3048\u3066\u5049\u3044\u4eba\uff01 &mdash; \ud83c\udf8c Yoshi \ud83c\uddef\ud83c\uddf5 (@zenzo0410) April 22, 2016 \u30a8\u30c7\u30a3\u30bf\u3092\u958b\u3044\u305f\u6642\u306b\u7279\u5b9a\u306e\u30ec\u30b8\u30b9\u30bf\u306b\u5e38\u306b\u4efb\u610f\u306e\u5185\u5bb9\u304c\u5165\u3063\u3066\u3044\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001vim \u3067\u306f vimrc \u306b :let &#038;z=&#8221;foobar&#8221; \u307f\u305f\u3044\u306b\u3059\u308b\u3068\u601d\u3046\u3002\u3053\u306e\u624b\u306e\u3053\u3068\u306f\u3001wasavi \u3067\u306f\u307e\u3060\u3067\u304d\u306a\u3044\uff08\u30ec\u30b8\u30b9\u30bf\u306e\u5185\u5bb9\u81ea\u4f53\u306f wasavi \u3092\u9589\u3058\u308b\u3068\u304d\u306b\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3078\u6c38\u7d9a\u5316\u3055\u308c\u308b\u306e\u3067\u7d50\u679c\u7684\u306b\u4ef6\u306e\u30c4\u30a4\u30fc\u30c8\u306e\u8981\u4ef6\u306f\u3059\u3067\u306b\u6e80\u305f\u3057\u3066\u3044\u308b\uff09\u3002 \u3067\u304d\u306a\u3044\u3068\u3044\u3046\u306e\u306f\u3001vim \u306e [cci]let[\/cci] \u6587\u306f\u3001ex \u30b3\u30de\u30f3\u30c9\u3068\u3044\u3046\u3088\u308a\u306f vimscript \u306e\u3044\u308f\u3086\u308b assignment statement \u3067\uff08\u305f\u3060\u3057\u30d8\u30eb\u30d7\u4e0a\u3067\u306f expression command \u3068\u3044\u3046\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\uff09\u3001wasavi \u306b\u306f\u307e\u3060\u30b9\u30af\u30ea\u30d7\u30c6\u30a3\u30f3\u30b0\u306e\u6a5f\u80fd\u304c\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3060\u3002 \u3082\u3057\u305d\u306e\u624b\u306e\u6a5f\u80fd\u3092\u8a2d\u3051\u308b\u3068\u3057\u305f\u3089\u3001ex &hellip; <a href=\"https:\/\/appsweets.net\/blog\/2016\/04\/28\/assign-to-a-register\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5,3,4],"class_list":["post-1943","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-javascript","tag-vi","tag-wasavi"],"_links":{"self":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/1943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/comments?post=1943"}],"version-history":[{"count":3,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/1943\/revisions"}],"predecessor-version":[{"id":1946,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/1943\/revisions\/1946"}],"wp:attachment":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/media?parent=1943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/categories?post=1943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/tags?post=1943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}