Slides for "See Vim Run. Run, Vim, Run!"

7 views
Skip to first unread message

Bill Odom

unread,
Aug 17, 2015, 11:28:23 PM8/17/15
to SLUUG general discussion, vim-...@googlegroups.com
Hi all. Just wanted to let you know I posted a PDF of the slides from Wednesday's talk here:


I believe I added slides and notes for most of the examples I covered during the talk, as well as a few we didn't have time for. Please let me know if I missed anything, or if you've got any questions.

Thanks,
Bill

Christopher Bottoms

unread,
Sep 24, 2015, 3:47:34 PM9/24/15
to Vim Geeks, dis...@sluug.org
Hi Bill,

Thanks for sharing those slides! Among other things, I didn't know about !! rerunning the last command.

Do you know the difference these two?

:.! ls
:r! ls

They both give the same results as far as I can tell. I don't remember where learned about using the period instead of r.

Thanks,
Christopher

Bob Ernst

unread,
Sep 24, 2015, 6:33:55 PM9/24/15
to vim-...@googlegroups.com
The ":.! ls" takes the current line (.), pipes it to your command (ls), and replaces the current line with the result. The ls command ignores. standard input.

You can also use a range - try doing something like "1,4!wc". You'll replace the first four lines of your file with the number of lines (4), number of words and number of bytes that were in the first four lines.

--
You received this message because you are subscribed to the Google Groups "Vim Geeks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim-geeks+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages