272
211

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

#vimでの行番号の表示・非表示の方法

##【行番号の表示】

カーソルモード(ESCを押したあとの状態)で
以下のコマンド

:set number

##【行番号の非表示】

カーソルモード(ESCを押したあとの状態)で
以下のコマンド

:set nonumber

##その他
デフォルトで行番号表示させたい場合は、.vimrcを
設定しておく。

$ vi ~/.vimrc

" 行番号を表示
set number

272
211
5

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
272
211

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?