107
97

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でカッコの内側を選択する

Posted at

iをつかう

以下はカッコ内にカーソルがあるとします

(Hello Qiita)

なら、vi)
かっこの内側を選択じゃなくて削除したいときはdi)
かっこの内側を削除したうえにインサートモードにしたいときはci)

"Hello Qiita"

なら、vi"

<h1>Hello Qiita</h1>

なら、vit (タグって意味)

ちなみに、カッコもふくめて選択したいときはaをつかう

ちなみに、ちなみに、単語だけ選択したいときはiwをつかう(awだとスペースもふくむ)

くわしくは、:h text-object 日本語ヘルプは:h text-object@ja

107
97
1

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
107
97

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?