<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m1204080</author_name>
  <author_url>https://blog.hatena.ne.jp/m1204080/</author_url>
  <blog_title>やまと秋松茸祭り</blog_title>
  <blog_url>https://m1204080.hatenadiary.org/</blog_url>
  <categories>
    <anon>vim</anon>
    <anon>vimscript</anon>
  </categories>
  <description>たとえば、動的に、キーを作成して追加していきたいとき、 PHPでは $hash = array(); $key = 'dynamic'; $value = true; //変数を用いて動的にキー、値を作成 $hash[$key] = $value; とやりますね。これと同様のことをvimscriptでやりますと、 &quot; 初期化 let dic = {} let key = 'dynamic' let value = 1 execute 'let dic.' . key . '=' .value とやればできます。*1 *2 ※注意※ 配列のキー名に &quot;-&quot;(ハイフン) や&quot;.&quot;をつかったらエラー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fm1204080.hatenadiary.org%2Fentry%2F20101124%2F1290623929&quot; title=&quot;vimscriptの辞書型(ハッシュ)で動的にキーを生成する - やまと秋松茸祭り&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-11-24 03:38:49</published>
  <title>vimscriptの辞書型(ハッシュ)で動的にキーを生成する</title>
  <type>rich</type>
  <url>https://m1204080.hatenadiary.org/entry/20101124/1290623929</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
