WEBVTT

0
00:09.470 --> 00:17.270
Heider in this listen we're going to talk about the basics of why and then Editor Y and vim but the

1
00:17.270 --> 00:22.900
text editors are the very popular text editors in the linux and Weimann game.

2
00:22.910 --> 00:23.980
Why it didn't.

3
00:24.050 --> 00:28.160
Was told by Bill Choi in 1976.

4
00:28.190 --> 00:28.760
OK.

5
00:28.970 --> 00:33.180
And as an improved version of why film is interesting.

6
00:33.310 --> 00:33.950
OK.

7
00:33.980 --> 00:40.550
It was by Brad Mulliner and made publicly available in 1991.

8
00:40.690 --> 00:41.190
OK.

9
00:41.390 --> 00:44.830
So the working well why and when it Editor is same.

10
00:44.990 --> 00:53.020
OK so let's see practically how to create a file of Goodloe to file ogee or Hoku data.

11
00:53.040 --> 00:53.530
OK.

12
00:53.560 --> 00:56.870
In the white digger practically.

13
00:57.000 --> 01:05.770
OK folks know that why and when editor but the text editors started either in insert mode or in common

14
01:05.780 --> 01:06.240
mode.

15
01:06.450 --> 01:07.040
OK.

16
01:07.190 --> 01:11.840
So when you start the white letter by default it is an insert.

17
01:11.880 --> 01:13.520
More you can start either.

18
01:13.520 --> 01:14.950
Why are women neither.

19
01:15.020 --> 01:16.650
Ok so good start.

20
01:16.640 --> 01:18.580
Why Dieter or women.

21
01:18.800 --> 01:22.130
You just need to type Y on vim.

22
01:22.160 --> 01:22.700
Come on.

23
01:22.730 --> 01:23.550
OK.

24
01:23.570 --> 01:24.940
And hit enter.

25
01:24.980 --> 01:25.470
OK.

26
01:25.520 --> 01:28.130
So I want to start with why.

27
01:28.370 --> 01:33.000
OK here you can see this is the extruder we started here.

28
01:33.150 --> 01:33.400
OK.

29
01:33.410 --> 01:35.220
By default it doesn't come on more.

30
01:35.360 --> 01:36.200
So no it isn't.

31
01:36.200 --> 01:39.350
Come one more so if you want to insert some data.

32
01:39.380 --> 01:41.410
You need to go inside more.

33
01:41.530 --> 01:43.960
OK so you get into it more.

34
01:44.000 --> 01:46.530
You just need to press on your keyboard.

35
01:46.580 --> 01:48.320
OK now we are inside more.

36
01:48.320 --> 01:51.500
Here you can see at the bottom the inserted text is up here.

37
01:51.620 --> 01:54.070
So it could insert the data to start typing.

38
01:54.170 --> 02:06.800
OK so Will tab does stand work of why all the editor like this.

39
02:06.800 --> 02:15.040
You can type the data on it with the help of backslash you can delete the inserted data and get all

40
02:15.110 --> 02:17.650
you can move with the arrow keys on your keyboard.

41
02:17.690 --> 02:18.150
OK.

42
02:18.360 --> 02:22.430
Here inside the why all vim editor of it.

43
02:22.430 --> 02:29.750
So inside the insert mode or you can just delete or insert the data you cannot perform an operations

44
02:29.750 --> 02:32.050
like copying code paste.

45
02:32.090 --> 02:33.440
OK like that.

46
02:33.450 --> 02:41.200
To perform this operation you need to come out of the insert mode to insert mode just press Escape.

47
02:41.350 --> 02:44.110
OK now we are out of the insert mode.

48
02:44.210 --> 02:47.930
So what operations me can form with the command.

49
02:48.200 --> 02:51.310
So first of all let's see how to sue this file.

50
02:51.350 --> 02:51.790
OK.

51
02:51.850 --> 02:54.190
We do not name this file here.

52
02:54.350 --> 02:58.180
So Press Control shift and colon.

53
02:58.270 --> 02:58.850
OK.

54
02:59.120 --> 03:02.420
And here is W. J.

55
03:02.470 --> 03:05.370
And it says that no file name.

56
03:05.540 --> 03:12.500
That means you need to press conference shift call and again w and here with space you need to provide

57
03:12.500 --> 03:13.270
the filename.

58
03:13.310 --> 03:19.550
I'm going to have the file example got the XTi and hit enter.

59
03:20.060 --> 03:20.460
OK.

60
03:20.510 --> 03:22.180
It says that return.

61
03:22.190 --> 03:26.370
Here you can see it says written that means or Faisel to successfully.

62
03:26.510 --> 03:29.640
So after saving the file with the file.

63
03:29.840 --> 03:32.090
You also need to be in common mode.

64
03:32.120 --> 03:40.160
OK so now we are still in command mode so press conference call that press Q And this symbol here on

65
03:40.160 --> 03:44.540
your key will get and hit Enter key like this.

66
03:44.540 --> 03:47.750
You can get out of the way mediator.

67
03:47.840 --> 03:48.260
OK.

68
03:48.290 --> 03:56.280
So let's see here you can see example got DST is created here on our current working directly.

69
03:56.600 --> 04:02.640
So the contents just type get some full block 60.

70
04:02.700 --> 04:06.220
And here you can see it shows us the contents of the file.

71
04:06.360 --> 04:07.790
OK.

72
04:08.090 --> 04:12.780
So let's clear and type why some.

73
04:13.000 --> 04:14.340
Got DST.

74
04:14.480 --> 04:15.070
OK.

75
04:15.110 --> 04:18.000
You can open an existing file with this way.

76
04:18.140 --> 04:22.160
Suppose your file is present inside the EDC directory.

77
04:22.160 --> 04:26.040
So you just need to provide a part like this.

78
04:26.300 --> 04:28.200
So you need to provide the full part name.

79
04:28.200 --> 04:34.050
So I'm going to open the file here because you are in the same directory where the file is present so

80
04:34.420 --> 04:35.150
enter.

81
04:35.400 --> 04:37.680
And here you can see the file is open.

82
04:37.760 --> 04:41.430
So here I'm going to show you how to copy the data.

83
04:41.710 --> 04:49.830
Ok suppose you want to copy the data and just press Y Y Y Y is used to copy the data.

84
04:49.870 --> 04:58.200
And here I'm going to press B and here you can see of two pressing it first the copy line here.

85
04:58.280 --> 05:06.290
When you press y y it copies the whole line or the other way to copy and paste the data please just

86
05:06.290 --> 05:08.060
press control V.

87
05:08.140 --> 05:08.730
OK.

88
05:08.780 --> 05:11.740
Now here at the bottom you can see vidual block.

89
05:11.960 --> 05:15.440
So here you can really see which line you are copying.

90
05:15.620 --> 05:16.390
OK.

91
05:16.700 --> 05:19.940
So I'm going to copy this kid.

92
05:20.430 --> 05:31.280
And after that press Y and press D and here you can see it first vertex from H S to the oil.

93
05:31.310 --> 05:34.660
Because I had copied the text from it.

94
05:35.140 --> 05:35.610
OK.

95
05:35.660 --> 05:40.820
So in this way you can copy and paste in the Linux text you later.

96
05:40.870 --> 05:41.560
OK.

97
05:41.850 --> 05:43.990
I suppose you want to delete the line.

98
05:44.200 --> 05:46.410
OK let's get this whole line.

99
05:46.520 --> 05:51.110
So to do this line you just need to press Deedy OK.

100
05:51.230 --> 05:55.320
And when you press you on your keyboard the whole line get deleted.

101
05:55.350 --> 05:59.180
And suppose you want to dilute a particular line.

102
05:59.390 --> 06:05.660
So and this time just press control and select the text that you want to be.

103
06:05.750 --> 06:14.060
I just want to deliver this line only and then press the in this way you can delete the Select line.

104
06:14.210 --> 06:22.340
And if you want to undo the changes press you get in this way you can undo the changes by pressing you

105
06:22.720 --> 06:26.120
and delete the line by pressing the D.

106
06:26.450 --> 06:27.270
OK.

107
06:27.530 --> 06:38.250
If you want to cut and paste the line then for that you first need to select line press D and after

108
06:38.270 --> 06:45.250
that here at the bottom I would like to post it here.

109
06:45.440 --> 06:52.780
Presby you get in this way you can go first by pressing D and then B.

110
06:53.090 --> 06:53.600
OK.

111
06:53.810 --> 06:57.790
And double-D is used to delete a particular line.

112
06:57.920 --> 06:58.570
OK.

113
06:59.330 --> 07:02.170
And you can use X to delete a line.

114
07:02.300 --> 07:02.940
OK.

115
07:03.050 --> 07:12.190
In the text file like this if you press X you can use tags to delete a particular line and to reword

116
07:12.200 --> 07:13.010
the changes.

117
07:13.010 --> 07:20.470
Press you again you can use X like this to delete the file contents one by one.

118
07:21.600 --> 07:25.400
And the attendees press you

119
07:28.330 --> 07:28.780
get.

120
07:29.210 --> 07:31.060
So I'm going to get the final.

121
07:31.070 --> 07:40.700
Now we'll get to sell the tennis press w and then Q And then the symbol and hit enter.

122
07:40.730 --> 07:46.690
So let's see the contents in some dot XTi.

123
07:47.090 --> 07:48.920
OK here you can see.

124
07:48.950 --> 07:51.870
It seems the changes that re-emitted are fine.

125
07:52.120 --> 07:52.740
OK.

126
07:52.910 --> 07:57.190
So let's open the file here again with why all of them.

127
07:57.240 --> 07:58.600
OK let's open it with.

128
07:58.700 --> 08:02.580
When you say really not yes.

129
08:02.660 --> 08:03.350
OK.

130
08:03.620 --> 08:09.640
And in this final press conference call colon forward slash.

131
08:09.720 --> 08:14.100
OK this is used to search a particular text inside the file.

132
08:14.450 --> 08:19.810
So I want you so I understand let's hit enter.

133
08:20.300 --> 08:26.120
OK now here you can see it shows you the line where your text is present.

134
08:26.410 --> 08:27.140
OK.

135
08:27.320 --> 08:29.800
Let's get the file here.

136
08:30.490 --> 08:39.290
OK let's start the why didn't know how to use an existing file for rainy day here so far that just Breske

137
08:39.290 --> 08:43.310
conclusive colon and here are.

138
08:43.340 --> 08:47.030
And then insert the filename with the full part.

139
08:47.200 --> 08:47.770
OK.

140
08:48.020 --> 08:51.620
So here are Phylis present in the current directory.

141
08:51.770 --> 08:54.090
And we are inside the current directory.

142
08:54.290 --> 08:54.900
OK.

143
08:54.950 --> 08:59.360
So that's why I want to play word here to file them directly.

144
08:59.390 --> 09:01.450
That is example.

145
09:01.450 --> 09:02.970
Got 60.

146
09:03.080 --> 09:07.350
And here you can see in this way you can open the file again.

147
09:07.580 --> 09:15.380
Inside this white or women that are OK I'm going to copy and pasting these lines.

148
09:15.410 --> 09:16.010
OK.

149
09:16.330 --> 09:16.870
OK.

150
09:16.880 --> 09:20.520
You can set the numbers to your contents.

151
09:20.530 --> 09:21.970
OK inside the file.

152
09:22.250 --> 09:22.520
OK.

153
09:22.520 --> 09:31.330
So how to set the numbers just going to shift and type here set and you and hit enter.

154
09:31.540 --> 09:32.000
OK.

155
09:32.240 --> 09:32.810
Like this.

156
09:32.810 --> 09:40.820
You can set the numbers OK it will be really helpful to you to know how long you are called again or

157
09:40.890 --> 09:45.860
at exactly in which line number you are getting an error problem.

158
09:46.040 --> 09:52.910
This will be very helpful in case you are doing programming or scripting like stuff inside the Linux

159
09:52.910 --> 09:54.160
operating system.

160
09:54.500 --> 09:54.850
OK.

161
09:54.860 --> 10:02.440
In this way you can use the why or the editor inside the Ubuntu server or any Linux operating system.