1 00:00:00,390 --> 00:00:03,170 All right, now it's time to talk about the now. 2 00:00:03,240 --> 00:00:09,570 Actually, we have three utilities now or three programs that the or women or view. 3 00:00:09,840 --> 00:00:16,360 So actually the V.I. is the same as women, but the women is improved and more it has more features. 4 00:00:16,430 --> 00:00:22,530 OK, the view, it will open and it takes only a as a read only. 5 00:00:22,560 --> 00:00:24,660 OK, so you have secret for example. 6 00:00:24,870 --> 00:00:25,260 So yeah. 7 00:00:25,260 --> 00:00:26,820 And it's just on the text. 8 00:00:27,030 --> 00:00:29,400 So we provided the text. 9 00:00:29,610 --> 00:00:37,320 You can see that we open the text using the file, but if I type them to the text, you will not see 10 00:00:37,320 --> 00:00:43,680 the difference here Algeri because either actually maybe they are a reference to each other. 11 00:00:43,680 --> 00:00:47,130 So the V or the VI is the same as the Vim. 12 00:00:47,370 --> 00:00:50,300 Actually they are linked together I guess. 13 00:00:50,460 --> 00:00:55,980 Well, anyway, we have the view, which is the text. 14 00:00:56,460 --> 00:00:57,810 You can see that here. 15 00:00:57,810 --> 00:01:06,080 You can see it is read only if you are opening a configuration file, very crucial file in the system. 16 00:01:06,090 --> 00:01:08,940 You don't need to do any mistake, any stupid mistake. 17 00:01:08,940 --> 00:01:17,970 So you can just using the view to the text, by the way, opening the file, using them on file, whatever. 18 00:01:18,240 --> 00:01:19,950 From now on we will start using them. 19 00:01:19,980 --> 00:01:24,000 OK, so you can see that opening any fight, it is not readable as well. 20 00:01:24,000 --> 00:01:25,410 As you can see, I can't put anything. 21 00:01:25,410 --> 00:01:30,510 Yeah, but because I press the insert button or insert mode by mistake. 22 00:01:30,750 --> 00:01:34,130 But you can see by default I can't put anything. 23 00:01:34,380 --> 00:01:36,900 I can do anything right anyway. 24 00:01:37,500 --> 00:01:39,810 Now let's start with the vim shortcuts. 25 00:01:39,910 --> 00:01:40,260 Right. 26 00:01:40,570 --> 00:01:43,670 But for now, actually, I want to open a large file. 27 00:01:43,680 --> 00:01:45,720 So let's open one of the avado. 28 00:01:47,770 --> 00:01:54,340 But whatever, OK, whatever, you can see that, yeah, now it is highlighted, by the way, if I open 29 00:01:54,340 --> 00:01:58,120 that using five, I think it will not be highlighted, I guess. 30 00:01:58,650 --> 00:02:04,040 See, no, it is highlighted, as I told you, the film and why they are linked together. 31 00:02:04,160 --> 00:02:06,550 Actually, they are referring to the same problem. 32 00:02:06,760 --> 00:02:07,260 All right. 33 00:02:07,270 --> 00:02:16,900 Anyway, now I am here, as you can see, I can use the lift right up button down arrow and you can 34 00:02:16,900 --> 00:02:19,110 see it will work as expected. 35 00:02:19,960 --> 00:02:23,590 As you can see the cursor, I can choose it or move it, whatever I want. 36 00:02:23,830 --> 00:02:29,290 Now, if I want to go to the first line, I will use the hat, which is the shift six. 37 00:02:29,770 --> 00:02:34,600 You can see that I am the first of the line of the current cursor position. 38 00:02:34,600 --> 00:02:40,240 So you can see that the cursor is here, shift six, which is the head, and you can see that it will 39 00:02:40,240 --> 00:02:43,540 give me and it will move the cursor to the first of the line. 40 00:02:43,930 --> 00:02:49,420 Now, to go to the line, to go to the end of the line shift for which is the other side. 41 00:02:49,720 --> 00:02:51,850 So you can see that now I am at the end. 42 00:02:52,030 --> 00:02:55,690 OK, so now shift it will go to the first line. 43 00:02:56,950 --> 00:03:00,940 And shift four, which is the last time it will go to the end of the day. 44 00:03:01,120 --> 00:03:01,490 All right. 45 00:03:01,690 --> 00:03:01,970 All right. 46 00:03:02,050 --> 00:03:06,150 Now it's time to modify and start with the inserting. 47 00:03:06,460 --> 00:03:08,170 Now we have the iceman. 48 00:03:08,200 --> 00:03:10,960 I committed a small achint and. 49 00:03:10,960 --> 00:03:11,740 Oh, OK. 50 00:03:12,040 --> 00:03:16,150 Now, actually, these are the most important ones I put in the theory. 51 00:03:16,360 --> 00:03:23,600 So actually, if you read that theory, but you can see that I put a lot of options and shortcuts there. 52 00:03:24,040 --> 00:03:25,570 These are the most important ones. 53 00:03:25,570 --> 00:03:27,470 But this is not just them. 54 00:03:27,470 --> 00:03:31,590 They actually do a lot of things like replacement, a lot of things, actually. 55 00:03:31,630 --> 00:03:33,280 But these are the most important one. 56 00:03:33,490 --> 00:03:35,530 You can read more about them, by the way. 57 00:03:36,280 --> 00:03:43,390 So here, if I want to insert a line at the current quarter, you can see I will use the I Eisenman 58 00:03:43,760 --> 00:03:44,530 Eiseman. 59 00:03:44,980 --> 00:03:47,560 You can see that I am opening the file. 60 00:03:47,560 --> 00:03:52,330 But by the way, you can see where you are changing find in red only mode. 61 00:03:52,360 --> 00:03:59,700 OK, so because this is I think it is for that, not only can I turn that, but this is look for this 62 00:03:59,710 --> 00:04:02,440 system here by default, that's for sure. 63 00:04:02,800 --> 00:04:09,490 But anyway, let's continue and we will test the writing saving quit without I on a different flight. 64 00:04:09,570 --> 00:04:16,420 OK, but for now, eisemann it will open the insert mode, which is typing anything I want, but this 65 00:04:16,420 --> 00:04:23,170 time at the current course, as you can see by I exit from here, apparently I am on the letter. 66 00:04:23,290 --> 00:04:31,180 If I press enter or I mean it will open here as you can see, insert hand on the same cursor. 67 00:04:31,240 --> 00:04:35,740 OK, if I press, exit or skip it will escape from the insert mode. 68 00:04:36,130 --> 00:04:42,640 Now the same thing with that I can detect which is shift type shift I it will create or insert mode, 69 00:04:42,640 --> 00:04:45,790 but this time at the beginning of the current line. 70 00:04:45,910 --> 00:04:53,320 So the cursor is, is here, it was here, it will insert or open, open the insert mode on the same 71 00:04:53,320 --> 00:04:55,960 or on the beginning of the line as you can see. 72 00:04:56,770 --> 00:04:59,050 But skip again, skip button. 73 00:05:00,020 --> 00:05:09,370 You know we have the append I means insert either insert at the current cursor or insert at the beginning 74 00:05:09,370 --> 00:05:10,840 of line here. 75 00:05:11,380 --> 00:05:18,460 It will have been a bit after the current cursor as you can see, which is the if I press again correctly 76 00:05:18,460 --> 00:05:25,220 and if I press it, it will appoint and after that the letter, which is where I am. 77 00:05:25,560 --> 00:05:30,640 OK, but if I press shift it OK, it will give me a computer. 78 00:05:30,640 --> 00:05:32,930 It will append after the line. 79 00:05:32,980 --> 00:05:33,410 OK. 80 00:05:33,820 --> 00:05:35,860 Actually it is simple right. 81 00:05:36,190 --> 00:05:44,350 I insert at the current quarter or shift I which is at the beginning of line A to append the current 82 00:05:44,350 --> 00:05:52,720 cursor or shift it to the to append after the end of line or on the other hand it will, it will create 83 00:05:52,720 --> 00:05:57,420 an empty line for you as you can see the line and you can put whatever you want here. 84 00:05:57,430 --> 00:06:00,400 OK, so empty line after the current cursor. 85 00:06:00,970 --> 00:06:05,450 So if I am here, for example, if I hope it will create a new empty line as well. 86 00:06:05,490 --> 00:06:05,950 All right. 87 00:06:06,250 --> 00:06:09,370 Now to see if that actually we will use that shift. 88 00:06:10,380 --> 00:06:18,100 Here, which is shift with which is the current I mean, Calon with Cucu to quit without saving DeBlois 89 00:06:18,120 --> 00:06:22,400 to write or save OK are WQ, which is save and quit. 90 00:06:22,470 --> 00:06:28,490 OK, now X by the way, it will work as WQ as well. 91 00:06:28,680 --> 00:06:31,950 OK, now if I want to quit for example like this. 92 00:06:31,950 --> 00:06:32,820 But you can see that. 93 00:06:32,820 --> 00:06:38,240 No you can't because you already modified the date or already modified the fight. 94 00:06:38,240 --> 00:06:42,060 So shift or the on. 95 00:06:42,510 --> 00:06:44,690 Q by the way, you can see that I am writing here. 96 00:06:45,000 --> 00:06:46,040 Did you see that. 97 00:06:46,380 --> 00:06:46,740 Yeah. 98 00:06:47,220 --> 00:06:47,930 Which is Kuhnen. 99 00:06:48,000 --> 00:06:51,180 Q And now shift one which is declamation. 100 00:06:51,190 --> 00:06:54,030 Mark So you can see that now let's quit without saving. 101 00:06:54,030 --> 00:06:59,000 OK, the same thing for quit and with Q the same thing for. 102 00:06:59,010 --> 00:06:59,760 Right ok. 103 00:06:59,760 --> 00:07:05,680 But it will not work because if I type here you can see that you know you can't open the fight for writing 104 00:07:05,680 --> 00:07:09,830 because this needs about permission but so let's quit. 105 00:07:09,840 --> 00:07:11,750 But without saving or write like this. 106 00:07:12,420 --> 00:07:12,830 Yeah. 107 00:07:13,020 --> 00:07:14,430 Work hand in person. 108 00:07:14,760 --> 00:07:15,830 Now let's open it again. 109 00:07:16,230 --> 00:07:22,150 Now you can see that I am currently on the line 17, 16, 14, 10, whatever. 110 00:07:22,170 --> 00:07:24,950 OK, what if I want to go to a line 100? 111 00:07:25,230 --> 00:07:28,350 So you type this and you got 100. 112 00:07:28,360 --> 00:07:34,680 OK, so you can see now currently I am on the one hundred or on the line number one hundred if I go 113 00:07:34,680 --> 00:07:34,960 here. 114 00:07:34,980 --> 00:07:35,910 One hundred twenty. 115 00:07:36,540 --> 00:07:36,810 Yeah. 116 00:07:36,810 --> 00:07:39,030 You can see currently I am on one hundred twenty. 117 00:07:39,030 --> 00:07:46,830 OK, now what if I want to go to the end of the line or in the end of the file I will use shift and 118 00:07:46,830 --> 00:07:50,010 with the shift I will use the current. 119 00:07:50,010 --> 00:07:55,350 I mean I as you can see here, and shift four, which is that there are so this will go to the end of 120 00:07:55,350 --> 00:07:55,890 the file. 121 00:07:56,130 --> 00:08:01,280 As you can see now, this is the same thing if I want to use GGGI. 122 00:08:03,030 --> 00:08:08,310 It will go through the first flight Shivji, it will go to the end of nine, OK, so it's up to you 123 00:08:08,310 --> 00:08:09,000 what you prefer. 124 00:08:09,280 --> 00:08:12,030 GGGI First the flight Shivji. 125 00:08:12,270 --> 00:08:13,880 It will go to the end of flight. 126 00:08:14,350 --> 00:08:18,090 OK, or in the flight did you the first of five Shivji. 127 00:08:18,090 --> 00:08:19,780 It will be the end of fine. 128 00:08:19,880 --> 00:08:28,110 OK, now if I want to enable the numbering here you can put this on sit and you which is number. 129 00:08:28,530 --> 00:08:29,790 You can see that currently. 130 00:08:29,790 --> 00:08:31,650 I am have, I have a numbers here. 131 00:08:31,680 --> 00:08:33,910 Oh so nice now set. 132 00:08:34,110 --> 00:08:42,150 So if I said no no this time or no new which is it will give me no number so said no it will give me 133 00:08:42,150 --> 00:08:43,260 no set. 134 00:08:43,920 --> 00:08:46,770 No, no it will remove the number. 135 00:08:46,980 --> 00:08:48,620 OK, now it's time for the copying. 136 00:08:48,630 --> 00:08:49,980 So if I can now. 137 00:08:50,280 --> 00:08:50,640 Yeah. 138 00:08:50,910 --> 00:08:56,950 Now I want to copy for example this line in the sand or some of this, what you will use will use v 139 00:08:56,950 --> 00:08:59,220 v which means visual copying. 140 00:08:59,220 --> 00:09:03,150 So you can see now after that you do that, you start moving the arrow. 141 00:09:03,480 --> 00:09:04,170 Whatever you want. 142 00:09:04,170 --> 00:09:04,940 I want for that. 143 00:09:05,130 --> 00:09:09,260 Now I have copy paste or the cut based. 144 00:09:09,270 --> 00:09:12,030 OK, so for the copy we would use y yeah. 145 00:09:12,030 --> 00:09:13,230 You can see why it works. 146 00:09:13,230 --> 00:09:17,220 One hundred percent, five lines yanked y stands for Yech. 147 00:09:17,520 --> 00:09:20,430 So what it is I don't know actually. 148 00:09:20,430 --> 00:09:25,770 But anyway so now briss p p which means based you can see that. 149 00:09:25,770 --> 00:09:29,820 Yeah it's based correctly but you can see that because I am currently. 150 00:09:30,240 --> 00:09:37,730 So let's go to the end of line actually in the file and this open this and this recipe again. 151 00:09:37,890 --> 00:09:38,780 You can see now. 152 00:09:38,790 --> 00:09:39,000 Yeah. 153 00:09:39,000 --> 00:09:40,930 It has been based completely. 154 00:09:41,610 --> 00:09:47,560 Now again if I press V and do whatever I want, I can use D this time which is cut so you can see it. 155 00:09:47,700 --> 00:09:51,650 It has been cut and if I was P it will based again. 156 00:09:51,750 --> 00:09:52,920 So copy and paste. 157 00:09:53,370 --> 00:09:54,180 Cut and paste. 158 00:09:54,330 --> 00:09:59,760 Now what if I want, I don't need to use the visual, I want to copy a complete line and paste it. 159 00:09:59,970 --> 00:10:00,870 Use y y. 160 00:10:02,030 --> 00:10:08,510 You can see that now it has been let's use on this one, actually quite one and the spaces here, you 161 00:10:08,510 --> 00:10:09,530 can see if this worked. 162 00:10:09,530 --> 00:10:11,460 Yeah, it worked 100 percent. 163 00:10:11,870 --> 00:10:17,450 Now, what if I want to undo the change I'd done by using the your comment or your button? 164 00:10:17,480 --> 00:10:21,620 I mean, you you keep pressing you until you reach what you want. 165 00:10:21,740 --> 00:10:23,930 Now, finally, what if I want to search this fight? 166 00:10:23,930 --> 00:10:26,060 I would use the slash, as you can see. 167 00:10:26,240 --> 00:10:31,940 And what the value what for example, I want disembarkment, but you can see that it must be in this 168 00:10:31,940 --> 00:10:33,680 case, sensitive, actually pressed. 169 00:10:34,160 --> 00:10:38,790 Now you can see that Carinthia it what it is aiming on the first one. 170 00:10:38,810 --> 00:10:43,250 So if I keep pressing, then it will be next, next, next, next, next shift. 171 00:10:43,250 --> 00:10:44,120 And which is that. 172 00:10:44,390 --> 00:10:48,140 And then it will previous previous, previous previous answer. 173 00:10:48,200 --> 00:10:55,700 OK, now what if I want to for example, if I press enter or a lot of time now actually is not about 174 00:10:55,700 --> 00:10:59,350 this only, but these are the most important ones actually. 175 00:10:59,480 --> 00:11:04,220 And these you will use them in your daily life, but it has the replacement. 176 00:11:04,230 --> 00:11:07,220 It has to run a command to run something. 177 00:11:07,230 --> 00:11:09,020 OK, it does a lot of features actually. 178 00:11:09,020 --> 00:11:10,550 You can read more about it. 179 00:11:10,880 --> 00:11:16,580 But for now, I'll give you the most important ones and the the ones that will you will use in your 180 00:11:16,580 --> 00:11:18,500 daily life as developed or developed. 181 00:11:18,650 --> 00:11:19,850 OK, thanks for watching.