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 5054baaafa0b390002000029

SFD-ROC: vimvimvim

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

Start file
vimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvim
End file
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim
vim

View Diff

1c1,26
< vimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvimvim
---
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim
> vim

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 423 remaining solutions by signing in and submitting your own entry
#424 Joshua Travis / @jktravis - Score: 27 - 11/11/12 @ 01:44
:%s/\(m\)\<BS>/\1\r/g<CR>dd:w<CR>:q<CR>

0 comments


Created by: @Remy_D

424 active golfers, 1508 entries

Leaderboard (lowest score wins):
12
#271 - Kenneth Waters / @gen_witt

12/04/2012 at 03:28AM

12
#272 - Tetsuya Matsuyama / @m_tetsuya

12/30/2012 at 01:34PM

12
#273 - Jeremiah / @jeremiahishere

02/05/2013 at 06:09PM

12
#274 - mwcz / @mwcz

11/01/2013 at 06:01PM

12
#275 - John Gray Cole / @johngraycole

12/25/2013 at 02:35PM

12
#276 - Robert Siemieniec / @rsiemieniec

03/05/2014 at 10:28AM

12
#277 - Greg / @developergreg

09/08/2014 at 02:40AM

12
#278 - Malte R / @maltoe

11/10/2014 at 04:09PM

12
#279 - SilentFl / @Silent_Fl

01/27/2015 at 11:22AM

12
#280 - Kirill Cherkashin / @kirjs

09/22/2015 at 02:58PM

12
#281 - Bhatta Sushmith / @bsushmith

08/26/2017 at 04:40AM

12
#282 - Ivo Blöchliger / @aigledesalpes

08/14/2019 at 06:23PM

13
#283 - Matt Boehm / @mattboehm

11/08/2012 at 01:57AM

13
#284 - Davidovich / @IamDavidovich

11/08/2012 at 02:00AM

13
#285 - Nick Reynolds / @ndreynolds

12/18/2012 at 09:06PM

13
#286 - Amy / @imightbeAmy

02/17/2013 at 04:46AM

13
#287 - Steven Herbst / @transistorman

02/25/2013 at 01:48AM

13
#288 - engy / @engydmw

09/03/2013 at 08:44PM

13
#289 - Larry Boltovskoi / @larrybolt

12/08/2013 at 03:42PM

13
#290 - August / @DailyShowRating

02/19/2014 at 01:13AM

13
#291 - Patrick Oscity / @der_padde

03/25/2014 at 05:22PM

13
#292 - Alexander Putilin / @SashaPutilin

03/16/2015 at 11:01PM

13
#293 - Wilmer Bandres / @WilmerBandres

12/26/2015 at 04:59PM

13
#294 - amu uma / @amuumaamuuma

01/12/2016 at 05:53AM

13
#295 - Joel Gallant / @joelg236

11/25/2016 at 02:39PM

13
#296 - BlackCap / @BlackCapCoder

11/30/2016 at 01:30PM

13
#297 - Solomon / @Trugbildjaeger

04/04/2017 at 02:54PM

13
#298 - TG Weiterleiter / @0xcofebabe1

05/14/2018 at 09:35PM

13
#299 - x03n046 / @x03n046

05/13/2022 at 04:33AM

14
#300 - Ravi S Sinha / @ambidextrousTx

09/16/2012 at 01:36AM