<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kiyotune</author_name>
  <author_url>https://blog.hatena.ne.jp/kiyotune/</author_url>
  <blog_title>常水商会::よしなしごと</blog_title>
  <blog_url>https://cockatiel-cage.hateblo.jp/</blog_url>
  <categories>
    <anon>vim</anon>
  </categories>
  <description>vimの編集モードでCtrl+vでスニペットをコピペしようとしたときに、途中にコメント文が含まれると、それ以降のコードがすべてコメント継続してコピペされてしまうのでいらっとしますよね。そんなときに使うのが以下のオプション。 formatoptions: 『r』 r 挿入モードで &lt;Enter&gt; を打ち込んだ後に、現在のコメント開始文字列を自動 挿入する。 :help fo-table でその他いろいろなオプションが参照できます。 コマンドモードで :set formatoptions-=r を実行してみるとコマンド行が継続されなくなっていい感じに。 早速 .vimrc に追加してvimスクリプ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcockatiel-cage.hateblo.jp%2Fentry%2F2012%2F10%2F07%2F122009&quot; title=&quot;改行時にコメント継続するのをやめさせたい - 常水商会::よしなしごと&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-10-07 12:20:09</published>
  <title>改行時にコメント継続するのをやめさせたい</title>
  <type>rich</type>
  <url>https://cockatiel-cage.hateblo.jp/entry/2012/10/07/122009</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
