Things You Can Do In Insert Mode Things You Can Do In Insert Mode / tutorial / free

https://vimeo.com/67215271

A great screencast for vim tricks to do while in insert mode.
2 favorites
submitted over 3 years ago, by pineapple
Things You Can Do In Insert Mode popular tutorial

8 Comments

pineapple

Things I liked

" <c-j>       enter
" <c-h>       backspace
" <c-u>       delete whole line
" <c-r>       access register. <c-r>/ to put search
" <c-x><c-l>  line completion
" <c-o>       run single normal mode command

pineapple, over 3 years ago

SkinnyGeek1010

Oh wow.... this is game changing! Instead of c-u I was doing esc + shift i + esc + shift d or dd + O. I also didn't know about auto complete... pretty cool.

Thanks for posting!

SkinnyGeek1010, over 3 years ago

pineapple

holy crap, :/

that's long as F

Try these...

cc in normal mode to delete line and enter insert mode. (<c-u> is for if youre already in insert mode)

instead of shift i + esc just use 0 while in normal mode to jump to beginning of line. $ is end of line.

even further, instead of shift i + esc just use <shift-v> and c or d (although the ones above still are way better, or dd like you said.

pineapple, over 3 years ago

SkinnyGeek1010

Haha, yea it's bad! I just added cc & c to my remember list... looks like I need to run through Vim tutor and watch Derek's vids again :)

Another thing that really bugs me is that I can't yank something and then delete something... otherwise the deleted part is now in the register.... is there something I can google/man?

SkinnyGeek1010, over 3 years ago

pineapple

You need to yank into multiple buffers. What you can use is

"0p and that will put what was originally in the yank buffer (it will ignore anything you've deleted)

so if you yy a line, then dd another line, do "0p to put the line you yanked.

That ones kind of tricky for the pinky though, heh.

Definitely remember c, i used that just as much as moving around.

pineapple, over 3 years ago

pineapple

By the way, the 0 register is just where yank goes by default. You can also go into a specific buffer (in this case, a), by doing

yank line: "ayy

put: "ap

pineapple, over 3 years ago

SkinnyGeek1010

Awesome! many thanks!
I'm so glad you convinced me to drop Sublime and pickup Vim. I can always appreciate Vim's speed and efficiency when I try editing in a word processor!

SkinnyGeek1010, over 3 years ago

pineapple

Heh, right on.

pineapple, over 3 years ago


Login or to comment.

Tutorials are any resources you learn from.

Examples: an intro to html5 screencast, a pdf about git, photoshop effects tutorials, meta-programming in ruby, lambda calculus, higher-order fixed-point combinators.

Tools are websites, apps or services used -on- your project (indirectly), to aid the process.

Examples: A color scheme generator, email marketing software, usability heat maps, css3 code generators, a downloadable png compressor.

Assets are downloadable files used -in- your projects, usually as code, textures, or images.

Examples: a jquery sticky menu, photoshop brushes, background textures, mvc frameworks, twitter bootstrap, 960 grid system.