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):
34
#121 - Adrian Roston / @akroston

02/13/2012 at 12:56AM

34
#122 - Tobias Sjösten / @tobiassjosten

04/24/2012 at 03:26PM

34
#123 - Javier Cervantes / @solojavier

09/07/2012 at 10:16PM

34
#124 - RaylanFox / @RaylanFox

04/13/2020 at 03:54PM

35
#125 - Dan Huang / @yuzeh

02/16/2012 at 07:09PM

35
#126 - brett / @brettyukich

09/22/2013 at 02:37PM

37
#127 - Gareth Andrew / @f8code

01/25/2012 at 03:28AM

37
#128 - Ehren Murdick / @rubyprogrammer

03/27/2012 at 09:41PM

37
#129 - Makis Arsenis / @marsenis

05/11/2012 at 10:21AM

37
#130 - Christian Gaida / @chgaida

05/12/2012 at 06:25PM

37
#131 - Dave@Highgroove / @HighgrooveDave

05/22/2012 at 08:40PM

37
#132 - Walker Boh / @walker_boh

11/18/2015 at 09:46AM

38
#133 - Scott Schlesier / @sschlesier

02/21/2012 at 08:19AM

38
#134 - Phil Pirozhkov / @philpirj

04/24/2012 at 12:46PM

40
#135 - Petrik de Heus / @four54

01/14/2012 at 09:31PM

40
#136 - David Crawford / @minetowin

02/05/2012 at 12:57AM

40
#137 - Mark Zalar / @ZalarMark

04/24/2012 at 02:06PM

40
#138 - Brent Woo / @BrentPWoo

10/05/2018 at 04:46PM

42
#139 - peter reisinger / @PeterReisinger

01/03/2012 at 05:36PM

43
#140 - François VANTOMME / @akarzim

02/03/2012 at 10:02AM

44
#141 - neerajsharma / @neerajsharma

01/25/2012 at 09:12AM

45
#142 - ümit kablan / @udslk

03/09/2012 at 04:58PM

45
#143 - nickGPT / @nickandbro

08/28/2024 at 10:21PM

47
#144 - Alain Gilbert / @alain_gilbert

01/03/2012 at 03:11AM

47
#145 - Patrick Klingemann / @pklingem

02/03/2012 at 11:05PM

47
#146 - Adrien Friggeri / @qelf

02/25/2012 at 04:45AM

48
#147 - ShikChen / @ShikChen

01/06/2012 at 01:48AM

48
#148 - Bernhard Urban-Forster / @lewurm

02/21/2012 at 06:01PM

53
#149 - Patrik Antonsson / @pantonsson

01/05/2012 at 05:51AM

53
#150 - Andrew Ogden / @ScruffyJanitor1

01/31/2012 at 02:59AM