Open Source Projects
To append any text at the end of a line we first have to switch to the command mode. For this we press the Escape [Esc] key. Next we move to the desired line using the nG command where n is an integer value denoting the line number were we want to move our cursor. For instance if we want to move to the 4th line we will type 4G and press enter. After reaching to the desired line we will hit the A and it will move the cursor to the end of the line and enter the INSERT mode were we can append our text.
Press Escape [Esc] to enter command modeType nG to go to the nth line in the file where we want to append the textPress A to move to the end of the desired line and enter into INSERT mode to append text
To append text at the end of the file we have to use the following.
Press Escape [Esc] to switch to command modePress G to move to the last line of the filePress A to move to the end of the last line and enter into INSERT mode to append text
An opening line is simply a blank line between two lines.
To insert an opening line above the current line press O
To insert an opening line below the current line press o
Have fun learning :-)
Copyright © 2014 - 2018 DYclassroom. All rights reserved.
rendered in 0.0560 sec