Тёмный

Lecture 3: Editors (vim) (2020) 

Missing Semester
Подписаться 97 тыс.
Просмотров 388 тыс.
50% 1

Наука

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 386   
@mnnptl
@mnnptl 3 года назад
Me : **Standing alone at a corner in a party** Also Me : "They don't know I use vim"
@jiyometrik
@jiyometrik 2 года назад
*neovim*
@CarlosMafla
@CarlosMafla 2 года назад
For web development...
@71sephiroth
@71sephiroth 2 года назад
Story of my life...
@mayankmishra3875
@mayankmishra3875 3 года назад
I started using Vim about 4 years ago. I exited today. Thank you, MIT.
@CarlosMafla
@CarlosMafla 2 года назад
I've been using Vim for more than 10 years and I agree with the lecturer it takes a lifetime to master
@fsouza
@fsouza 2 года назад
I'm watching this video on emacs and laughing
@shchen16
@shchen16 2 года назад
lmao
@ghosthunter0950
@ghosthunter0950 8 месяцев назад
@@fsouza bro is living inside emacs. his entire OS is just a bootloader for emacs.
@ericzhang1400
@ericzhang1400 25 дней назад
why you exited?
@lanavasilieva117
@lanavasilieva117 4 года назад
so they are sharing the sacred knowledge on how to exit vim... heretics
@vertigo6982
@vertigo6982 4 года назад
kids these days dont know how easy they have it...
@earvingallardo1391
@earvingallardo1391 4 года назад
cynical
@pauldwalker
@pauldwalker 4 года назад
when I first tried exiting vi, many many many years ago, I got yelled at by the system admins because of all the stopped (^Z) processes on the server taking up all the system memory. good times! good times!
@jnecaise
@jnecaise 4 года назад
How am I supposed to get my random seeds if the new users know how to exit?
@djhart25
@djhart25 4 года назад
lolll I took far too long switching from nano to vim simply because my brain couldn't remember this
@l0_0l45
@l0_0l45 4 года назад
*An entire lecture on VIM! You offended the entire Church Of EMACS!*
@zingg7203
@zingg7203 4 года назад
Vim Church congrats
@blackhatson13
@blackhatson13 4 года назад
Need more than one lecture for Emacs 😂
@ivansakal1224
@ivansakal1224 4 года назад
org mode goes brrrrrrr
@avibrarbrar
@avibrarbrar 4 года назад
😂😂😂
@MrBetaJacques
@MrBetaJacques 4 года назад
dudes screw emacs. I will start a bloodfeud with anyone who doesnt love vim
@Trazynn
@Trazynn 4 года назад
Oh boy, this reminds me of Starcraft players having to learn the 'Core' hotkey layout. They learned the game using keys that corresponded to the first letter of the unit ('M' = Marine) until someone figured out that you could just group them all on the left side of the keyboard ('A' =Marine) for faster controls.
@Navienzhal
@Navienzhal 2 года назад
Huh, i changed all my units and buildings hotkeys to Q W E R S D Z X C, because there're never more than 9 buttons on one panel.
@JohnDegen_aka_Jeehannes
@JohnDegen_aka_Jeehannes 4 года назад
A really good intro to my favourite editor! I'm not a programmer, but I've used Vim for some 20 years. This is a comprehensive first dive.
@pugboi8017
@pugboi8017 4 года назад
John Degen you’re not a programmer? Then what do you use vim for
@younlok1081
@younlok1081 4 года назад
@@pugboi8017 editing files ??
@GOA_Pictures
@GOA_Pictures 4 года назад
@@pugboi8017 same question
@vertigo6982
@vertigo6982 4 года назад
@@pugboi8017 He could be a network admin where their life is conf files.
@heroe1486
@heroe1486 2 года назад
@@pugboi8017 devops or anything involving lots of typing like journalism or writer
@whiskeytuesday
@whiskeytuesday 4 года назад
Ctrl-[ is mapped to escape by default in vim, which means no annoying rebinding of esc on your os (leaving capslock free to be mapped to ctrl, as G-d intended.)
@damian_madmansnest
@damian_madmansnest 10 месяцев назад
The whole point of rebinding Caps Lock to Esc is that you have a quick way to escape to normal mode which you do often in vim. C-[ is hell of a convenient combination to press often. And i wonder what on earth do you need to remap Caps lock to Ctrl for? Emacs?
@giant3909
@giant3909 4 года назад
Vim emulation with bindings in favorite IDEs is a really good thing. It's the best of both worlds, you have all the powerful abilities of Vim and the great tools of you IDE. I've been running like that for 2 years and it's great. I also recommend using vimium for chrome and firefox. It has a lot of powerful vim commands and makes your navigation smoother.
@humm535
@humm535 4 года назад
It gives you the bad parts of your IDE (namely the IDE itself) and close to nothing of Vim except some keybindings and modal editing.
@БарометрАтмосферный
There're most of languages have autocompletion in Vim (that means "power" from Latin). I use Vim for R and .netcore development. U must to trying "Vimium C" fork from one chinese man with many extended functions such as dark mode for Vomni, close tabs / cleaning history from Vomnibar, same Vimium navigation in PDF. But in Chrome not read headers of Tabs sleeping by TabSuspender.
@TehGettinq
@TehGettinq 4 года назад
That defeats the purpose of staying in your terminal. Just use nvim + tmux and take a few hours to configure your nvim properly.
@heroe1486
@heroe1486 2 года назад
@@TehGettinq Or just use a tiling window manager if you aim to have a keyboard driven experience and ditch tmux ( unless you need sessions and other non tiling related stuff )
@MichaelS-em8id
@MichaelS-em8id 4 года назад
i think vim is absolutely insane for efficiency after watching, i always found it cumbersome switching windows to go from terminal to vs code. i think i'll actually go through the growing pains of learning the basic commands to navigate through my code.
@bepd
@bepd 4 года назад
vscode has a built-in terminal you can jump to with ctrl+`
@artemkashkou274
@artemkashkou274 4 года назад
It's not insane! If we look just at the side of coding apps then IDEs (from jetbrains for example) can give u a pretty good efficiency. Sometimes people learn vim + fast typing then they think that they are superefficient but the same time everything they do is just playing the fucking piano on a keyboard
@TehGettinq
@TehGettinq 4 года назад
@@bepd a better option is to simply use tmux.
@daleowens7695
@daleowens7695 4 года назад
Command mode also gives you shell access, eg :!ls. Adding the '!' to anything in command mode causes VIM to shell out. I get a lot of mileage from '!' and ctrl-z and fg when going back and forth of VIM and the shell.
@coo463
@coo463 4 года назад
@@bepd to do this in vim use :term But there are other options that also work like using a manager like tmux or as somebody said bellow using ctrl-z and fg. Or opening anther tab. Each method is nice in its own way.
@RushilKasetty
@RushilKasetty 4 года назад
Ah, this class looks great. We have a class like this at my university, it's called Computer Science Pragmatics.
@Beetless
@Beetless 3 года назад
chairizard
@zombiesalad2722
@zombiesalad2722 3 года назад
@@Beetless B
@astropgn
@astropgn 4 года назад
I am of the opinion that the editor matter less than what he conveyed at the beginning of this lecture. One thing is to try to write code in programs that have very few features. Another thing is to compare full feature editing tools tuned to the sole purpose of writing code. Yeah, efficient people who uses VIM do it very efficiently... so as efficient people writing in visual studio or their favorite IDE. I didn't buy the argument that at 20 hours will get the same speed and then forward you will see improvement. We see improvements on every tool we have expertise. The one argument in favor of vim, in my opinion, is to be able to efficiently work when you cannot control the environment. If you write a lot of code remotely on the cloud, for example, or if you have to access someone else's computer but they don't have the software you use. Otherwise, you can get the same level of optimization with any other editor. Whenever I see someone saying that it is inherently more efficient and practical to use vi, I think it is just confirmation bias .
@TehGettinq
@TehGettinq 4 года назад
You will definitely edit text way faster in vim/nvim than in any other editor/ide. Its not even close to being comparable. Does it matter? probably not really.
@astropgn
@astropgn 4 года назад
​@@TehGettinq I don't think it is an easy statement to accept. First, people can get very proficient with their set of tools. Blind people using assistive aids can navigate through their phones as fast as non blind people for example. So it could be, at least theoretically, that very proficient vim users do as well as an equivalent non vim user that are also experienced users of their set of tools. Hard to know for sure, but also hard to deny it as well. It is hard even to test this. Yeah, one can show a workflow where vim is incredibly faster than any other method... But nitpicking a couple or dozen of cases while ignoring the entire universe of cases the industry demands does not prove anything. Another way to think about it is that the market tends towards efficiency of resources. If vim was really that much better at delivering productivity, the market would tend to make non vim editors obsolete (no company uses punch cards anymore). This does not happen. What we see is a spectrum of tools used by a spectrum of users. This makes me believe two things: First, many of these tools could each one be better at specific set of tasks, but none being better overall, and second, the cost of learning and getting experience with a specific tool might damage productivity as a whole, which makes the industry tends towards an equilibrium between users that use vim and users that don't. This would explain the distribution and there would be no reason to argue in favor of one or another like that. In either case there is no indication of superiority.
@Qladstone
@Qladstone 11 месяцев назад
​@@TehGettinqYou may be able to edit text faster, but can you do full-scale refactoring with IDE scan for usages, instant creation of getter/setter methods, step-debugging with live evaluation of arbitrary expressions at any line you want, instant scroll of all usages of a method/variable/class, alongside many powerful features of a commercial grade IDE like Intellij IDEA? Maybe you could configure all of those things, but surely not in 20 hours. More like 200 hours of trial and error and frustration probably, and still not get the desired effect. Not to mention you can do pretty much everything in IntelliJ IDEA with keyboard shortcuts. I pretty much never have to touch my mouse when using IntelliJ IDEA.
@TehGettinq
@TehGettinq 11 месяцев назад
@@Qladstone yep, can do.
@tomifg
@tomifg 4 года назад
How satisfying is that clean chalckboard
@gokukakarot6323
@gokukakarot6323 4 года назад
Surprise, youtube forward and rewind keybindings are j and l and k for pause
@rudhisundar
@rudhisundar 4 года назад
Thanks, I still learned some more tricks! H, L, M: those are great! And also for "o" command.
@pauldwalker
@pauldwalker 4 года назад
after 30 years, I am still learning vi/vim tricks.
@mingnuili5095
@mingnuili5095 2 года назад
很棒 很有帮助 谢谢你们
@Skiamakhos
@Skiamakhos 2 года назад
What's the difference between words and WORDS forward though?
@SanjitKumar-kh1hj
@SanjitKumar-kh1hj 4 года назад
The guy sounds super polite
@anderjgs1
@anderjgs1 3 года назад
Great content, nice explanations,thanks.
@zaheeruddinfaiz7064
@zaheeruddinfaiz7064 2 года назад
Dear lecturers, can we get Missing Semester 2021? Thanks
@canale_mio_bonaa
@canale_mio_bonaa 2 года назад
Very informative. Thanks a lot.
@orlevitas2944
@orlevitas2944 4 года назад
Great lecture! Could you please give a link to the to the survey in stackoverflow on VIM (3:49)
@swapnilg.5996
@swapnilg.5996 3 года назад
it is available in the course notes : missing.csail.mit.edu/2020/editors/
@abhijeetsingh2933
@abhijeetsingh2933 4 года назад
how to save vimrc ? question 2 of exercise
@alandmunk3h
@alandmunk3h 4 года назад
How do I move the cursor to the left when in insert mode, if I have used the advised ~/.vimrc which disables the cursor keys.
@DutchFakeTuber
@DutchFakeTuber 4 года назад
At the bottom of the ~/.vimrc file you can find the lines that start with inoremap. Simply remove these lines (or mark them as comments) and you should be good to go! In normal mode however, the blocking of the arrow keys still persists.
@Marshblocker
@Marshblocker Год назад
@@DutchFakeTuber Is it bad practice to use arrow keys even in insert mode?
@yihanxiao175
@yihanxiao175 4 года назад
Simply great!
@jonseltzer321
@jonseltzer321 4 года назад
myth - programming quickly is about how fast you can edit text...
@fhajji
@fhajji 4 года назад
Exactly. You may *type* programs quickly, but finding that single one-character bug may take hours of debugging and head-scratching.
@heroe1486
@heroe1486 2 года назад
It's not, like running fast isn't about your shoes, but you're better of using professional shoes if you want to compete at high level
@jonnym4923
@jonnym4923 4 года назад
accidentally using vim commands while the youtube window is active... youtube \_(-_-)_/
@vertigo6982
@vertigo6982 4 года назад
you know there's a vim extension for the browser... :D
@aa664_
@aa664_ 4 года назад
love the sound of chalk.
@daya455
@daya455 4 года назад
Great class. Thanks.
@prakash.vishwakarma
@prakash.vishwakarma 2 года назад
Fantastic vdieo!
@Paretozen
@Paretozen 4 года назад
vim is life!
@androidemulator6034
@androidemulator6034 4 года назад
how to show the key presses like yours
@MissingSemester
@MissingSemester 4 года назад
Anish is using KeyCastr (github.com/keycastr/keycastr)
@ShaileshDagar
@ShaileshDagar Год назад
A fun lecture.
@TheMrGoodkind
@TheMrGoodkind 4 года назад
Is there a succinct cheat sheet of all of this?
@trejohnson7677
@trejohnson7677 4 года назад
Adam Goodkind vimtutor lolol. the wiki.
@FrancisBehnen
@FrancisBehnen 4 года назад
vim.fandom.com/wiki/
@generosonunezarias369
@generosonunezarias369 4 года назад
i.imgur.com/YLInLlY.png
@archibaldchain1204
@archibaldchain1204 4 года назад
Is this course for first-year cs students?
@netbotcl586
@netbotcl586 4 года назад
yes, it is pretty suitable
@TheTurtleOfGods
@TheTurtleOfGods 4 года назад
no it's for your mom on youtube
@KiraTheUnleashed
@KiraTheUnleashed 4 года назад
Do you use vim for java development as well ?
@ashrasmun1
@ashrasmun1 4 года назад
that sounds like masochism tbh, doesn't eclipse have vim plugin?
@humm535
@humm535 4 года назад
Java sucks, but yes, Vim for everything!
@БарометрАтмосферный
It's ironically to dev on Java, the fattest language/VM, with the most minimalistic text editor.
@humm535
@humm535 4 года назад
@@БарометрАтмосферный Vim is by far not the most minimalist text editor; Vim is a very big one. Smaller text editors are, for example, ed(1), ex(1) and sam(1). Vim has stuff like many built-in features and plugins, including tabs&splits, a built-in terminal emulator, syntax highlighting, GDB integration, sessions, an own scripting language, etc.
@Al-gc9ul
@Al-gc9ul 4 года назад
I use Vim for everything except Java and Scala. For those, nothing beats Jetbrains Intellij IDEA. It also comes with Vim bindings, though I find them not that productive.
@krunkle5136
@krunkle5136 2 года назад
Vim is a cult actually worth getting into.
@DevilHell97
@DevilHell97 4 года назад
"Vim is a powerful text editor"
@zingg7203
@zingg7203 4 года назад
The most powerful text editor ❤️
@james--p
@james--p 4 года назад
@@zingg7203 Emacs wants to know your location
@infavorofdemocracy5770
@infavorofdemocracy5770 4 года назад
OK you cannot tell but I am trying to stop myself from playing VIM golf
@keenshibe7529
@keenshibe7529 11 месяцев назад
24:16
@HarshPatel27
@HarshPatel27 4 года назад
looks like young Sal Khan
@5358-i4s
@5358-i4s 4 года назад
jkl;
@McSinyx
@McSinyx 4 года назад
Imagine there is a builtin tutorial for Vim so one does not have to give a full lecture like this.
@10riddles
@10riddles 4 года назад
Here is the official repo github.com/vim/vim You can check the documentation section which states: "The Vim tutor is a one hour training course for beginners. Often it can be started as vimtutor. See :help tutor for more information." This should get new users started.
@MissingSemester
@MissingSemester 4 года назад
Yes, we agree with Slobodan, the goal of this lecture is not to supersede vimtutor (it's actually our exercise 1), it's more about communicating the philosophy of vim and showing off some of its features.
@vertigo6982
@vertigo6982 4 года назад
@@MissingSemester It's always nicer and more inspiring to see someone actually use it and demonstrate it than to read a book or jump straight in to the deep end. So this lecture was refreshing for me (I already knew vim but forgot some things) and I can see this being very useful for those who have never even tried to use it, not even knew about vimtutor.. because lets face it.. majority of new Linux users dont even "man" or --help anything. They like to see others do it, and/or be told what to do.
@dr.z7958
@dr.z7958 4 года назад
1- Why is he using these old types of boards? 7:00 2- Why using these text editors? Isn't Visual studio, Eclipse..etc much better?
@anthonytonev1357
@anthonytonev1357 4 года назад
1 - The board has to match the century of the technology he is teaching. 2 - Nah, these editors are for programmers that actually work.
@TehGettinq
@TehGettinq 4 года назад
​@@anthonytonev1357 tbh all the good programmers ive seen use vim or emacs. Like if youre on windows doing java i understand you think vim is retarded but that would imply you also dont know shit so its kind of contradictory.
@GwenHrothgar
@GwenHrothgar 4 года назад
Gettinq heueheueheu
@DafuqModeOn
@DafuqModeOn 4 года назад
Speaking for my personal experience regarding your second question. Before I started learning vim, I used JetBrain's intelliJ when I was learning Java. I am a rather quick at typing, so inefficiency wasn't really an issue. At some point I started trying to learn vim. I don't remember what got me to learn it at this point, but I used the vim emulator in intelliJ. It was a struggle. I was comparably slow, misused keys from being used to the standard typing key binding, using the mouse and such. It took me a couple weeks of on and off using vim before I actually started to use it majority of the time. Later full time :) Now I've been using vim for over two years, the speed at which I am able to edit and traverse files is way faster than in a bare editor. Visual Studio and intelliJ are great editors, but are heavy. And when you're working as a backend programmer you very often have to ssh into servers where all you have is your command line interface, often with only vim/nano installed (sometimes even the old vi is the only editor available). I won't say that this editor or that is better, but to me vim feels like a sharp, efficient tool in a programmer's toolbox. Then comes the customization, the plugins, the freedom of tailoring your editing environment to your needs. It's a rabbit hole and I love it :) I feel at home using vim (or neovim, actually, but it's the same thing except maintained better)
@vertigo6982
@vertigo6982 4 года назад
Depends on what your building... Expert programmers sometimes dont need a full IDE and will use VIM and then just GCC or G++ (or whatever compiler you prefer depending on the language you write in) the files.. Some programmers need the bloated IDE because their company makes it mandatory because theyre working on a big project that has tens perhaps hundreds of coders working on who may need to use your code to build their code so its more streamlined.. But if you're a one man wrecking crew coder building a backend, driver or even a game.. you can use vim and get things done just as quick.. theres autospell and syntax coloring so they can work pretty damn effeciently in vim.
@zabelsky
@zabelsky 4 года назад
Nano is better then vim. But better is IDE editor
@heroe1486
@heroe1486 2 года назад
Translation : "a car is faster than a plane"
@Arkanj3l
@Arkanj3l 4 года назад
Learning vim on a chalkboard, the madman
@leongurung636
@leongurung636 4 года назад
You did not watch full video.
@azmigaming1236
@azmigaming1236 3 года назад
well, actually he used vim on the laptop started on 9:34
@glengonsalves9547
@glengonsalves9547 3 года назад
@@azmigaming1236 just type vimtutor on your terminal
@JabYoFace
@JabYoFace 5 месяцев назад
I actually learned SQL and programming without a pc in school
@deadmoroz14
@deadmoroz14 4 года назад
Imagine having an editor so intuitive, that you have to watch a lecture in order to use it. Woah!
@brenchille
@brenchille 4 года назад
deadmoroz14 I don’t like using it but it is nice to have for quick edits from time to time.
@deadmoroz14
@deadmoroz14 4 года назад
@@brenchille As a noob I am, I prefer nano. This is what really works for quick edits. Vim could be the most powerful editor ever, but its UX and learning curve still frightens me off.
@Neonb88
@Neonb88 4 года назад
Imagine studying something useful that's also difficult enough that you have to watch a lecture in order to be productive in it as a career. That couldn't possibly be a good life choice
@kenjirore1400
@kenjirore1400 4 года назад
@@Neonb88Just go through vimtutor
@MissourHanzai
@MissourHanzai 4 года назад
Oh no I have to spend an hour in vimtutor to start using extremely productive software. Oh the horror I wonder how gimp will ever recover?
@BantuTu
@BantuTu 4 года назад
43:50 a prime example of how the most useful things are usually cloaked in an air of nonchalance, even in documentation.
@bed7496
@bed7496 3 года назад
repeats the last what again?
@BantuTu
@BantuTu 3 года назад
@@bed7496 the dot . normal command repeats the last change. The last change is anything you do to change text in the current buffer. Eg, Inside vim on a new line: ^[iChange^M^[.... ^M - Enter ^[ - Escape :help .
@bed7496
@bed7496 3 года назад
@@BantuTu much thanks :D
@treeislife
@treeislife 4 года назад
In the early 90s, I went to Northeastern U., just across the river from MIT. I took a similar class like this one. The lecturer was also a TA, however, I was taught to use Emacs and brainwashed to think that Emacs was the only thing (and Lisp) a programmer would need. I was too young to know about the Cold War between Vi and Emacs churches.
@not_ever
@not_ever 4 года назад
How's your pinky? Do you suffer from any permanent long term effects?
@BantuTu
@BantuTu 3 года назад
What do you use now?
@cat-.-
@cat-.- Год назад
Lol my cs prof also a emacs advocate. He went to virginia tech
@auricom242
@auricom242 3 года назад
I'm rolling on the floor because of that one guy taking notes on docs/word about a vim lecture. And no, i'm not laughing at him, i laugh at the irony.
@heroe1486
@heroe1486 2 года назад
And most of them are certainly on a Mac or Windows using floating windows manager while learning how to get fast with the keyboard using vim, total nonsense, or how to do a marathon while eating McDonald's
@ianpan0102
@ianpan0102 4 года назад
Even after I jump-shipped to Emacs, I still use the vi-emulation (a.k.a. evil-mode) because tbh, vi-style bindings has just become an intuition for editing code and text.
@Hgj-hb9bd
@Hgj-hb9bd 4 года назад
@ianpan870102 I recognize that logo from somewhere. What is it?
@onkarkalpavriksha8676
@onkarkalpavriksha8676 3 года назад
I started using vim binding in vscode a month ago. Now it feels unnatural typing without vim. VIM is truly a piece of ART!
@bew
@bew 4 года назад
dwi and cw have another difference: cw is a single change, and repeating it with dot (.) will repeat the deletion and the inserted change. While with dwi, the repetition will only repeat the inserted text.
@Adolf1Extra
@Adolf1Extra 4 года назад
dwi is two commands, insert being the last, so indeed dot only repeats that
@arkrusade
@arkrusade 4 года назад
@@Adolf1Extra No. dwi is a delete command, not an insert command. i in this case follows a text object w, meaning word. Thus, this i means inner, not insert
@TwistedRetard
@TwistedRetard 4 года назад
@@arkrusade you are correct if you use diw (delete inner word) command but the comments here are talking about dwi (delete word insert).
@arkrusade
@arkrusade 4 года назад
@@TwistedRetard ah you're right. Mb
@EliteTester
@EliteTester 3 года назад
lmao he had anti-arrow key keybinds in insert mode
@kirk0831
@kirk0831 4 года назад
OMG, it is so helpful. Thank you for making this video to help me learn vim.
@tvguideondemand
@tvguideondemand 4 года назад
Change in character is one command I've been wanting for a while! So happy this exists. I've been learning Vim on and off for the last week and that was one I didn't know about. I'm glad I watched this.
@mahipalsingh9361
@mahipalsingh9361 2 года назад
No matter for how long you use Vim there is something that you can always learn
@ashishlal5911
@ashishlal5911 3 года назад
47:23 The chad in the front row is having the time of his life.
@alexmijo
@alexmijo 2 года назад
So I guess I won't use Vim, since I can't really touch type lol
@trunc8
@trunc8 4 года назад
I wish the lecture didn't end XD. Amazing work there!
@NoEgg4u
@NoEgg4u 4 года назад
Real Linux people edit files via the "ed" editor. ;-)
@StuxNETozor
@StuxNETozor 4 года назад
0 ? ? ?
@nicolareiman9687
@nicolareiman9687 4 года назад
real linux programmers write to a file using a C source code.
@Kqzz
@Kqzz 4 года назад
I actually need to learn vim so bad now. I never knew how slow I was using vscode.
@Yotanido
@Yotanido 4 года назад
Instead of rebinding caps lock, you can also use C-[ instead of ESC. C-c works, too... sort of. There are some caveats with C-c and I wouldn't recommend using it. It breaks some plugins and might require some additional configuration to behave more similar to ESC.
@MrDrewluna
@MrDrewluna 4 года назад
if only my professor taught me this thing, i would have gotten to cs much earlier. my professor taught us html using .txt file , just changing the ext. name
@willd0g
@willd0g 4 года назад
Geeez I would have never picked up programming then haha
@nitc9242
@nitc9242 4 года назад
Wish my cs professor taught like this.
@abhisheksah
@abhisheksah 4 года назад
Donald J. Trump they teach like my school teacher
@lenpalmeri6228
@lenpalmeri6228 4 года назад
I used vi alot in the 80's and 90's. Once you get the hang of it, you can move very fast through code. Viva la vi !
@vertigo6982
@vertigo6982 4 года назад
and now?
@djebbaranon5892
@djebbaranon5892 4 года назад
80!? Ahha omg u you are legend
@eyesgotshowyo7800
@eyesgotshowyo7800 3 года назад
How old are you ?
@jeetadityachatterjee6995
@jeetadityachatterjee6995 4 года назад
You use different programs to write essays and code? This was brought to you by the Emacs gang
@not_ever
@not_ever 4 года назад
No I use vim for both...
@dmsalomon
@dmsalomon 4 года назад
Easily the best intro to vim I have ever seen
@smithwill9952
@smithwill9952 4 года назад
Like blackboard and chalk. Sound like my old school. NO Powerpoint, feeling comfortable!
@vertigo6982
@vertigo6982 4 года назад
I was hoping for a filmstrip with guys from the 80s with neckbeards.
@dodochi79
@dodochi79 3 года назад
My god, until now, this is the holy video let me run speed at x1.0, even slower. Respect! BTW, anyone know how to record key stroke on video above on Linux (except Keymon & screenkey) ? Thank you very much.
@CaptainAardvaark
@CaptainAardvaark 4 года назад
Welcome to the learning cliff! And a lifetime of configuring your own personal ultimate config.
@mishasawangwan6652
@mishasawangwan6652 4 года назад
it’s true: if you know vim well enough, you can edit at the speed at which you think.
@TrilokD
@TrilokD 4 года назад
Actually you can edit at the speed at how fast you think but your typing speed just has to compliment it, so, I can do it. ¯\_(ツ)_/¯
@KieranDevvs
@KieranDevvs 4 года назад
@@TrilokD By that logic, you don't need Vim, as long as your typing speed is fast enough, MS Notepad can achieve the same thing.
@TrilokD
@TrilokD 4 года назад
@@KieranDevvs No mouse ( less joint aches ) and portability are the two main reasons I use vim and to be practical, MS Notepad? Really? Okay, I don't use notepad because it lacks FEW of the features or facilities that Vim provide me.
@KieranDevvs
@KieranDevvs 4 года назад
@@TrilokD I was being sarcastic, re-read the comment.
@TrilokD
@TrilokD 4 года назад
@@KieranDevvs 👍
@orlevitas2944
@orlevitas2944 4 года назад
Great lecture! what software you used to show the key stroke on screen?
@marcorieser
@marcorieser 4 года назад
Looks like KeyCastr
@jackofnotrades15
@jackofnotrades15 4 года назад
Great content. Thanks for the upload. Hope this channel continues...😅
@anshu957
@anshu957 3 года назад
Good luck changing keyboards (mini, 75%, full).
@RaymondLHW
@RaymondLHW 4 года назад
Useful video. I'm recommending to my teenage students ..... though I guess not many of them are interested lol
@LHAnthony
@LHAnthony 4 года назад
Some might eventually start using it. it took me YEARS of infrequent use to start using it more frequently
@abhishekgururani6993
@abhishekgururani6993 4 года назад
Thanks Anish, I got started with vim by watching your tutorials...this video was very useful.
@sirakzeray4543
@sirakzeray4543 4 года назад
This course has been great
@jinxscript
@jinxscript 4 года назад
Notepad all the way 💆.
@alfred.clement
@alfred.clement 4 года назад
there needs to be a lecture on how to exit vim
@bubbyroosh4038
@bubbyroosh4038 4 года назад
@@almasfizashaikh6159 You're right, it's just a meme in the community though.
@npt.a.7013
@npt.a.7013 4 года назад
ZZ
@your_name96
@your_name96 4 года назад
@@almasfizashaikh6159 ya :q is the standard methods of exiting vim, there are two other methods which I know are :wq and :q! or :qa!. :wq saves the file and quits the Vim window (:wa lets u save and keep working), :q! and :qa! are not recommended though :)
@TehGettinq
@TehGettinq 4 года назад
@@your_name96 :q! is recommended and very useful. it means you can exit the file without saving changes. Aka edit the file and ignore changes.
@Yotanido
@Yotanido 4 года назад
@@your_name96 There's also :x, which does the same as :wq. (Well... :x only saves the file if it was actually changed, while :wq does a write even if it is unchanged. This will only be relevant in very niche cases, though)
@StephenMarkTurner
@StephenMarkTurner 2 года назад
Back in the late 90s, the combo of vim plus an identifier lookup (like ctags) worked pretty well.
@ziakhalid5904
@ziakhalid5904 3 года назад
Thanks a lot, it helped me a lot learning Vim.
@ItzGanked
@ItzGanked 2 года назад
should I force myself to go through the pain of getting the muscle memory of all these commands or tailoring it to my needs or just be left curve vs code user?
@danimoosakhan
@danimoosakhan 4 года назад
gg - move the cursor all the way to top G - move the cursor all the way to bottom L - move the cursor to last line of the screen M - move the cursor to middle line of the screen H - move the cursor to top of the screen : - move to specified line ^e - scroll up one line ^y - scroll down one line ^u - scroll up ^d - scroll down dd - deletes a line dw - deletes a word x - deletes a char p - paste u - undo 0 - beginning of line $ - end of line ^ - first char of line g_ - last char of line w - moves the cursor forward 1 word b - moves the cursor backward 1 word i - insert mode ESC - Normal mode : - command mode :q - quit a file :q! - force quit :w - writes the changes :wq - write and quit :w [filename] - write to specified file
@pauloalmeida2126
@pauloalmeida2126 Год назад
That dude doing "programmer's sit up" exercise at 47:22 😂 Jokes aside, that was a phenomenal preso!
@daleowens7695
@daleowens7695 4 года назад
Even if you decide not to use VIM, learning the navigation keybindings are still pretty useful. I suppose more accurately I could say ex-normal mode is what I'm talking about here. Off the top of my head the less, man pages, git log output programs support VIM navigation bindings including search, eg. '/' or '?'. I'm sure I'm leaving out dozens of programs. Pretty much most Linux tui programs support VIM style navigation.
@daleowens7695
@daleowens7695 4 года назад
Not technically related, but hopefully some newbee would find this helpful; Vim help works with "tags" eg ctrl-] and ctrl-t
@daleowens7695
@daleowens7695 4 года назад
AND..... All VIM beginners should begin with $vimtutor
@daleowens7695
@daleowens7695 4 года назад
Reducing the key repeat on hold timeout and increasing the key repeat rate is highly recommended to get faster scrolling.
@severgun
@severgun Год назад
vim have normal mode not because "this is whole new world and programing language", but just more pragmatic reason. There is not enough hotkeys(reasonably ergonomic hotkeys) if you keep letters to work as text input. That is why you need to have modes.
@RamonGonzalez-f2b
@RamonGonzalez-f2b 6 месяцев назад
Not my business but there's this lady that always comes late whenever I watch any of these lectures. Thanks for listening .. let me focus.
@優さん-n7m
@優さん-n7m 2 года назад
I still do not fully understand if I should consider picking up Vim. I am a hardware engineer and mostly write VHDL.
@leonardopikachu343
@leonardopikachu343 4 года назад
Alright, i still don’t understand why this will make me more efficient editing code, compared to, say, sublime.... or compared to using a mouse..... i get it if you are in a Linux system and vim is the only editor available... but if you are using a Mac or windows machine, why vim?
@rhaeyx1076
@rhaeyx1076 4 года назад
In my experience, using vim with touch typing would increase your efficiency by a lot. It takes time to get used to it though. But as you spend more time programming, you get kind of annoyed when you need to reach for your mouse or the arrow keys to select something a few lines above, because with vim you can just switch to visual mode and use the hjkl keys to navigate which are keys that are already near your fingers.
@Duiker36
@Duiker36 4 года назад
Tbh, the differential isn't worth it. Vi users tout the "code as fast as you think" bit as a selling point, but the truth is that most programmers need to learn to think and type slower, not faster. The real value of Vi (or Emacs or Nano) is that virtually every standard server will have it. Pushing mouse inputs through an ssh tunnel to the other side of the world is inefficient at best, and the weight of a graphical interface makes it non-ideal. And even that is less and less of an issue, because editing a file on a server probably suggests you're doing something wrong, and as the industry's standards have improved, the need is just rarer and rarer. I personally use vim because that used to be a real concern (a company I used to work at preferred us all work off development environments located on company servers, so you'd have to ssh in to do anything to begin with), and now it's just a habit. The real takeaway that I feel this class didn't advocate strongly enough for is this: pick your tool, and learn it well. If it's vim, great. If it's vscode or intellij, great. Learn its quirks, how it thinks, why it makes what choices it does, how to get it to do all sorts of stuff. And also learn its limitations. Vim will always be terrible with a visual programming language, for example. But the point is that, if a tool is in your toolbox, be good at the tool. But pick one. It doesn't have to be the best. It just has to be _your_ best.
@leonardopikachu343
@leonardopikachu343 4 года назад
Michael Chui that makes a lot of sense. appreciate your reply, big time!
@daleowens7695
@daleowens7695 4 года назад
@@Duiker36 Most Linux distros I've encountered don't have emacs installed by default. I could be wrong, but I seem to recall needing to install it whenever I've wanted to use it.
@coo463
@coo463 4 года назад
As you learn more, there are things that are far more efficient in vim, Sorting code, putting variable s into columns, removing duplicate lines, recording macros and say a couple keystrokes to repeat that macro a thousand times. Plus most text editors don't have a dictionary built in, the ability to add a thesaurus, there are allot of things that other editors just don't do well, or at all. But it depends on how somebody uses it, if they use it like a regular text editor and don't learn the features, there probably won't be much benefit.
@doplydo-6623
@doplydo-6623 2 года назад
How could I work on Jupyter Notebooks in a command line fashion ?
@badassnamed8007
@badassnamed8007 4 года назад
37:33 I still don't get it, how to shift from .md to (.py and shell)
@sebkoller
@sebkoller 4 года назад
He uses tmux, a terminal multiplexer
@badassnamed8007
@badassnamed8007 4 года назад
@@sebkoller thanks, dude
@martinprochazka3714
@martinprochazka3714 4 года назад
Came here for my daily dose of Nano users' tears, left with my mind blown upon discovering "dot" command.
@rareloto
@rareloto 3 года назад
i never knew vim was this powerful switching to vim is going to be exciting
@atidyshirt
@atidyshirt 3 года назад
Would like to hear an update on this
@I_SEE_RED
@I_SEE_RED 2 года назад
Update?
@Kokurorokuko
@Kokurorokuko 6 месяцев назад
he's dead
@ajayrajan8882
@ajayrajan8882 4 года назад
To save and quit simultaneously you can ESC - > :wq
@pablopavan2585
@pablopavan2585 4 года назад
Shift+zz is more easy
@XGD5layer
@XGD5layer 4 года назад
:x works too
@DotYT
@DotYT 4 года назад
i always close my terminal and lose work bc i have no idea how to exit vim lol
@lucianodsb
@lucianodsb 4 года назад
vim is that text editor you still learn new stuff over the years and improve, even organically by deducting stuff. Macros, the dot command, :!% command and finally :norm are the ones that got me convinced to use it for everything.
@jag831
@jag831 3 года назад
Learning vim is not complicated. Teaching vim is.
@miniman123451
@miniman123451 3 года назад
I blame this for the hours ive lost switching workflows
@The_Yin_Tiger
@The_Yin_Tiger 4 года назад
Sex is great and all, but have you tried vim?
@yiran432
@yiran432 Год назад
Too tricky. Impossible to learn!
@yiran432
@yiran432 Год назад
@@NeverKnow9 Good advice! I will try it
@hamedgholami261
@hamedgholami261 11 месяцев назад
This guy is a really good teacher. Thanks man, really.
Далее
Lecture 4: Data Wrangling (2020)
50:04
Просмотров 163 тыс.
Lecture 1: Course Overview + The Shell (2020)
48:17
Просмотров 746 тыс.
Inside Out 2: BABY JOY VS SHIN SONIC 4
00:16
Просмотров 3,7 млн
Mastering the Vim Language
36:20
Просмотров 612 тыс.
Lecture 6: Version Control (git) (2020)
1:25:00
Просмотров 678 тыс.
Vim As Your Editor - Introduction
12:24
Просмотров 921 тыс.
Vim Tips I Wish I Knew Earlier
23:00
Просмотров 67 тыс.
12. Searching and Sorting
48:32
Просмотров 177 тыс.
Lecture 2: Shell Tools and Scripting (2020)
48:56
Просмотров 302 тыс.
Vim Tips You Probably Never Heard of
12:11
Просмотров 119 тыс.
Being Competent With Coding Is More Fun
11:13
Просмотров 81 тыс.
Compilers, How They Work, And Writing Them From Scratch
23:53
Скучнее iPhone еще не было!
10:48
Просмотров 593 тыс.