たまに必要になって毎回調べ直すので、メモしておく。
行番号の表示
カーソルモードで以下のコマンドを実行。
:set number
実行前の例は以下。
#include <stdio.h>
main( )
{
printf("hello, world\n");
}
実行後の例は以下。
1 #include <stdio.h>
2
3 main( )
4 {
5 printf("hello, world\n");
6 }