[vim] vim line numbers - how to have them on by default?

Add set number to your .vimrc file in your home directory.
If the .vimrc file is not in your home directory create one with vim .vimrc and add the commands you want at open.

Here's a site that explains the vimrc and how to use it.

Examples related to vim

Why does using from __future__ import print_function breaks Python2-style print? How to run vi on docker container? How can I install MacVim on OS X? Find and replace strings in vim on multiple lines Running Python code in Vim How do I set the default font size in Vim? Move cursor to end of file in vim Set encoding and fileencoding to utf-8 in Vim How to select all and copy in vim? Why I've got no crontab entry on OS X when using vim?

Examples related to vi

How to run vi on docker container? Find and replace strings in vim on multiple lines How can I delete multiple lines in vi? Is there a short cut for going back to the beginning of a file by vi editor? vi/vim editor, copy a block (not usual action) How to go back (ctrl+z) in vi/vim How do I exit the Vim editor? vim line numbers - how to have them on by default? Go to beginning of line without opening new line in VI How to take off line numbers in Vi?

Examples related to editing

Disabling user input for UITextfield in swift vim line numbers - how to have them on by default? "Find next" in Vim Commenting out a set of lines in a shell script Find a line in a file and remove it How to insert text at beginning of a multi-line selection in vi/Vim

Examples related to line-numbers

vim line numbers - how to have them on by default? How to make phpstorm display line numbers by default? C/C++ line number Enable the display of line numbers in Visual Studio Delete specific line number(s) from a text file using sed? Number of lines in a file in Java