You're viewing a comment by zebra24 and its responses.

zebra24 Permalink
May 16, 2009, 00:07

foo bar baz quux muux woox
to get
“foo” “bar” “baz” “quux” “muux” “woox”

use this:

%s/\(\<\w\+\>\)/"\1"/g

substitute "any word" with "\1".

You can also use c to confirm:

%s/\(\<\w\+\>\)/"\1"/gc

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type first 3 letters of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.