<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>C++でゲームプログラミング</blog_title>
  <blog_url>https://osyo-manga.hatenadiary.org/</blog_url>
  <categories>
    <anon>vim</anon>
  </categories>
  <description>久しぶりに Vim の complete-functions を書いていたんですが、知らなかった仕様にはまったので覚書。 さて、Vim でオレオレコード補完処理を行いたい場合は 'completefunc' や 'omnifunc' などのオプションにコード補完関数を設定して実現します。 function! Complete(findstart, base) if a:findstart return 補完を開始する列の位置 endif return 補完の候補 endfunction set omnifunc=Complete 雑に書くと上のような感じです。 実際に でオムニ補完を呼び出すと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20140806%2F1407291600&quot; title=&quot;Vim の complete-functions でハマった - C++でゲームプログラミング&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>2014-08-06 11:20:00</published>
  <title>Vim の complete-functions でハマった</title>
  <type>rich</type>
  <url>https://osyo-manga.hatenadiary.org/entry/20140806/1407291600</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
