To change the default setting to display line numbers in vi/vim:
vi ~/.vimrc
then add the following line to the file:
set number
Either we can source ~/.vimrc or save and quit by :wq, now vim session will have numbering
https://stackoverflow.com/a/31105979/8608003
댓글 없음:
댓글 쓰기