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?

Neovim で複数の空白行を追加する方法

0
Posted at

ただのtipsです。

課題

ノーマルモードでも、インサートモードに入らずに複数の空白行を追加したいなぁと思いました。

インサートモードに入る場合、o で下に改行してインサートモードに入る。O で上に改行してインサートモードに入る。
ということができる。

しかし、これをノーマルモードに入って、かつ複数行追加できるようにしたいと思った。

環境

Neovim version 0.11 以上

やり方

Neovim 0.11 からすでに公式で対応されている。

  • ]<Space> : カーソル行の下に空白行を追加
  • [<Space> : カーソル行の上に空白行を追加

複数の空白行を追加したい場合は、n]<Space> で カーソル行の下に空白行をn 行追加(nは正の整数)となる。

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?