<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>vimblog</author_name>
  <author_url>https://blog.hatena.ne.jp/vimblog/</author_url>
  <blog_title>Vim のブログ</blog_title>
  <blog_url>https://vimblog.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>autocmd による自動処理 の便利な実例を幾つか紹介したいと思います。利用したいスクリプトを.vimrc に書き加えてください。 ファイルを開いた時に、前回のセッション終了時のカーソル位置を復元する function! s:RestoreCursorPostion() if line(&quot;'\&quot;&quot;) &lt;= line(&quot;$&quot;) normal! g`&quot; return 1 endif endfunction &quot; ファイルを開いた時に、以前のカーソル位置を復元する augroup vimrc_restore_cursor_position autocmd! autocmd BufWinEnter *…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fvimblog.hatenablog.com%2Fentry%2Fvimrc_autocmd_examples&quot; title=&quot;Vim のカスタマイズ 〜autocmd で自動処理の実例〜 - Vim のブログ&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>2012-09-02 00:43:35</published>
  <title>Vim のカスタマイズ 〜autocmd で自動処理の実例〜</title>
  <type>rich</type>
  <url>https://vimblog.hatenablog.com/entry/vimrc_autocmd_examples</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
