LoginSignup
0
0

More than 1 year has passed since last update.

実践Vimメモ②

Posted at

やりたいことと操作

cities = %w{London Berlin New York}

cities = [London Berlin New York]

にしたい

①"%w"を削除

dt{

②対応する括弧へ移動

%

③"}"を"]"に置換

r]

④元あった対応括弧元へ移動
ここが一番のポイント

''

⑤"{"を"["に置換

r[

その他

vim-sandwichを使わせていただいているので登場出番は少ないかもしれないが
覚えておきたい

0
0
0

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
0
0