The two tutorials are so well paced, and the presentation so lucid it made it really easy to follow along and kept me hooked to learn more - no fluff, just direct tips and instructions - one of my favourite styles of presentation! Thank you so much Derek, really appreciate the effort gone into preparing and filming the tutorials. 😊
16:00 If anyone is also wondering why question mark search is a thing: logs. The way you generally diagnose logs is to go to the very end and then try to find the last occurrence of whatever you're looking for, and then go backwards from that
One thing I found out with vim is, in the event you want to create a text-containing file with zero new-lines, is to create the file by writing "vim -b [file]" in terminal. Combining this with saving the file using ":set noendofline" then ":wq", it will save the text doc with no newlines whatsoever. Discovered this when trying to figure out why my encrypted password wasn't working, and found out it was because the newline was causing errors.
Very good job on the video. Appreciate the tutorial. On a sidenote, concerning the microphone deployment, I would offer a suggestion to try that would improve the sound and clear the sightlines. If you raise the Baby Bottle to where the capsule is approximately at your eyebrows and angle down to point at the area in front of your mic, you can lose the pop filter, which does alter the sound, and the sound is more natural requiring less EQ in post. This is not to say that it doesn't sound good, already. Just something I tried based on older recording techniques that I was sold on the first time I tried it.
Thanks for the video Derek, very informative as always! I'm curious to know if you've ever had the chance to fiddle around with the Plan 9 environment - more specifically the acme editor. It uses a very different paradigm from vim & emacs which are very keyboard-centric, and puts a lot more power into the mouse. It was quite the adjustment, but I've grown to really enjoy the way its command system works and how it easily integrates with the rest of the system. Looking forward to hearing your thoughts! Cheers!
Can You please tell what edit should be made in .vimrc to remap CapsLock to Esc key? Everybody talks about doing it, but no one showed exactly how to do this.
one little note, 'Shift+i' places you into Insert mode at the beginning of that line, I feel like the way you explained it might have been a bit confusing also as for the substitute command '%s/Dererk/DT/g' you don't need the 'g' at the end, what the g does is change every occurence of Derek in that line to DT, so say for example you had a line that read: Derek Taylor Derek and you used '%s/Derek/DT/g' it would change to: DT Taylor DT but if you just used '%s/Derek/DT/' it would change to: DT Taylor Derek otherwise a very informative video for my favorite editor
>not sure if it brings up code prediction If vim doesn't have it by default, most things can be added through plugins. Here is a neat code completion plugin: github.com/Valloric/YouCompleteMe
The benefits of Vim over Code is speed. When you learn how to move around in Vim, moving around and editing text in files happens almost as quick as thought. However, Vim is a text editor, not an IDE. If you've never used it before, and need the tools of an IDE like VSCode, you'll quickly become frustrated with it. While it is possible to duplicate and IDE-like environment with Vim, and many developers do, it takes time, a lot of trial and error with plug-ins and configuration. If you're interested in Vim, I highly recommend trying it, but stick with VSCode for your day-to-day tasks while you learn. In time you'll know whether you want to go further with Vim or not.
Thanks so much for this. Kind of sounds like I need to graduate to Vim similar to the way that I went from CodePen to VS Code. Appreciate the feedback!
I switched to vim after switching to i3, it is a very good editor, it takes time to configure but is powerful. Now my highlight when I search and informative text in normal mode dissappeared and is kinda annoying but it is probably my vimrc. Awesome tutorial I was waiting for it!
I didn't do anything different as far as my camera. The lighting was a little low in this video, compared to the previous vim video. Other than that, the same.
Wow, perfect timing, just started trying evil yesterday on emacs Any contraindication on learning vim commands on emacs-evil? Should I take a few weeks on raw vim or it's ok to learn on evil?
I really love emacs but been planing to use evil/vim keybindings for a long time, the composability of VIM commands are way superior than the 'C-x M-c M-butterfly' mess that emacs have Thanks for the video btw!
Evil is -- of all the Vim-like keybinding plugins other apps have -- the closest to Vim itself. There are some Vim commands that Evil doesn't have, but not many. What you learn with Evil-mode will directly translate to Vim. All the motions, text-targeting and manipulating are the same.
@@RobBoudreau Yeah, I heard that, I am planing on doing a natural transition from normal to evil bindings but am a bit afraid of possible bad habits it could create. I found a lot of good info from vim users talking about the transition to evil but none from normal emacsers going to evil
@@betafaccion2289 I'd imagine the hardest thing will be trying not to press CTRL or ALT all the time to move around and edit. Kinda like when I started trying Emacs. I was constantly finding myself typing " : " and commands into my text. I had to go to Evil-mode to save my sanity, little as it is.
Great tutorials. Thank you very much. I'm beginning to understand VIM's workflow Please, do more VIM tutorials. For example, copying and pasting between VIM and other programs, I found it quite difficult
I like using both / and ? *shrug* I know whether I want to go up or down when I need to press / or ? So I do the right one, that way I can always use n to navigate. Guess it's just taste.
@@crwmike0 If you open it normally, yes, it takes like a year to load, but with emacsclient it loads at the startup, and every instance opens immediately.
*Great tutorial!* Just a comment: Wouldn't *w* recognize *, . ) ( ] [* and others as words, issuing *dw* would not delete a word. Having written *function name(...)* deleting just the *name* using *dw* would be impossible. As it would delete the symbol too. At the same time typing *dw* in this array *[adfb,adfbsd,dfgdf]* would remove the whole thing afaik (try *dW* to check it out). Ideally it should delete a-zA-Z and navigate using a-zA-Z + symbols. But *w* is the same command. There is a compromise between *word* movements and *delete* ops and we have to choose sides.
you know how we moved from the stone age to the bronze age? or when we all finally understood that slavery was wrong? gee why do we still have to use this thing? Here we are, taking a course to use a freaking text editor 🤯
@@DistroTube No I just found a website that sells stickers about programmers and tech enthusiasts telling jokes in a nerdy way. Just like you did about GNU/Dentist . So in my case I said never :q! (normal perspective: never quit!) as in never giving up in a nerdy but funny way. So I though that I should add something funny about vim.
Vim is so great and addicting, that people can’t quit
lmao most underrated comment xD
@@ibrahimshaikh6728 not rlly since this joke is older than him
😂
Thanks for all this, Derek. I've been a vim user for a number of years but this was full of a LOT of stuff I'd forgotten! First rate.
The two tutorials are so well paced, and the presentation so lucid it made it really easy to follow along and kept me hooked to learn more - no fluff, just direct tips and instructions - one of my favourite styles of presentation! Thank you so much Derek, really appreciate the effort gone into preparing and filming the tutorials. 😊
Such clear speech and well-made material. So easy to understand and memorise despite english is not my native
16:00 If anyone is also wondering why question mark search is a thing: logs. The way you generally diagnose logs is to go to the very end and then try to find the last occurrence of whatever you're looking for, and then go backwards from that
One thing I found out with vim is, in the event you want to create a text-containing file with zero new-lines, is to create the file by writing "vim -b [file]" in terminal. Combining this with saving the file using ":set noendofline" then ":wq", it will save the text doc with no newlines whatsoever.
Discovered this when trying to figure out why my encrypted password wasn't working, and found out it was because the newline was causing errors.
Very good job on the video. Appreciate the tutorial. On a sidenote, concerning the microphone deployment, I would offer a suggestion to try that would improve the sound and clear the sightlines. If you raise the Baby Bottle to where the capsule is approximately at your eyebrows and angle down to point at the area in front of your mic, you can lose the pop filter, which does alter the sound, and the sound is more natural requiring less EQ in post. This is not to say that it doesn't sound good, already. Just something I tried based on older recording techniques that I was sold on the first time I tried it.
Running bash commands from within vim is something I did not know about...thank you DT!
Thanks for the video Derek, very informative as always! I'm curious to know if you've ever had the chance to fiddle around with the Plan 9 environment - more specifically the acme editor. It uses a very different paradigm from vim & emacs which are very keyboard-centric, and puts a lot more power into the mouse. It was quite the adjustment, but I've grown to really enjoy the way its command system works and how it easily integrates with the rest of the system. Looking forward to hearing your thoughts! Cheers!
Haven't played with Plan 9.
Long live Vim!
Very nice tutorial! I'm new to vim and although I went through the vimtutor twice, I still learned a few new tricks now. Subscribed.
Can You please tell what edit should be made in .vimrc to remap CapsLock to Esc key?
Everybody talks about doing it, but no one showed exactly how to do this.
Derek, another very useful tutorial. Thanks!
Thanks, Andy!
Very good tutorial DT, appreciate the content.
one little note, 'Shift+i' places you into Insert mode at the beginning of that line, I feel like the way you explained it might have been a bit confusing
also as for the substitute command '%s/Dererk/DT/g' you don't need the 'g' at the end, what the g does is change every occurence of Derek in that line to DT, so say for example you had a line that read:
Derek Taylor Derek
and you used '%s/Derek/DT/g' it would change to:
DT Taylor DT
but if you just used '%s/Derek/DT/' it would change to:
DT Taylor Derek
otherwise a very informative video for my favorite editor
Is there a way to dock a cheat sheet or overlay?
Great video - quick question, what software are you using to record your keystrokes?
Currently using Visual Studio Code...is there more of a benefit with VIM?
>not sure if it brings up code prediction
If vim doesn't have it by default, most things can be added through plugins. Here is a neat code completion plugin: github.com/Valloric/YouCompleteMe
The benefits of Vim over Code is speed. When you learn how to move around in Vim, moving around and editing text in files happens almost as quick as thought. However, Vim is a text editor, not an IDE. If you've never used it before, and need the tools of an IDE like VSCode, you'll quickly become frustrated with it.
While it is possible to duplicate and IDE-like environment with Vim, and many developers do, it takes time, a lot of trial and error with plug-ins and configuration. If you're interested in Vim, I highly recommend trying it, but stick with VSCode for your day-to-day tasks while you learn. In time you'll know whether you want to go further with Vim or not.
Thanks so much for this. Kind of sounds like I need to graduate to Vim similar to the way that I went from CodePen to VS Code. Appreciate the feedback!
Thank you!!! Checking it out now.
@James Willams. I used Atom as well in a class for a gaming project and loved it.
I switched to vim after switching to i3, it is a very good editor, it takes time to configure but is powerful. Now my highlight when I search and informative text in normal mode dissappeared and is kinda annoying but it is probably my vimrc.
Awesome tutorial I was waiting for it!
Thanks, migue!
thanks for the Shift+a tip, it helped me
Glad it helped!
Very good Derek.
Much appreciated.
"dubya"
lol thanks a lot though. really helped me out
Thanks, Lotun!
thanks DT pretty cool stuff here some i didnt know about : )
Thanks, Boss.
Another awesome video! Thank you!
Thank you, sir.
has your camera resolution always been that good?
I didn't do anything different as far as my camera. The lighting was a little low in this video, compared to the previous vim video. Other than that, the same.
Very progmatic stuff! Thanks a lot!!!
Wow, perfect timing, just started trying evil yesterday on emacs
Any contraindication on learning vim commands on emacs-evil? Should I take a few weeks on raw vim or it's ok to learn on evil?
I know nothing about emacs. Sorry.
I really love emacs but been planing to use evil/vim keybindings for a long time, the composability of VIM commands are way superior than the 'C-x M-c M-butterfly' mess that emacs have
Thanks for the video btw!
Evil is -- of all the Vim-like keybinding plugins other apps have -- the closest to Vim itself. There are some Vim commands that Evil doesn't have, but not many. What you learn with Evil-mode will directly translate to Vim. All the motions, text-targeting and manipulating are the same.
@@RobBoudreau Yeah, I heard that, I am planing on doing a natural transition from normal to evil bindings but am a bit afraid of possible bad habits it could create.
I found a lot of good info from vim users talking about the transition to evil but none from normal emacsers going to evil
@@betafaccion2289 I'd imagine the hardest thing will be trying not to press CTRL or ALT all the time to move around and edit.
Kinda like when I started trying Emacs. I was constantly finding myself typing " : " and commands into my text. I had to go to Evil-mode to save my sanity, little as it is.
Great tutorials.
Thank you very much.
I'm beginning to understand VIM's workflow
Please, do more VIM tutorials. For example, copying and pasting between VIM and other programs, I found it quite difficult
Install gvim to access system clipboard.
Vim best editor :)
nothing about emacs here
Emacs is an interesting operating system, it just needs a good text editor.
Can you please enlighten us, as to how we can copy from a text file and paste it in vim editor?
swaroopsonline copy using Ctrl + C or Ctrl + Shift + C. Paste into Vim with Ctrl + Shift + V.
Vim is so addicting that even youtube has shortcuts in vim mode xD.
btw vim never deletes it only cuts :p
use x to delete
@@arinroday302 that also cuts fwiw
try it use x on a character then do p to paste it ;)
@@Bob-ys2fb is it? i find it awesome, especially since you have many clipboard at your disposal :^3
How do I get vim to look like this?
does anyone here know how to remap esc to caps lock?? can i do it inside vimrc? like inoremap stuff??
Can you do a video on Vim Plugins?
Will probably do that in a future video.
@@DistroTube Awesome! Thanks!
I like using both / and ? *shrug*
I know whether I want to go up or down when I need to press / or ?
So I do the right one, that way I can always use n to navigate. Guess it's just taste.
> Learn to use vim
> Use emacs evil-mode
The only thing about emacs is waiting six weeks for it to load.
@@crwmike0 If you open it normally, yes, it takes like a year to load, but with emacsclient it loads at the startup, and every instance opens immediately.
*Great tutorial!*
Just a comment: Wouldn't *w* recognize *, . ) ( ] [* and others as words, issuing *dw* would not delete a word.
Having written *function name(...)* deleting just the *name* using *dw* would be impossible. As it would delete the symbol too. At the same time typing *dw* in this array *[adfb,adfbsd,dfgdf]* would remove the whole thing afaik (try *dW* to check it out).
Ideally it should delete a-zA-Z and navigate using a-zA-Z + symbols. But *w* is the same command.
There is a compromise between *word* movements and *delete* ops and we have to choose sides.
why don't you tell us HOW you opened the file?
👏 more 👏 of 👏 these
Thanks, Tommy!
where's your accent from ? love it...
dang did not know of ctrl d, crt o and ctrl i
sounds like things would be better if some of these capital/lowercase mappings were swapped.
Very nice 👍 😺😸
Thank you sir!
starts at 1:45
Excellent!
Thank-You Sir (Flying..)
Thanks.
Hey DT!
Politics according to Vim:
Far-left ␛0
Far-right ␛$
Far-center :command Farce exe 'normal 50%' | exe 'normal '.(virtcol('$')/2).'|'
/s :D
vim is truth. vim is Mother Skynet.
you move words with double yuh
you know how we moved from the stone age to the bronze age? or when we all finally understood that slavery was wrong? gee why do we still have to use this thing? Here we are, taking a course to use a freaking text editor 🤯
because you are way faster with vim! stay in your text editor using a mouse
am i the only one who thinks j and k in VIM should be swapped? meh, i guess i'm just an eastbound and down fan
I installed Wine so I can use notepad 😏
Interesting choice.
that's heresy.
Get out.
donate to children in Uganda?? wtf how about donate to children of your own country who are poverty stricken ... great tutorial mate keep it up
never :q!
I wouldn't say never use it. But users should be aware that it will quit without giving you a warning if you have unsaved changes.
@@DistroTube No I just found a website that sells stickers about programmers and tech enthusiasts telling jokes in a nerdy way. Just like you did about GNU/Dentist .
So in my case I said never :q! (normal perspective: never quit!) as in never giving up in a nerdy but funny way. So I though that I should add something funny about vim.
Ah! A vim joke! Nice. :D
I think I need to make me a cup of coffee. Can't believe I didn't catch your joke. smh
@@DistroTube That's right, so never :q! making nerdy jokes and videos about gnu/linux and keep up the good work.
:Ex >> :!ls :p
>uses vim
>looks at the keyboard for every shortcut
cringe
Dude turn around, your laptop is melting
Now we have to watch tutorials for text editor..smh