This is incredibly helpful and it's laid out in a logical manner. I've been away from Linux and vim for four years and this is perfect for my needs. Further, I believe that your teaching method would enable someone new to vim to grok the editor's methodology. You give enough of the why to help us understand the how.
After this guy shows off block selection at around 39:30, you can here this guy in the background day "What!? Are you serious?"... I had the same reaction.
The way you speak and how your document is structured is very instructive. Thank you very much. Maybe it would be helpful if you could add the questions of your students as comment as they are very hard to understand.
Absolutely, I usually do repeat questions when I'm talking at a podium but this one was sitting down next to everyone so it never occurred. As far as editing it was just a raw class, if I were to do just me and a mic for an hour I would probably edit.
Very eloquent and enjoyable to follow probably the best demonstration to this monster with such a high learning curve, many much thanks. -D Post Script: I learned through much frustration that altering my keybindings for Esc. to Lft. Ctrl. / Lft. Ctrl to Caps Lock / and Caps Lock to Esc. Considering manufacturing and selling such keyboard setups.
*nod* Big biff on my part not repeating their questions, it's a small classroom so it didn't occur to me to do so while recording this. Definitely something to keep in mind for future videos.
Home row should have your right hand on jkl; so having your right index hitting h and j shouldn't be that awkward. That said, hjkl are fairly specialized motions. That is, when moving around unless you really only need to go one character or one line there is almost always a better motion.
Great tutorial! Unfortunately, "gg v G" does not select everything if there is no blank line at the end of the file. The "G" moves the cursor to the first character of the last line, not to the very end. What worked for me is "gg V G", which operates on whole lines, even if the cursor is in the middle of the line when you enter visual mode.
So a few comparasions: Windows: LeftArrow, DownArrow, RightArrow, UpArrow Vim: h, j, k, l Windows: RightArrow, LeftArrow Vim: w, b Windows: ??? Vim: w, b Windows: Home, End Vim: 0, 4 Windows: Home, End Vim: gg, g Windows: a Vim: ggvg Windows: RightArrowc, LeftArrowc Vim: y, by Windows: v Vim: p Alot more comparations here: cognitivewaves.wordpress.com/vi-editor/
> Some plugins reasonably require the arrow keys in insert mode They shouldn't. If they do they're doing it wrong. The wildmenu used for completion can be navigated with ctrl-n, ctrl-p.
So I'v been using notepad++ nano and netbeans many years, but when I look at this video it just makes me clap my hands like a 1 year old.... I have to learn vim! \o/
This is very good, though some of the comparisons to the same action in Notepad++ etc are missing the faster way of doing things. "Take your mouse and click and drag until the end of the line..." errm... no SHIFT+END done almost instantly
Unless the line is too long and is wrapped by editor, then the behavior is everybody's guess. Usually END takes to end of the wrap instead of actual end of the line, vscode does that for example.
Good tutorial, the editing mode thing reminds me of blenders workflow. But 12:06 is not true, you could just press ctrl L or go to the line, press HOME , hold shift and press END then DELETE. But ctrl L would be the fastest.
I really like the style of your shell environment (and of course the tutorial). Can I find everything in that git repository? (Including that fancy bar on the bottom in vim?)
For no highlighting, or cancelling the highlighting, I typically find "/" followed by some completely random string like asdasdsdad.. it's dirty but fast!
Settings for you .vimrc file: " Shortcut to rapidly toggle `set list` nmap l :set list! " Use the same symbols as TextMate for tabstops and EOLs set listchars=tab:▸\ ,eol:¬ The first setting allows you to show/unshow with "\l" The second is the mapping of alternate characters to the tab and eol Information found at: vimcasts.org/episodes/show-invisibles/
Class 1 was "How to install vim" which is wholly uninteresting and wasn't worth posting. Class 3 was lost to a corruption issue with the screen recording software. The class notes, as noted on Video 4 are in the vim-classes repo linked in the description
very annoying to press Esc whenever one want to go back to normal mode. instead, I see some Vimmers run the command :imap jj so that going back to the normal mode is under the tip of your index finger.
I disagree with the statement that there isn't much resemblance between shift and bon shift commands (beginning of the video). They are the same actions, the only difference is non-shift are on characters and shift are on lines.
Hey man thanks for this. I just installed your dotfiles and now "dd" takes a long time to delete a line. As opposed to d$ or diw it's instant. Also deleting many lines or a selected block takes time. Is this normal?
This happens if you have another key map that is one character longer than what you are typing. If you have ddw mapped, then vim doesn't know if your are done when you type dd. You could be typing ddw, so it waits Whatever you deleted was probably prepended with dd.
Once I am in insert mode nothing works no S (shitft L shift right ctrl caps lock what so ever it just prints a capital or a lowercase "s") same goes for all the other letters except lower case "o" which +ctrl pastes or does something like that.. I use Gvim in ubuntu (same problems by starting vim in console)
It would be better to teach F and T as find and till. Find h, till h, are much easier to understand and don't require the "inclusion" or "exclusion" explanations. And :nohl can be :noh, but that was offtopic and nitpicky.
I remember F and T that way too but I think it's one of those things that if you're taught one way and it doesn't work for you then you just figure out something that works.
At the time of the video it was GNU Screen which I patched to have 256 color hardstatus but I use tmux now because I didn't have to patch it. My dotfiles are in github (link in the description)
The very shitty recordmydesktop, the whole reason I lost Class 3. The most recent videos I'm just using ffmpeg directly, transferring it to a windows machine and editing in Premiere
This is the best introduction video on Vim that I have seen on TH-cam. Thank you.
Heavy words.
The first VIM tutorial I feel enriched and not overwhelmed. Copies you commands in my own cheat sheet. The best cheat sheet to get started.
one of the best vim tutorials I've ever saw
This is incredibly helpful and it's laid out in a logical manner. I've been away from Linux and vim for four years and this is perfect for my needs. Further, I believe that your teaching method would enable someone new to vim to grok the editor's methodology. You give enough of the why to help us understand the how.
After this guy shows off block selection at around 39:30, you can here this guy in the background day "What!? Are you serious?"... I had the same reaction.
One word: Brilliant!
Thanks for this great introduction to vim.
Greetings from Austria/Europe
The way you speak and how your document is structured is very instructive. Thank you very much. Maybe it would be helpful if you could add the questions of your students as comment as they are very hard to understand.
the best vim tutorial.
Definetely one of the best VIM intros I've seen. Very much appreciated, thank you!
Absolutely, I usually do repeat questions when I'm talking at a podium but this one was sitting down next to everyone so it never occurred. As far as editing it was just a raw class, if I were to do just me and a mic for an hour I would probably edit.
five years passed. but still awesome and actual. thumbsup.
This deserves a remake (update)
Thank you for posting this! Very helpful for a first time Vim user!
Explained precisely in an elegant way
Very eloquent and enjoyable to follow probably the best demonstration to this monster with such a high learning curve, many much thanks.
-D
Post Script: I learned through much frustration that altering my keybindings for Esc. to Lft. Ctrl. / Lft. Ctrl to Caps Lock / and Caps Lock to Esc.
Considering manufacturing and selling such keyboard setups.
I'm fine with Sublime Text, which does most of these things a little more user-friendlyly, but I appreciate the tutorial. Great teacher!
yes i agree everything showcased *here* can be done with sublime text with ease, but the possibilities are endless with vim.
*nod* Big biff on my part not repeating their questions, it's a small classroom so it didn't occur to me to do so while recording this. Definitely something to keep in mind for future videos.
I use Vim and I enjoy every minute of using it. After I got used to the hjkl movement, I began flying when coding
That's way the Best Tuto online. So efficient. Merci!
Home row should have your right hand on jkl; so having your right index hitting h and j shouldn't be that awkward. That said, hjkl are fairly specialized motions. That is, when moving around unless you really only need to go one character or one line there is almost always a better motion.
absolutely fantastic video. I liked how you had fun with the presentation. You're quite the painter.
Thank you very much for this video. I was planning to move to a good editor. Your video makes a lot of things very clear. Thank you once again.
still helpful and useful to me today
Wow, almost 1 hour! Just tell me if you show how to exit Vim in the end?
Bravo! This is a great introduction to Vim and really gets me excited to learn more. Thank you very much!
11:02 "... the mouse is your enemy, your mortal enemy ..." => most important take away
Great tutorial! Unfortunately, "gg v G" does not select everything if there is no blank line at the end of the file. The "G" moves the cursor to the first character of the last line, not to the very end. What worked for me is "gg V G", which operates on whole lines, even if the cursor is in the middle of the line when you enter visual mode.
+$ is ok
thanks
Right!
Thanks!
:-)
Sure, but maintaining a blank line at the end of the file is standard best practice for editing / coding in any language anyway.
38:54
Windows: a
Vim: ggvg
It's actualy SLOWER.
Other functions are faster than "usual".
So a few comparasions:
Windows: LeftArrow, DownArrow, RightArrow, UpArrow
Vim: h, j, k, l
Windows: RightArrow, LeftArrow
Vim: w, b
Windows: ???
Vim: w, b
Windows: Home, End
Vim: 0, 4
Windows: Home, End
Vim: gg, g
Windows: a
Vim: ggvg
Windows: RightArrowc, LeftArrowc
Vim: y, by
Windows: v
Vim: p
Alot more comparations here:
cognitivewaves.wordpress.com/vi-editor/
I can press a piano key doesn't mean i could be Chopin.
If you can't wrap your head around h, j, k and l for movement, you can use arrow keys in a same way (all the same commands work as well)
> Some plugins reasonably require the arrow keys in insert mode
They shouldn't. If they do they're doing it wrong. The wildmenu used for completion can be navigated with ctrl-n, ctrl-p.
Yup. Though the very bottom line has since been updated to be even prettier. The vim prettiness is vim-powerline, I also use tmux-powerline
Have just learned the unbounded search with g* and g#, thank you! :-)
Excellent video. I use Vim but don't know it very well. I learned a lot from this.
I think "a" and "A" are very similar too, "a" append from the cursor position and I think in "A" like a big append that goes to the end of line.
Thanks for this. I think the most important starting command is "u" ;-) ... Love the course!
You can see the plugins I'm using by looking in the .vim/bundle/ folder in that dotfiles repo linked in the comments
So I'v been using notepad++ nano and netbeans many years, but when I look at this video it just makes me clap my hands like a 1 year old.... I have to learn vim! \o/
This is very good, though some of the comparisons to the same action in Notepad++ etc are missing the faster way of doing things.
"Take your mouse and click and drag until the end of the line..."
errm... no
SHIFT+END done almost instantly
Unless the line is too long and is wrapped by editor, then the behavior is everybody's guess. Usually END takes to end of the wrap instead of actual end of the line, vscode does that for example.
Best tutorial around. Thank you!
The column part was the best.
MIND BLOWN!!!!!!!!!!!!!!
Good tutorial, the editing mode thing reminds me of blenders workflow. But 12:06 is not true, you could just press ctrl L or go to the line, press HOME , hold shift and press END then DELETE. But ctrl L would be the fastest.
I really like the style of your shell environment (and of course the tutorial). Can I find everything in that git repository? (Including that fancy bar on the bottom in vim?)
For no highlighting, or cancelling the highlighting, I typically find "/" followed by some completely random string like asdasdsdad.. it's dirty but fast!
How do you show the carriage return symbol at the end of lines (as seen in this screencast)?
Settings for you .vimrc file:
" Shortcut to rapidly toggle `set list`
nmap l :set list!
" Use the same symbols as TextMate for tabstops and EOLs
set listchars=tab:▸\ ,eol:¬
The first setting allows you to show/unshow with "\l"
The second is the mapping of alternate characters to the tab and eol
Information found at:
vimcasts.org/episodes/show-invisibles/
If this is the second Vim training class (0:00-0:07), where's the first?
In his github repo he explains that the first class was just about installing vim and because of that was not recorded
This is great, thank very much for sharing.
Great video Shawn, curious if the ~/.vimrc file for the above setup can be shared?
Thanks.
github.com/shawncplus/dotfiles/blob/master/.vimrc
How about this?
Great video. What environment is being used here? For example, I don't see the bottom bar that tells me the mode, encoding, line number, etc.
It is a plugin called vim-airline. It is a light-weight and highly customizable powerline for vim.
Good stuff man... Ive been wanting to get into VIM for a while... it looks like 'The Matrix' :)
Damn bro. You have some pretty, fucking, goddamn good-looking skills there dogg! Thanks.
Class 1 was "How to install vim" which is wholly uninteresting and wasn't worth posting. Class 3 was lost to a corruption issue with the screen recording software. The class notes, as noted on Video 4 are in the vim-classes repo linked in the description
Bigup!
great class!
Thank you for sharing!
Great tutorial, and update would be cool
Thanks for 24:41 realy a game changer!
Hi, what is the colorscheme you're using in the video? I've seen more in your dotfiles.
ya this was pretty much amazing.
very annoying to press Esc whenever one want to go back to normal mode. instead, I see some Vimmers run the command
:imap jj
so that going back to the normal mode is under the tip of your index finger.
good suggestion
You can also use Ctrl + C or Ctrl + {
Pretty decent tutorial, thanks
Thank you for your sharing
That's amazing ❤
if you set relative numbering on vim
then 10j comes more easily on the keyboard
This is awesome !! Thank you very much.
I disagree with the statement that there isn't much resemblance between shift and bon shift commands (beginning of the video). They are the same actions, the only difference is non-shift are on characters and shift are on lines.
wonderful tutorial
I see that your Terminal has some variety of syntax highlighting. How did you achieve this?
what do you mean? you can set syntax in the ~/.vimrc
does vim usefull as php ide? I consider moving to vim from phpstorm, would like to have any suggestions
Great tutorial
Gave this a thumbs up after like 4 mins. good shit.
so sick thanks
Great content
thanks for your share
Which vim are you actually using? That kind of "INSERT", etc at the bottom-left, hadn't seen before. I mean the kind of graphics.
vapon1 github.com/powerline/powerline
*****
Great! Thank you. Very nice trainings too!
Hey man thanks for this. I just installed your dotfiles and now "dd" takes a long time to delete a line. As opposed to d$ or diw it's instant. Also deleting many lines or a selected block takes time. Is this normal?
+Lourayad nevermind it was because of the mappings in ~/vim/startup/mappings.vim. I removed some of them and now it's fast again.
This happens if you have another key map that is one character longer than what you are typing.
If you have ddw mapped, then vim doesn't know if your are done when you type dd. You could be typing ddw, so it waits
Whatever you deleted was probably prepended with dd.
Can I ask you how your vim is setup? How do you get the statusbar look so good?
Once I am in insert mode nothing works no S (shitft L shift right ctrl caps lock what so ever it just prints a capital or a lowercase "s") same goes for all the other letters except lower case "o" which +ctrl pastes or does something like that..
I use Gvim in ubuntu (same problems by starting vim in console)
You need to be in normal mode. Which you get to by pressing ESC or CTRL-[
Awesome Mate
Excellent
It would be better to teach F and T as find and till. Find h, till h, are much easier to understand and don't require the "inclusion" or "exclusion" explanations. And :nohl can be :noh, but that was offtopic and nitpicky.
I remember F and T that way too but I think it's one of those things that if you're taught one way and it doesn't work for you then you just figure out something that works.
The editor for people in a different mode.
thank you!
老师讲的很棒,赞一个!
SUPER VIDEO !!
Amazing!
this is crazy. in np++ you delete a line with ctrl+l. and there are lots of shortcuts, and you don't need to use the mouse...
actually :nohl is short for "no highlight" also :noh is 25% shorter than :nohl if you wanna get crazy
hk0i not 25%, but 20%. There is : inside.
What's the name of the font that powerline makes use of? Thanks.
+FreeSoftware Ubuntu Mono IIRC
+Shawn Biddle hell - that was fast ;-)
What terminal/distribution of Linux are you using?
What is the amazing PS1 that appears at the bottom? Please share how to do that.
At the time of the video it was GNU Screen which I patched to have 256 color hardstatus but I use tmux now because I didn't have to patch it. My dotfiles are in github (link in the description)
Thank you
very helpful~
how did you color some lines orange and others green.
I know that vim does syntax highlighting but this is plain english
This is actually not plain english, it's called markdown and it's a markup language. More on this topic here: en.wikipedia.org/wiki/Markdown
Where are classes 1 and 3? I can only find 2 and 4.
The guy at the end :D "yaaAAaAayYy"
Great Video Thankx.........................
Take a look at 'rhysd/clever-f.vim' at github
Class three is where?
I would love to learn and use vim unfortunately I don't think it will help with Java that much.
what tool do you use for recording this video?
The very shitty recordmydesktop, the whole reason I lost Class 3. The most recent videos I'm just using ffmpeg directly, transferring it to a windows machine and editing in Premiere
***** u don have intention to redo Class 3?
You already installed cool plugins :( I need to know how to do it