Learn vim For the Last Time: A Tutorial and Primer
https://danielmiessler.com/study/vim/
Mastering the Vim Language
https://youtube.com/watch?v=wlR5gYd6um0
An Incremental Approach to Vim
21–30 of 130 posts
Learn vim For the Last Time: A Tutorial and Primer
https://danielmiessler.com/study/vim/
Mastering the Vim Language
https://youtube.com/watch?v=wlR5gYd6um0
An Incremental Approach to Vim
As a Vim user one of my gripes when first using Vim was how cumbersome the built in help files were. I guess that's why there are so many "vim cheatsheets" out there, the built in documentation is a pain to use.
The biggest pain in vim is the escape key. And no, ctrl+[ isn't any better.
I believe people with poor keyboards don't even have escape keys any more though
As far as I'm concerned, the following is an non-negotiable requirement for vimrc.
source /usr/share/vim/vim80/defaults.vim
set noincsearch
set scrolloff=0
set mouse=Maybe you can cover macros since they are conceptually very simple and very powerful. They may seem a bit complex but are quite simple. Basically you just record your editing movements and play it back. How macros work: press q x to record and q to end. Then repeat with @ x, where x is the name of the macro you want to use (you can have several macros). Anything you do will be played back. That's it... Conceptually s…
But this has prompted me to look this up and it turns out that you can use @@ to do this. This will make my life a lot easier, I can just smash until all my lines are updated.
As a Vim user one of my gripes when first using Vim was how cumbersome the built in help files were. I guess that's why there are so many "vim cheatsheets" out there, the built in documentation is a pain to use.
The biggest pain in vim is the escape key. And no, ctrl+[ isn't any better.
noremap! kj
it means when you press kj [0] that it's the same as pressing escape.. very handy (the times when I deliberately want to press k and then j are still zero)
[0] https://github.com/patrickdavey/dotfiles/blob/335254dce90d5c...
I think this is pretty basic in terms of general vim commands. Navigation and insertion are all basic use cases that beginners should know. That said, the section about composing commands was really interesting!
Hey all, I'm the author. Feedback is welcome! :) The reason I wrote this is because I've been pair programming quite a bit lately and also mentoring some new vim users—so I wrote this little guide to help vim beginners level up their skills a bit. What I noticed is that a lot of vim beginners find composing commands and text-objects to be kind of mind blowing.. and even more experienced vim users mentioned that these…
> Tip: Generally after you’ve inserted some text, you want to return to command mode so that you’re ready to enter your next command. I’d recommend pressing esc any time you’ve finished typing.
Totally agree with this. What really helped me with getting this into my muscle memory was remapping Capslock to ESC which seems to be what many (most?) vim users do.
Earlier quoted context omitted.
The biggest pain in vim is the escape key. And no, ctrl+[ isn't any better.
I have capslock mapped to escape and never notice which one I use (started doing that after my escape key broke on a laptop about 15 years ago) I believe people with poor keyboards don't even have escape keys any more though
Hey all, I'm the author. Feedback is welcome! :) The reason I wrote this is because I've been pair programming quite a bit lately and also mentoring some new vim users—so I wrote this little guide to help vim beginners level up their skills a bit. What I noticed is that a lot of vim beginners find composing commands and text-objects to be kind of mind blowing.. and even more experienced vim users mentioned that these…
I'm not quite convinced about this as general advice :
> If you’re like me and never learned to touch type properly, just use the arrow keys, it’s fine, don’t worry about it.
When I decided to go all-in on Vim keys some time ago (trying to find plugins for everything), it didn't take long to transition to hjkl. I think it's easier and more convenient to stay near the home row rather than moving my hand over for the arrows. I don't strictly touch type either.
Even I, an Emacs user who occasionally uses vi am familiar the material in this.
Can anybody suggest any real intermediate vi material?