<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>noppochan</author_name>
  <author_url>https://blog.hatena.ne.jp/noppochan/</author_url>
  <blog_title>noppochan</blog_title>
  <blog_url>https://bibo6.hateblo.jp/</blog_url>
  <categories>
    <anon>Vim</anon>
  </categories>
  <description>概要 vimでファイル操作しながらコマンドモードでコンパイルや別のファイル操作をすることが頻繁である．随時変わる編集ファイルのパスをコマンドモードからカレントディレクトリに楽々設定する方法のメモ． コマンドを指定して移動 予備知識として，%は現在編集中のバッファ（カレントファイル名），:hはファイル名の先頭（末尾の部分とすべての区切りが除かれたもの．つまりファイルがあるディレクトリを指定している感じ）であるから，%:hは開いているファイルのディレクトリに展開される． 従ってvimコマンドモードから以下のように操作すればよい． :cd %:h :cdはグローバルなカレントディレクトリを変更する．…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbibo6.hateblo.jp%2Fentry%2F2015%2F01%2F13%2F142442&quot; title=&quot;vimで編集中のファイルのディレクトリに移動する - noppochan&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>2015-01-13 14:24:42</published>
  <title>vimで編集中のファイルのディレクトリに移動する</title>
  <type>rich</type>
  <url>https://bibo6.hateblo.jp/entry/2015/01/13/142442</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
