As of IntelliJ IDEA version 2016.2
, and IdeaVim version 0.46
, IntelliJ's native option for showing line numbers is ineffective. When clicking Show line numbers, the line numbers immediately show and disappear.
This problem is caused by a bug in the IdeaVim plugin, which can be resolved by using the Vim command for showing line numbers:
:set number
and
:set nonumber
to hide.
These commands can also be used as the shorthand :set nu
and :set nonu
.
If you wish to activate the feature which shows relative line numbers instead you can use
:set relativenumber
or a shorthand :set rnu
. Remember that you can mix set relativenumber
with set number
.