387
367

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vimでペーストするときインデントさせない

387
Last updated at Posted at 2012-12-26

vimでプログラムをペーストするときにそのままだと自動的にインデントがかかって、
下に行くほどコードが右に寄ってしまう。

そんな時、自動的にインデントせずにペーストするには、

  1. ":a!"
  2. ペースト
  3. エスケープキー

でペーストできるみたい。

ちなみに":i!"だとインサートモードでペーストになります。

387
367
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
387
367

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?