[Cialug] Fwd: Ebook Deal/Day: Save 50% - The vi and Vim vs. Emacs Shootout
Todd E Thomas
todd_dsm at ssiresults.com
Mon Nov 7 14:57:06 CST 2011
On smaller systems, like when you ssh into a small network appliance, vi
is always there. If you have to know one, vi is the one to know.
Also, just found and started using Snipmate for vim.
Video
<http://vimeo.com/3535418?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+xlight_allfeed+%28xLight%E7%9A%84%E5%A4%A7%E6%9D%82%E7%83%A9%29>
1m 40s. It's pretty cool.
To Install:
1) Make a home for VAM:
$ mkidr -p .vim/vim-addons; cd .vim/vim-addons
2) Download VAM <https://github.com/MarcWeber/vim-addon-manager> (Vim
Addon Manager)
$ git clone https://github.com/MarcWeber/vim-addon-manager
3) Create .vimrc if you don't have one.
I just copied the fedora vimrc template to my home directory and made a
few modifications.
4) Configure VAM to pull down snipmate
<https://github.com/MarcWeber/snipmate.vim> and all dependencies.
After reading the instructions, it basically boils down to adding this
to the bottom of .vimrc:
===
" Enable VAM: vim-addon-manager
set runtimepath+=~/.vim/vim-addons/vim-addon-manager
fun SetupVAM()
let vam_install_path = expand('$HOME') . '/.vim/vim-addons'
"exec 'set runtimepath+='.vam_install_path.'/vim-addon-manager'
if !isdirectory(vam_install_path.'/vim-addon-manager') && 1 ==
confirm("git clone VAM into ".vam_install_path."?","&Y\n&N")
call confirm("Don't forget to check documentation in
(README*,doc/*.txt).")
exec '!p='.shellescape(vam_install_path).';
mkdir -p "$p" && cd "$p" && git clone --depth 1
git://github.com/MarcWeber/vim-addon-manager.git'
endif
call
vam#ActivateAddons(["vim-addon-mw-utils","tlib","snipmate","snipmate-snippets","FindInNERDTree"],
{'auto_install' : 0})
endf
call SetupVAM()
===
This is the Line is what tells VAM to download which packages:
"call
vam#ActivateAddons(["vim-addon-mw-utils","tlib","snipmate","snipmate-snippets","FindInNERDTree"],
{'auto_install' : 0})"
VAM auto-checks Git Hub for new versions of these packages periodically.
You can't tell though, it's snappy.
5) Open vim and begin work.
It's pretty easy, it supports a lot of languages, and it's only for vim.
Happy scripting!
Talk to you soon,
Todd E Thomas
C: 515.778.6913
"It's a frail music knits the world together."
-Robert Dana
On 11/07/2011 08:01 AM, Tim Wilson wrote:
> Of course vim will win. They didn't make it a fair fight. The emacs
> book is more expensive. Only those true die-hard emacs fans will pay
> the premium price.
>
> Emacs gets a bad rap for loading slowly. Sure, if you're trying to
> launch the space shuttle from it, it does take a long time. But at
> least you don't have to waste time getting in and out of command mode
> just to edit a text file.
>
> There are times for both. I usually use emacs, but there are times
> where I use vi/vim. My emacs does load a lot of stuff, so that I can
> do a lot more. So in cases where I need a quick edit, I'll use vi.
> But I prefer emacs for long edit sessions. I can do WAY more (and
> faster) in my emacs setup than I can do in my vi setup.
>
> On Mon, Nov 7, 2011 at 7:21 AM, Josh More <jmore at starmind.org
> <mailto:jmore at starmind.org>> wrote:
>
> Vim will win. It'll be able to shoot Emacs before Emacs has
> finished loading.
>
> Then, in it's dying breaths, Emacs will attempt to shoot back,
> make a typo and accidentally author a network scanner.
>
> -Josh
>
> On Mon, Nov 7, 2011 at 7:18 AM, Matthew Nuzum <newz at bearfruit.org
> <mailto:newz at bearfruit.org>> wrote:
>
> Which will win?
>
> ---------- Forwarded message ----------
> From: *O'Reilly Media* <oreilly at post.oreilly.com
> <mailto:oreilly at post.oreilly.com>>
> Date: Mon, Nov 7, 2011 at 6:32 AM
> Subject: Ebook Deal/Day: Save 50% - The vi and Vim vs. Emacs
> Shootout
> To: newz at bearfruit.org <mailto:newz at bearfruit.org>
>
>
> View in browser
> <http://post.oreilly.com/rd/9z1z4mb530rdn411ffgmop7ktoam7f98eia5sgi482o>.
>
> O'Reilly Books and Videos
> <http://post.oreilly.com/rd/9z1zc7dcihc2332u5npa9aj40j5emqaruce3l29jk3g>
>
>
> Save 50% - Ebook Deal of the Day
>
> vi and Vim vs. Emacs Shootout
> Today Only You Can Cast a Vote for Your Favorite
>
> Hello Matthew, The realization that Vim just turned 20
> <http://post.oreilly.com/rd/9z1zjm7nu0bq14mbdmh93ntb7h2bvs7d4es9ve9ujl0>
> reminded us of the passion developers have for their editor of
> choice. We've published books about the two most popular,
> Emacs and Vim, and love them both. Today only you can cast a
> vote for your favorite
> <http://post.oreilly.com/rd/9z1zoshf2ir6aabsgqka64ulqpb8tf6h32iv1plp180>,
> and take advantage of a special offer. We'll report on the
> results next week, both of your votes, and the sales
> percentage for books on the respective editors.
>
> Ebooks from oreilly.com
> <http://post.oreilly.com/rd/9z1zjdmqq57la2e7afuf4u6fi7n9ti8ui3nb2rpbp50>
> are DRM-free. You get free lifetime access, multiple file
> formats, free updates.
>
> ------------------------------------------------------------------------
> Learning the vi and Vim Editors
> <http://post.oreilly.com/rd/9z1zlb74r1c6ku518obffb79ak4g1eai2dj4qtgqf18>
>
> *Learning the vi and Vim Editors
> <http://post.oreilly.com/rd/9z1z39pk1mafqu7e7tsfocq6bsdu4t8oj7eerglrvto>*
> Was: $27.99
> *Now: $13.99
> (Save 50%) *
> Add to Cart
> <http://post.oreilly.com/rd/9z1zk46ktsompvct79ji2p798b490kloo7r7n9uvh6g>
>
>
>
> Versus
> Learning GNU Emacs
> <http://post.oreilly.com/rd/9z1z5dr986tgncmilgersp1qnq65rsomr15g19ti4jg>
>
> *Learning GNU Emacs
> <http://post.oreilly.com/rd/9z1zdsu61iqrcd6tfpk313vu3l0b9664662c65dtje8>*
> Was: $35.99
> *Now: $17.99
> (Save 50%) *
> Add to Cart
> <http://post.oreilly.com/rd/9z1zgl5dveo43vahce0632qf8bpr7v5ql6907doiasg>
>
>
> I love them both. Get them for just $31.98 Add to Cart
> <http://post.oreilly.com/rd/9z1zdefjm5ljgf6dpbh1ju3lscirjd3fclq7s1scis8>
>
>
> oreilly.com
> <http://post.oreilly.com/rd/9z1z5nop4mgugjktpoa0c3ccdre7cbmsme9seqtjir8>
>
>
> You are receiving this message because you purchased directly
> from O'Reilly or registered titles. Keep up on all things
> O'Reilly by signing up for our *email alerts and newsletters*
> <http://post.oreilly.com/rd/9z1z0va6ttqoktp2nhm54usojqiu23eh043tdbld2o0>.
>
> To ensure delivery to your inbox (not bulk or junk folders),
> please add *oreilly at post.oreilly.com*
> <mailto:oreilly at post.oreilly.com> to your address book.
>
> To unsubscribe from all email announcements from O'Reilly,
> click here.
> <http://post.oreilly.com/rd/9z1z1dk5e68ij0ad44gut109m56vnnc7i0e11kmqqfg>
>
> O'Reilly Media, Inc. 1005 Gravenstein Highway North,
> Sebastopol, CA 95472 (707) 827-7000 <tel:%28707%29%20827-7000>
>
>
>
>
>
> --
> Matthew Nuzum
> newz2000 on freenode, skype, linkedin and twitter
>
> ? You're never fully dressed without a smile! ?
>
>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org <mailto:Cialug at cialug.org>
> http://cialug.org/mailman/listinfo/cialug
>
>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org <mailto:Cialug at cialug.org>
> http://cialug.org/mailman/listinfo/cialug
>
>
>
>
> --
> Tim
> Required reading: http://bccplease.com/
>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cialug.org/pipermail/cialug/attachments/20111107/0e0157c9/attachment-0001.html>
More information about the Cialug
mailing list