![what is text editor in command prompt what is text editor in command prompt](https://2.bp.blogspot.com/-Rhf2npe4qDM/W1-nU6ITkLI/AAAAAAAATys/6ieF0mv1VDs3rfkUag46sPG4Kg4ZT2DFgCLcBGAs/s640/li2.26.png)
CommandĮxample: cw allows you to change a word. In the following list M is a Unit of Measure that you can precede with a Repeat Factor, n. P will put the 3 lines just yanked on the line below the current cursor. To line n (Ex: 25G moves the cursor to line #25) ^Character means that you should hold down the Control key while striking the indicated character key. Viewing Different Parts of the Work Buffer: If you delete by mistake: give the command u (undo) immediately after you give the delete command.Įxamples: 3dd will delete 3 lines beginning with the current line.ĭelete to beginning of blank delimited wordĭelete 5 lines starting with the current lineĭelete through the last line on the screenĭelete through the first line on the screenĭelete through the beginning of the sentenceĭelete the number of characters specified by n.ĭelete n characters before the current character The amount removed depends on the Repeat Factor and the Unit of Measure you enter after d. The d command removes text from the Work Buffer. Each of these commands can be preceded with a Repeat Factor.ģw will move the cursor 3 words to the right.
![what is text editor in command prompt what is text editor in command prompt](https://matchfasr497.weebly.com/uploads/1/2/5/3/125351807/164975596.jpg)
You must be in Command Mode to use commands that move the cursor.
![what is text editor in command prompt what is text editor in command prompt](https://i.stack.imgur.com/a2Qln.png)
If in insert mode, enter command mode by hitting the escape,, key. To enter text, you must enter insert mode. When entering a file, vi is in command mode. Command mode is the mode to be in when giving commands which will move the cursor, delete text, copy and paste, save the file etc. Insert mode is the mode to be in when inserting text into the file. CommandĮdit filename starting at the first line containing pattern Example: > vi letter will open a new file called letter to edit, or if letter already exits, open the exiting file.