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 587e0a9d5944680006000007

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

I bumped into this in a dailywtf code: 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!

Start file
End file

View Diff

< SarCastic
> [Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc]

Solutions by @voyeg3r:

Unlock 1 remaining solutions by signing in and submitting your own entry
Created by: @kmarc

33 active golfers, 55 entries

Solutions by @voyeg3r:
#30 - Sergio / @voyeg3r

01/17/2017 at 08:14PM