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: 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!

Start file
SarCastic
End file
[Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc]

View Diff

1c1
< SarCastic
---
> [Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc]

Solutions by @Gurukandhamoor1:

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

39 active golfers, 67 entries

Solutions by @Gurukandhamoor1:
18
#20 - Gurukandhamoorthi / @Gurukandhamoor1

08/11/2017 at 03:34PM

27
#>39 - Gurukandhamoorthi / @Gurukandhamoor1

08/11/2017 at 03:28PM

38
#>39 - Gurukandhamoorthi / @Gurukandhamoor1

08/11/2017 at 03:32PM