0
0

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 3 years have passed since last update.

VimでCTRL-Yが便利だった。

Posted at

概要

Vimで、CTRL-Yが便利だったので、簡潔にまとめてみる。

挿入モードのCTRL-Yでの貼り付け。

内容

環境

VIM - Vi IMproved 8.1 (2018 May 18, compiled Nov 3 2021 04:38:26)
macOS version

典拠

実践

目的

a.py
a = lambda x: (x + 2) ** 2

から

a.py
a = lambda x: (x + 2) ** 2
b = lambda x: (x + 3) ** 2

手順

a.py
a = lambda x: (x + 2) ** 2

2行目で挿入モードにしてbを押下。

a.py
a = lambda x: (x + 2) ** 2
b

18回CTRL-Yを押下。

a.py
a = lambda x: (x + 2) ** 2
b = lambda x: (x + 

3を押下。

a.py
a = lambda x: (x + 2) ** 2
b = lambda x: (x + 3

残りもCTRL-Yを押下。

a.py
a = lambda x: (x + 2) ** 2
b = lambda x: (x + 3) ** 2

完。

蛇足

下の行に合わせるときは、CTRL-E。

まとめ

挿入モードのCTRL-Yは便利だった。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?