Search Results for: vimgolf

My Solution to the Latest VimGolf Challenge

Readers contributed many good solutions to this challenge. The mundane solution involves using query-replace-regexp with regular expressions \(w+\) → (\1) for 14 keystrokes or, if you’re a bit more clever w+ → (\&) for 10. Actually, I have electric-pair-mode enabled … Continue reading

Posted in General | Tagged | 2 Comments

A VimGolf in Emacs Challenge

I’ve been obsessing and writing about the continuing NSA scandal and as a result we haven’t had any fun with VimGolf for a while. Just in case you’re as rusty as I am, here’s an easy one. Starting with one … Continue reading

Posted in General | Tagged | 13 Comments

VimGolf in Emacs

It’s been a while since we Emacs enthusiasts have locked horns with the users of that other editor. Here’s a simple VimGolf challenge to warm us up. Starting with the buffer one two three end up with (one) (two) (three) … Continue reading

Posted in General | Tagged | 22 Comments

VimGolf In Emacs: A Numbered List

The conventional wisdom is that Vim is much more efficient—at least in keystrokes—than Emacs. In working the various VimGolf challenges and reading (or watching) other peoples’ solutions I’ve found that that’s often true but not always. A non-trivial part of … Continue reading

Posted in General | Tagged | 4 Comments

VimGolf in Emacs: Enumerate Words

Here’s a pretty hard challenge—at least I found it challenging. Given this Lorem Ipsum Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero … Continue reading

Posted in General | Tagged | 14 Comments

A Word Frequency VimGolf in Emacs Challenge

Here’s an interesting VimGolf challenge that nicely demonstrates the power of CUA selection mode. Given the word frequency chart align here the 56271872 of 33950064 and 29944184 to 25956096 in 17420636 I 11764797 that 11073318 was 10078245 his 8799755 he … Continue reading

Posted in General | Tagged | 3 Comments

A Groups Magic VimGolf in Emacs Challenge

Here’s a simple ViGolf challenge that has a simple solution in Emacs. Given (a) (abc) (abcd) (123456) turn it into ___ _____ ______ ________ That is, replace everything in the sexpr with an underscore. This is really easy with Emacs … Continue reading

Posted in General | Tagged | Leave a comment

A Real World VimGolf Challenge

In my CUA Mode Video post, I mentioned that the pointer to the video came from a comment to one of the posts in the Google+ Emacs Community. That post asks for advice on the best way of changing a[0] … Continue reading

Posted in General | Tagged | 6 Comments

Mickey’s VimGolf 4

Mickey’s getting into VimGolf mode with another solution to a VimGolf Challenge. I was looking at this same challenge for a possible post but Mickey beat me too it and with a very nice strategy. The challenge is to take … Continue reading

Posted in General | Tagged | 3 Comments

An Easy VimGolf in Emacs Challenge

Here’s an interesting VimGolf challenge. As they say in the challenge, it’s a simple problem but they’re looking for interesting solutions. The challenge is to turn this app.config[‘CHALLENGE_FOLDER’] = SOLUTIONS_FOLDER app.config[‘SOLUTIONS_FOLDER’] = CHALLENGE_FOLDER into this app.config[‘CHALLENGE_FOLDER’] = CHALLENGE_FOLDER app.config[‘SOLUTIONS_FOLDER’] = … Continue reading

Posted in General | Tagged | 8 Comments