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):
8
#121 - blabla zincou / @BZincou

03/28/2022 at 05:14PM

8
#122 - russellzhaomao / @russellzhaomao

05/25/2022 at 09:51AM

8
#123 - Alex / @AlexanderHeatl2

06/03/2022 at 09:23PM

9
#124 - h_east (トロッコ6個) / @h_east

09/15/2012 at 05:47PM

9
#125 - Ryan / @devops_yeoman

09/15/2012 at 06:21PM

9
#126 - Tim Chase / @gumnos

09/15/2012 at 06:22PM

9
#127 - Vimeo Tossitaouta / @VimeoT

09/16/2012 at 10:25AM

9
#128 - Kerson Hsiao / @KersonHsiao

09/16/2012 at 10:26AM

9
#129 - 無ん垢の叫び / @john_ababa

09/16/2012 at 12:58PM

9
#130 - Christian Nilsson / @klambycom

09/16/2012 at 01:28PM

9
#131 - Justin Love / @wondible

09/17/2012 at 04:05AM

9
#132 - Ben Lenarts / @benlenarts

09/17/2012 at 06:52PM

9
#133 - vansan / @VinceVansan

09/18/2012 at 09:39PM

9
#134 - Burkhard Zimmermann / @BurkZimm

09/21/2012 at 06:01AM

9
#135 - Peter Etheryte / @Etheryte

09/21/2012 at 06:06PM

9
#136 - wes / @_weslly

09/23/2012 at 06:37PM

9
#137 - Domon / @Domon

09/25/2012 at 09:13AM

9
#138 - Théophile Wallez / @twallez

09/26/2012 at 09:42PM

9
#139 - Gregor Schmidt / @schmidtwisser

09/27/2012 at 08:43AM

9
#140 - Carlos Falgueras García / @Fargue

10/03/2012 at 11:48PM

9
#141 - Glen / @Glen_S

10/06/2012 at 05:06AM

9
#142 - Andrea Francia / @andreafrancia

10/06/2012 at 03:50PM

9
#143 - Vim rocks / @vimrocks

10/06/2012 at 10:49PM

9
#144 - Édouard M'tou / @DouardM

10/08/2012 at 02:16PM

9
#145 - Javier Cervantes / @solojavier

10/08/2012 at 09:31PM

9
#146 - Nathan / @boysetsfrog

10/13/2012 at 02:08AM

9
#147 - Darcy Parker / @DarcyParker

10/15/2012 at 02:51PM

9
#148 - Stanisław / @Wasiutynski

10/19/2012 at 02:24PM

9
#149 - Miguel Sánchez / @miguelsr1987

10/24/2012 at 09:11PM

9
#150 - crater / @crater2150

10/25/2012 at 11:27AM