Heider in this listen we're going to talk about the basics of why and then Editor Y and vim but the
text editors are the very popular text editors in the linux and Weimann game.
Why it didn't.
Was told by Bill Choi in 1976.
OK.
And as an improved version of why film is interesting.
OK.
It was by Brad Mulliner and made publicly available in 1991.
OK.
So the working well why and when it Editor is same.
OK so let's see practically how to create a file of Goodloe to file ogee or Hoku data.
OK.
In the white digger practically.
OK folks know that why and when editor but the text editors started either in insert mode or in common
mode.
OK.
So when you start the white letter by default it is an insert.
More you can start either.
Why are women neither.
Ok so good start.
Why Dieter or women.
You just need to type Y on vim.
Come on.
OK.
And hit enter.
OK.
So I want to start with why.
OK here you can see this is the extruder we started here.
OK.
By default it doesn't come on more.
So no it isn't.
Come one more so if you want to insert some data.
You need to go inside more.
OK so you get into it more.
You just need to press on your keyboard.
OK now we are inside more.
Here you can see at the bottom the inserted text is up here.
So it could insert the data to start typing.
OK so Will tab does stand work of why all the editor like this.
You can type the data on it with the help of backslash you can delete the inserted data and get all
you can move with the arrow keys on your keyboard.
OK.
Here inside the why all vim editor of it.
So inside the insert mode or you can just delete or insert the data you cannot perform an operations
like copying code paste.
OK like that.
To perform this operation you need to come out of the insert mode to insert mode just press Escape.
OK now we are out of the insert mode.
So what operations me can form with the command.
So first of all let's see how to sue this file.
OK.
We do not name this file here.
So Press Control shift and colon.
OK.
And here is W. J.
And it says that no file name.
That means you need to press conference shift call and again w and here with space you need to provide
the filename.
I'm going to have the file example got the XTi and hit enter.
OK.
It says that return.
Here you can see it says written that means or Faisel to successfully.
So after saving the file with the file.
You also need to be in common mode.
OK so now we are still in command mode so press conference call that press Q And this symbol here on
your key will get and hit Enter key like this.
You can get out of the way mediator.
OK.
So let's see here you can see example got DST is created here on our current working directly.
So the contents just type get some full block 60.
And here you can see it shows us the contents of the file.
OK.
So let's clear and type why some.
Got DST.
OK.
You can open an existing file with this way.
Suppose your file is present inside the EDC directory.
So you just need to provide a part like this.
So you need to provide the full part name.
So I'm going to open the file here because you are in the same directory where the file is present so
enter.
And here you can see the file is open.
So here I'm going to show you how to copy the data.
Ok suppose you want to copy the data and just press Y Y Y Y is used to copy the data.
And here I'm going to press B and here you can see of two pressing it first the copy line here.
When you press y y it copies the whole line or the other way to copy and paste the data please just
press control V.
OK.
Now here at the bottom you can see vidual block.
So here you can really see which line you are copying.
OK.
So I'm going to copy this kid.
And after that press Y and press D and here you can see it first vertex from H S to the oil.
Because I had copied the text from it.
OK.
So in this way you can copy and paste in the Linux text you later.
OK.
I suppose you want to delete the line.
OK let's get this whole line.
So to do this line you just need to press Deedy OK.
And when you press you on your keyboard the whole line get deleted.
And suppose you want to dilute a particular line.
So and this time just press control and select the text that you want to be.
I just want to deliver this line only and then press the in this way you can delete the Select line.
And if you want to undo the changes press you get in this way you can undo the changes by pressing you
and delete the line by pressing the D.
OK.
If you want to cut and paste the line then for that you first need to select line press D and after
that here at the bottom I would like to post it here.
Presby you get in this way you can go first by pressing D and then B.
OK.
And double-D is used to delete a particular line.
OK.
And you can use X to delete a line.
OK.
In the text file like this if you press X you can use tags to delete a particular line and to reword
the changes.
Press you again you can use X like this to delete the file contents one by one.
And the attendees press you
get.
So I'm going to get the final.
Now we'll get to sell the tennis press w and then Q And then the symbol and hit enter.
So let's see the contents in some dot XTi.
OK here you can see.
It seems the changes that re-emitted are fine.
OK.
So let's open the file here again with why all of them.
OK let's open it with.
When you say really not yes.
OK.
And in this final press conference call colon forward slash.
OK this is used to search a particular text inside the file.
So I want you so I understand let's hit enter.
OK now here you can see it shows you the line where your text is present.
OK.
Let's get the file here.
OK let's start the why didn't know how to use an existing file for rainy day here so far that just Breske
conclusive colon and here are.
And then insert the filename with the full part.
OK.
So here are Phylis present in the current directory.
And we are inside the current directory.
OK.
So that's why I want to play word here to file them directly.
That is example.
Got 60.
And here you can see in this way you can open the file again.
Inside this white or women that are OK I'm going to copy and pasting these lines.
OK.
You can set the numbers to your contents.
OK inside the file.
OK.
So how to set the numbers just going to shift and type here set and you and hit enter.
OK.
Like this.
You can set the numbers OK it will be really helpful to you to know how long you are called again or
at exactly in which line number you are getting an error problem.
This will be very helpful in case you are doing programming or scripting like stuff inside the Linux
operating system.
OK.
In this way you can use the why or the editor inside the Ubuntu server or any Linux operating system.