1 00:00:01,170 --> 00:00:01,740 Hello, everyone. 2 00:00:02,460 --> 00:00:06,360 In this demo, I'm going to show you how to use VR into two. 3 00:00:07,960 --> 00:00:12,820 The V.A., Ed, is the most popular text editor and the Linux distributions. 4 00:00:14,120 --> 00:00:19,070 The eye considers the number one choice for the most Lennix sysadmins. 5 00:00:20,700 --> 00:00:26,100 There is an advanced vision of the V.I. into two, and it's called them the I am. 6 00:00:27,230 --> 00:00:30,100 And it's the short for the V.I. improved. 7 00:00:31,710 --> 00:00:37,680 The FBI or vem, is a user friendly and it's available in most Linux distributions. 8 00:00:38,370 --> 00:00:41,700 And it works the same among Linux distributions. 9 00:00:43,010 --> 00:00:50,360 Just in case, if we don't have the V.I. improved or DVM vision on my system, I can start it by running 10 00:00:50,360 --> 00:00:51,200 this command. 11 00:00:52,190 --> 00:00:53,980 Yum installed in the. 12 00:00:58,150 --> 00:01:03,750 If I would like to open up a file in them or VA, I just have to comment them, for example, and find 13 00:01:03,750 --> 00:01:05,940 one that Deakes T page into. 14 00:01:06,970 --> 00:01:11,390 As you can see, this is the vem environment or editor. 15 00:01:12,340 --> 00:01:18,910 Now, if I would like to type any word, it will not do anything because the V.I. editor or developer 16 00:01:19,330 --> 00:01:21,120 has two different war. 17 00:01:21,250 --> 00:01:21,940 Kim Motts. 18 00:01:23,020 --> 00:01:30,580 It has the command mode and insert what will face say, open the V.I. it to it obeys the command. 19 00:01:30,740 --> 00:01:32,270 This is the command more direct now. 20 00:01:32,950 --> 00:01:39,780 So in a command mind, they can only do just morphin do CUROSURF school down between beiges. 21 00:01:39,790 --> 00:01:41,860 I can delete characters, wars, lines. 22 00:01:41,890 --> 00:01:45,010 I can Korby cutting and pasting. 23 00:01:45,530 --> 00:01:46,770 Sesshin replacing. 24 00:01:48,090 --> 00:01:53,940 And surfing, I can save also my changes after I do any change. 25 00:01:53,970 --> 00:01:56,280 And this takes five. 26 00:01:57,980 --> 00:01:59,090 The insert mode. 27 00:01:59,410 --> 00:02:00,610 This is the second type. 28 00:02:01,890 --> 00:02:05,220 We only can insert ticks into the five. 29 00:02:06,320 --> 00:02:11,780 When I would like to switch between the Moors, for example, from right now, I would like to switch 30 00:02:11,780 --> 00:02:15,290 from the command mode to the in search mode. 31 00:02:15,470 --> 00:02:17,900 I hate the lowercase. 32 00:02:17,990 --> 00:02:25,100 I as you can see over here, it's insert because a press the key. 33 00:02:25,230 --> 00:02:30,940 I saw the lowercase I in order to add an insert text, for example. 34 00:02:30,980 --> 00:02:42,680 I'm going to add he of them is the the I am proofed 35 00:02:44,860 --> 00:02:45,620 version. 36 00:02:48,500 --> 00:02:56,450 If I would like to for example, add another here since the world come to read. 37 00:02:58,000 --> 00:03:00,520 Pat and sent to O. 38 00:03:00,710 --> 00:03:01,310 S. 39 00:03:02,750 --> 00:03:04,910 Now, if I would like to switch back. 40 00:03:07,190 --> 00:03:08,550 From the insurers to Mort. 41 00:03:10,110 --> 00:03:10,590 To the. 42 00:03:11,750 --> 00:03:12,480 Commandment. 43 00:03:13,570 --> 00:03:16,690 So I can't tie what the escape key. 44 00:03:17,560 --> 00:03:19,510 If I type the escape just in order to sit down. 45 00:03:20,350 --> 00:03:24,450 So right now I switch back from the insert more to the commandment. 46 00:03:28,140 --> 00:03:35,250 Now, let's explain some of the comments that we can use and divin editor Heute. 47 00:03:36,400 --> 00:03:43,500 I just started to explain that if I would like to switch to the insert mod, I just type lower case. 48 00:03:43,630 --> 00:03:46,660 I just I mean, I can't sustain it. 49 00:03:46,660 --> 00:03:47,290 X file. 50 00:03:47,290 --> 00:03:47,650 Huge. 51 00:03:49,660 --> 00:03:50,920 Maybe you can say hello. 52 00:03:52,770 --> 00:03:53,250 Ward. 53 00:03:53,890 --> 00:03:57,190 And welcome to. 54 00:03:58,630 --> 00:04:01,160 Then Ed. 55 00:04:03,740 --> 00:04:07,850 I hit Skip in order to switch back to the command mode. 56 00:04:07,880 --> 00:04:08,180 Now. 57 00:04:09,390 --> 00:04:10,750 I can move the cursor. 58 00:04:11,850 --> 00:04:14,640 Now, if I would like to insert after the cursor. 59 00:04:15,720 --> 00:04:16,490 So let's move the court. 60 00:04:18,019 --> 00:04:20,709 And I would like to unsearched after I can't type. 61 00:04:21,620 --> 00:04:22,450 Lowercase a.. 62 00:04:23,590 --> 00:04:25,560 Then I can search anything here. 63 00:04:26,350 --> 00:04:29,680 Them and the I, for example. 64 00:04:33,380 --> 00:04:35,890 I skip to go back to the command. 65 00:04:36,940 --> 00:04:37,250 Mode. 66 00:04:38,260 --> 00:04:41,450 Now, if I would like to insert at the end of the line. 67 00:04:42,080 --> 00:04:42,620 So let's go. 68 00:04:42,650 --> 00:04:45,080 I'm going to hit the other case. 69 00:04:45,920 --> 00:04:48,500 So I marchesi as you can see over here. 70 00:04:49,130 --> 00:04:50,960 So the cursor moves to the end. 71 00:04:51,470 --> 00:04:52,460 Right now we. 72 00:04:53,770 --> 00:04:56,080 Changed from the command more to the incessant. 73 00:04:57,480 --> 00:05:02,340 If I would like, I'm going to hit the escape key in order to go back to the common mode. 74 00:05:02,910 --> 00:05:09,240 Now, if I would like to insert a new line, so I'm going to type or hit the lower case. 75 00:05:10,230 --> 00:05:13,740 As you can see right now, we insert a new line. 76 00:05:14,850 --> 00:05:17,450 We're going to head skip bottom. 77 00:05:19,190 --> 00:05:20,910 And to go back to the comment. 78 00:05:22,240 --> 00:05:22,660 But. 79 00:05:23,650 --> 00:05:28,180 Now, if I would like to move the cursor to the end of the line, I'm going to hear. 80 00:05:28,780 --> 00:05:30,730 Now I'm going to move to the end of the line. 81 00:05:31,780 --> 00:05:33,780 I'm going to type the dollar sign. 82 00:05:35,750 --> 00:05:37,330 Now, if I would like to move. 83 00:05:38,710 --> 00:05:41,380 The cursor to the beginning, to the beginning of the line. 84 00:05:41,860 --> 00:05:42,820 So there is a. 85 00:05:44,230 --> 00:05:44,950 Disco, ma'am. 86 00:05:45,080 --> 00:05:47,020 Let me show you here. 87 00:05:47,500 --> 00:05:48,670 This one, the curves. 88 00:05:48,820 --> 00:05:49,270 This one. 89 00:05:49,720 --> 00:05:50,740 So we just type it. 90 00:05:50,860 --> 00:05:53,950 I'm going to go back right now to the command. 91 00:05:54,490 --> 00:05:56,240 More just I'm going to type. 92 00:05:57,190 --> 00:05:59,750 So it's move me to the beginning of the light right now. 93 00:06:02,830 --> 00:06:07,180 If I would like to jump to the end of the fire, so I'm going to type up our case. 94 00:06:08,590 --> 00:06:10,690 So, as you can see, we jumped to the. 95 00:06:11,890 --> 00:06:13,060 And of the five. 96 00:06:13,510 --> 00:06:16,030 No, if I would like to jump to the beginning of the five. 97 00:06:16,050 --> 00:06:17,290 So is going to type. 98 00:06:18,730 --> 00:06:19,630 Lower case G. 99 00:06:19,840 --> 00:06:22,010 So G does double GS biji. 100 00:06:22,600 --> 00:06:25,380 So I move the cursor to the beginning of the fire. 101 00:06:27,070 --> 00:06:31,960 If I would like to delete or cut a character out, the cursed position. 102 00:06:32,260 --> 00:06:36,090 So I'm going to type X so we can see here. 103 00:06:36,790 --> 00:06:39,100 But now I deleted or. 104 00:06:40,120 --> 00:06:40,990 The character there. 105 00:06:41,530 --> 00:06:44,680 Now, if I would like to delete the current ward. 106 00:06:46,300 --> 00:06:49,120 I'm going to type the D. 107 00:06:49,420 --> 00:06:49,900 W. 108 00:06:51,870 --> 00:06:53,820 If I would like to delete. 109 00:06:55,520 --> 00:06:57,950 Three wars starting from the cursor. 110 00:06:59,390 --> 00:06:59,880 Position. 111 00:06:59,960 --> 00:07:03,130 So I'm going to type three D. 112 00:07:03,200 --> 00:07:03,680 W. 113 00:07:04,760 --> 00:07:05,570 Would you do it again? 114 00:07:05,670 --> 00:07:06,990 Or three d w. 115 00:07:07,440 --> 00:07:12,750 So as we can see here, we have deleted three words. 116 00:07:14,280 --> 00:07:16,440 Starting at curse acquisition. 117 00:07:17,400 --> 00:07:24,920 Now, if I would like to delete the entire line, so I'm going to type Didi's or lowercase D d, d, 118 00:07:24,990 --> 00:07:25,220 d. 119 00:07:27,510 --> 00:07:33,690 If I would like to delete three lines starting from the cursor, I'm going to type three D d. 120 00:07:34,320 --> 00:07:36,620 So I just deleted three lines right now. 121 00:07:38,130 --> 00:07:44,990 If I would like to, could be the word at the cursor, so I'm going to type Y w. 122 00:07:46,860 --> 00:07:54,270 Now, if I would like to Kobe three words starting the cursors, so the cursor position, I'm going 123 00:07:54,270 --> 00:07:56,190 to type three. 124 00:07:56,610 --> 00:07:58,170 Then why W three? 125 00:07:58,170 --> 00:07:58,830 Why W. 126 00:08:00,870 --> 00:08:05,030 If I would like to Kobe three lines starting at the cursor position. 127 00:08:05,370 --> 00:08:10,080 So I'm going to type three then lowercase y y y y. 128 00:08:11,360 --> 00:08:14,570 Now, if I would like to undo the last change. 129 00:08:15,930 --> 00:08:19,740 So I'm going to type the lower case, you, as you can see here. 130 00:08:21,240 --> 00:08:22,380 If I would like to. 131 00:08:23,910 --> 00:08:27,590 Based at the current cursors, I'm going to move the cursor here. 132 00:08:27,860 --> 00:08:30,530 I'm going to type the lowercase P. 133 00:08:31,970 --> 00:08:33,650 So as we can see here, we have. 134 00:08:35,669 --> 00:08:36,169 Bastet. 135 00:08:37,490 --> 00:08:38,659 After the cursor. 136 00:08:39,890 --> 00:08:40,280 Recission. 137 00:08:41,650 --> 00:08:49,420 Now, if I would like to sit lie numbers and the ticks, I'm going to type calling, then I'm going 138 00:08:49,420 --> 00:08:50,530 to type UCSC here. 139 00:08:51,940 --> 00:08:55,630 So after I hit court and I'm going to tap court and then sit. 140 00:08:56,140 --> 00:08:58,170 No, I hit enter. 141 00:08:58,210 --> 00:09:04,030 As we can see here right now, we have short line numbers in the text file. 142 00:09:05,230 --> 00:09:12,020 Now, if I would like to move the cursor to a specific number, so I'm going to try calling in. 143 00:09:12,070 --> 00:09:15,400 I would like to move to line seven, for example, hit enter. 144 00:09:15,550 --> 00:09:19,600 As you can see here, we have moved the cursor to line seven. 145 00:09:20,710 --> 00:09:22,720 If I would like to search for a word. 146 00:09:22,720 --> 00:09:28,420 So I'm going to type and the forward slash like that. 147 00:09:30,150 --> 00:09:36,250 The forward slash then I would like to see, for example, for the war red. 148 00:09:37,970 --> 00:09:44,550 His genter, as you can see here, atnah it this is the ward that we have specialist. 149 00:09:45,680 --> 00:09:50,180 Now, if I would like to replace the phrase matching word in the line. 150 00:09:51,380 --> 00:09:52,010 For example. 151 00:09:52,060 --> 00:09:52,220 OK. 152 00:09:52,350 --> 00:09:53,630 Let's do an example here. 153 00:09:54,830 --> 00:10:04,300 Before that, I would like to add he maybe at the beginning of the fight here, I'm going to turn soon 154 00:10:04,330 --> 00:10:04,760 to. 155 00:10:06,170 --> 00:10:08,200 Not a mobile phone, just which I read. 156 00:10:08,360 --> 00:10:11,690 Yeah, like that. 157 00:10:12,980 --> 00:10:14,680 And the same thing here. 158 00:10:15,450 --> 00:10:15,990 Read. 159 00:10:18,620 --> 00:10:21,010 And also to do it here, right? 160 00:10:22,000 --> 00:10:24,660 And I going to switch back right now to deployment mode. 161 00:10:25,320 --> 00:10:30,080 Now, I would like to replace the phrase matching word in the line to the war. 162 00:10:30,090 --> 00:10:32,900 So I'm going to type call and dende. 163 00:10:34,620 --> 00:10:39,500 Percentage s then slash red. 164 00:10:39,810 --> 00:10:44,560 So I'm going to search for this award and I'm going to change it to our cast red. 165 00:10:45,680 --> 00:10:49,440 Although I hate to enter, we would notice that it will just change. 166 00:10:51,030 --> 00:10:52,080 Defeatist Ford. 167 00:10:53,840 --> 00:10:56,060 That is Matt chink in the line. 168 00:10:56,090 --> 00:10:57,750 So he's going to ignore the second one. 169 00:11:00,360 --> 00:11:04,970 As you can see over here now, if I would like to replace all Dennison's. 170 00:11:06,710 --> 00:11:13,580 We'd like to replace everything, so I'm going to tell you in order to undo the last change. 171 00:11:14,060 --> 00:11:15,770 Now I would like to replace everything. 172 00:11:15,800 --> 00:11:20,050 So I'm going to type calling, then percentage. 173 00:11:21,240 --> 00:11:23,600 S then slash. 174 00:11:24,440 --> 00:11:26,480 Red slash. 175 00:11:26,510 --> 00:11:30,830 Then I'm going to replace it to Red Hat. 176 00:11:30,860 --> 00:11:33,040 Like that I had. 177 00:11:33,110 --> 00:11:35,180 Then after that slash. 178 00:11:35,450 --> 00:11:42,450 G G is like the short for global for everything I hit enter now as you can see right now. 179 00:11:42,590 --> 00:11:46,880 We have changed the world from red to red hot. 180 00:11:48,110 --> 00:11:49,370 As you can see here on the screen. 181 00:11:51,800 --> 00:12:00,380 Right now, I would like to save the file after I change writing and modifying my tax file, so I'm 182 00:12:00,380 --> 00:12:02,390 going to type coal in. 183 00:12:03,470 --> 00:12:04,280 W. 184 00:12:05,260 --> 00:12:06,490 Or there is another one. 185 00:12:06,920 --> 00:12:12,050 Call an X, and even if I would like to use after Dad. 186 00:12:14,000 --> 00:12:21,850 The extension mark, it means that save and force the safe so we can use both either X or W's so it 187 00:12:21,850 --> 00:12:25,120 can hit enter and I'm going to open default again. 188 00:12:25,270 --> 00:12:30,430 As you can see here, we already have saved the file and we opened it again. 189 00:12:31,760 --> 00:12:35,570 Now, if I would like to quit, let me do a change here. 190 00:12:36,230 --> 00:12:39,630 So I'm going to switch from command more to the insource mode. 191 00:12:40,250 --> 00:12:41,990 I'm going to type here. 192 00:12:42,830 --> 00:12:45,140 Hello, Ward. 193 00:12:45,710 --> 00:12:50,180 Welcome to Real eight. 194 00:12:51,920 --> 00:12:52,250 OK. 195 00:12:52,310 --> 00:12:56,810 Now I want to head skip button in order to go back to the command mode. 196 00:12:57,650 --> 00:13:00,900 Now, I would like to quit without saving. 197 00:13:01,490 --> 00:13:05,000 So I'm going to try calling then. 198 00:13:05,000 --> 00:13:08,390 Keel is not going to save the last line. 199 00:13:08,840 --> 00:13:09,220 Enter. 200 00:13:09,910 --> 00:13:13,360 So you said no writing since the last change over sent it out. 201 00:13:13,790 --> 00:13:16,040 Sometimes you need to do the force. 202 00:13:16,100 --> 00:13:19,370 Like that it is going to give you a message. 203 00:13:19,850 --> 00:13:20,930 So hit enter. 204 00:13:21,140 --> 00:13:26,900 We have quitted the V.I. editor, so I'm going back again as we can see over here. 205 00:13:27,560 --> 00:13:30,920 We didn't save the last line that we have wrote over there. 206 00:13:32,930 --> 00:13:36,140 Now, if I would like to save, then quit. 207 00:13:36,560 --> 00:13:38,660 So I'm going to type the comment call. 208 00:13:40,170 --> 00:13:40,830 W. 209 00:13:40,920 --> 00:13:43,760 Q So he's going to save Kuwait. 210 00:13:43,840 --> 00:13:49,240 And I also can use that explanation, Mark, in order to force it. 211 00:13:50,190 --> 00:13:56,030 Enter and we have saved an exit or quit them. 212 00:13:56,890 --> 00:13:57,280 Edit. 213 00:14:00,590 --> 00:14:01,910 That concludes our session. 214 00:14:02,030 --> 00:14:02,450 Thank you. 215 00:14:02,480 --> 00:14:03,650 And see you in the next, miss.