I want to set vim with that. but I can't find the way.
Just use the following
:set nu :set rnu
For more information use :help
:help
:h number :h relativenumber