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 4f026d9b50582b000100002e

Replacing some words

How fast could it be?

Start file
 4820 vim_golf  15   0 68772  11m  836 S  0.0  0.0   1:51.42 screen
 
4821 vim_golf  16   0 54012 2288  900 S  0.0  0.0   0:00.09 tcsh
 
4843 guestme   16   0 54360 2696  912 S  0.0  0.0   0:00.57 tcsh
 
6602 vim_golf  16   0  374m 305m 203m S  0.0  0.4   0:02.85 gdb
 
7599 vim_golf  16   0 53744 2000  864 S  0.0  0.0   0:00.63 tcsh
 
7833 vim_golf  15   0 54032 2072  884 S  0.0  0.0   0:00.08 tcsh
11872 vim_golf  16   0 96100 5476 3812 S  0.0  0.0   0:00.04 vim
17605 vim_golf  16   0 53832 2012  820 S  0.0  0.0   0:00.07 tcsh
19698 vim_golf  16   0 35788 1744 1112 S  0.0  0.0   0:12.49 sshd
19699 vim_golf  15   0 54228 2084  912 S  0.0  0.0   0:00.07 tcsh
19731 vim_golf  16   0 58416  992  756 S  0.0  0.0   0:00.00 screen
23891 vim_golf  16   0  5584 1412  832 R  0.0  0.0  13:24.71 top
29880 vim_golf  16   0 54196 2320  924 S  0.0  0.0   0:00.63 tcsh
30558 vim_golf  16   0 98808 7652 4440 S  0.0  0.0   0:02.34 vim
30559 vim_golf  16   0     0    0    0 Z  0.0  0.0   0:00.00 cscope <defunct>
31131 vim_golf  16   0 53868 2148  896 S  0.0  0.0   0:00.10 tcsh
End file
 4820 vim_golf  15   0 68772  11m  836 S  0.0  0.0   1:51.42 screen
 
4821 vim_golf  16   0 54012 2288  900 S  0.0  0.0   0:00.09 tcsh
 
4843 guestme   16   0 54360 2696  912 S  0.0  0.0   0:00.57 tcsh
 
6602 vim_golf  16   0  374m 305m 203m S  0.0  0.4   0:02.85 gdb
 
7599 vim_golf  16   0 53744 2000  864 S  0.0  0.0   0:00.63 tcsh
 
7833 vim_golf  15   0 54032 2072  884 S  0.0  0.0   0:00.08 tcsh
11872 vim_golf  16   0 96100 5476 3812 S  0.0  0.0   0:00.04 vim
17605 guestme   16   0 53832 2012  820 S  0.0  0.0   0:00.07 tcsh
19698 vim_golf  16   0 35788 1744 1112 S  0.0  0.0   0:12.49 sshd
19699 vim_golf  15   0 54228 2084  912 S  0.0  0.0   0:00.07 guestme
19731 vim_golf  16   0 58416  992  756 S  0.0  0.0   0:00.00 screen
23891 guestme   16   0  5584 1412  832 R  0.0  0.0  13:24.71 top
29880 vim_golf  16   0 54196 2320  924 S  0.0  0.0   0:00.63 tcsh
30558 vim_golf  16   0 98808 7652 4440 S  0.0  0.0   0:02.34 vim
30559 vim_golf  16   0     0    0    0 Z  0.0  0.0   0:00.00 cscope <defunct>
31131 vim_golf  16   0 53868 2148  896 S  0.0  0.0   0:00.10 tcsh

View Diff

8c8
< 17605 vim_golf  16   0 53832 2012  820 S  0.0  0.0   0:00.07 tcsh
---
> 17605 guestme   16   0 53832 2012  820 S  0.0  0.0   0:00.07 tcsh
10c10
< 19699 vim_golf  15   0 54228 2084  912 S  0.0  0.0   0:00.07 tcsh
---
> 19699 vim_golf  15   0 54228 2084  912 S  0.0  0.0   0:00.07 guestme
12c12
< 23891 vim_golf  16   0  5584 1412  832 R  0.0  0.0  13:24.71 top
---
> 23891 guestme   16   0  5584 1412  832 R  0.0  0.0  13:24.71 top

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 150 remaining solutions by signing in and submitting your own entry
#151 Thomas Hiron / @thomashiron - Score: 55 - 02/23/23 @ 15:00
:set rnu<CR>w7jcwguestme <Esc>4jciwguestme <Esc>2keE$ciwguestme<Esc>ZZ

0 comments


Created by: @Arton0306

151 active golfers, 428 entries

Leaderboard (lowest score wins):
17
#1 - Tim Chase / @gumnos

01/03/2012 at 12:40PM

17
#2 - Burkhard Zimmermann / @BurkZimm

01/06/2012 at 01:23PM

17
#3 - Oleg Roshupkin / @jjjahson

01/17/2012 at 05:59AM

17
#4 - Song Zheng / @songz

01/24/2012 at 09:40PM

17
#5 - Abdel Said / @abdelsaid

02/10/2012 at 11:35PM

17
#6 - Aaron Massey / @akmassey

03/02/2012 at 08:52PM

17
#7 - Hugh Carroll / @psaikido

03/06/2012 at 12:44AM

17
#8 - Federico Galassi / @federicogalassi

03/11/2012 at 06:02PM

17
#9 - deris / @deris0126

04/03/2012 at 12:23PM

17
#10 - Christian Helbling / @friendly_coder

04/05/2012 at 06:08PM

17
#11 - Nolen Royalty / @NolenRoyalty

04/10/2012 at 07:29AM

17
#12 - Mahefa Randimbisoa / @DotMG

04/20/2012 at 02:09PM

17
#13 - Sebastian Kusnier / @skusnier

05/05/2012 at 11:47AM

17
#14 - CoolWebTeacher / @coolwebteacher

05/10/2012 at 02:50PM

17
#15 - Urtica dioica / @udioica

05/15/2012 at 08:11PM

17
#16 - Sergey / @sav86

05/18/2012 at 03:50AM

17
#17 - Benoit Mortgat / @Benoit_Mortgat

06/06/2012 at 12:58PM

17
#18 - Conner McDaniel / @connermcd

09/18/2012 at 05:27AM

17
#19 - Marco Hinz / @_mhinz_

05/23/2013 at 12:08PM

17
#20 - Petro Тrouq / @zulolosi

07/03/2013 at 10:08PM

17
#21 - Bradd Szonye / @bszonye

07/15/2013 at 02:10AM

17
#22 - John Braxler / @braxler

04/30/2014 at 02:03PM

17
#23 - Haoxuan Yue / @yuehaoxuanar

07/19/2014 at 01:48PM

17
#24 - RobertT / @techrt2050

07/22/2014 at 05:25PM

17
#25 - Jon Krause / @jkrause314

03/16/2016 at 01:42AM

17
#26 - Turkey Man / @lvturkeyman

11/27/2017 at 04:51PM

17
#27 - BarbaJol / @drpproteus

01/11/2018 at 05:23PM

17
#28 - DHM / @DHM29978992

05/15/2018 at 02:49AM

17
#29 - GreenPinguin / @GreenPinguin2

05/31/2018 at 08:14AM

17
#30 - Jean George / @JeanGeo20504212

04/29/2022 at 08:01AM