sudo vim /etc/vim/vimrc
在末尾加 set number 如下56
49 "set showmatch " Show matching brackets.
50 "set ignorecase " Do case insensitive matching
51 "set smartcase " Do smart case matching
52 "set incsearch " Incremental search
53 "set autowrite " Automatically save before commands like :next and :make
54 "set hidden " Hide buffers when they are abandoned
55 "set mouse=a " Enable mouse usage (all modes)
56 set number " show line number
57 " Source a global configuration file if available