This option can be turn on using .vimrc file.
Open that file and type in the following line:
set number
Save the file and open Vim again. You should see line numbers on the left.
This option can be turn on using .vimrc file.
Open that file and type in the following line:
set number
Save the file and open Vim again. You should see line numbers on the left.
This task can be done using regular expression.
1. Open you text file using Vim.
2. Type :%g/^$/
3. Hit Enter
Sometimes we need to shift a block of text inside a loop for example. We will use a ‘>’ char for it.