Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put [challenge ID]

Played Challenges

Rural Post - 1943 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 6
prepend * to every non-blank line - 4768 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 6
ssh config skills - 72 entries

Parse output from `kuebctl get no -o wide` into an .ssh/config file!

  • Best score: 41
  • Best player score: 74
  • Number of attempts: 1

Contributed Challenges

Turn a ninja to case-insensitive [Nn][Ii][Nn][Jj][Aa] regexp! - 41 entries

I bumped into this in a dailywtf code: http://pastebin.com/QApa5ycS I didn't want to translate a string whenever I wanted to be [Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc] on slack, so I figured a script (python, sed, whatever) would be helpful. Well, or a few vim keystroke!

Mark Korondi
Twitter:

Cloud & DevOps expert - Cyber Protection | Software Defined Storage | Security

entered into 3 challenges

contributed 1 challenges