If you are talking about show line number command in vi/vim. you could use. set nu. in commandline mode to turn on and. set nonu. ... <看更多>
Search
Search
If you are talking about show line number command in vi/vim. you could use. set nu. in commandline mode to turn on and. set nonu. ... <看更多>
How to enable line number in VI Editor?command: set numberset nonumberAdd above settings in ~/.vimrc file. ... <看更多>
In pure Vim fashion: :%s/^/\=line('.').". " Explanation: :%s/^/ " the substitution will be applied to the beginning of every line \= " the rest of the ... ... <看更多>