Line Numbers in VI and/or Visual C++ :: C++
I always find myself counting the number of lines in my code when GNU C++ gives me errors with line numbers. However, counting is a slow and tedious in Linux C++ editors such as VI. I saw someone use a Linux C++ editor with line numbers on the left. I am not sure what editor he was using, but I believe it was VI.
How do you enable line numbers inside VI C++ editor? Is it possible to view line numbers in Visual C++ as well? Microsoft makes Visual C++ extremely user friend as it directly focuses to the error line when the user double-click on the error. Nonetheless, since Linux C++ editors such as VI do not have that feature, I would like to try and practice debugging using line numbers.