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):
20
#61 - Jez Cope / @jezcope

04/27/2012 at 09:02PM

20
#62 - Yann Moisan / @YannMoisan

01/12/2013 at 09:24PM

20
#63 - Woojung Kim 김우중 / @_kimwz

07/16/2013 at 02:15AM

20
#64 - Daniel / @Daniel00288663

04/04/2017 at 10:06AM

20
#65 - RockerZZY / @rocker_zzy

07/04/2020 at 02:34AM

20
#66 - Elliot Schemmel / @regulated

10/30/2024 at 09:24PM

21
#67 - derp derp / @derp__

01/03/2012 at 08:00AM

21
#68 - Vasil Sakarov / @vsakarov

01/04/2012 at 07:40PM

21
#69 -  Ikhsan Maulana / @ixandidu

01/07/2012 at 05:13AM

21
#70 - Christopher Brew / @Seph1rothVII

01/09/2012 at 11:43PM

21
#71 - Omer Lachish / @rauchy

01/22/2012 at 06:52AM

21
#72 - Rob C. Grant / @rob_c_grant

01/28/2012 at 02:54AM

21
#73 - Thijs Brobbel / @tiesmaster

01/30/2012 at 02:24PM

21
#74 - Tesnorth / @Tesnorth

01/30/2012 at 10:58PM

21
#75 - Henri Wiechers / @hwiechers

02/07/2012 at 12:23PM

21
#76 - Kurt Gaastra / @KGaastra

02/13/2012 at 02:06AM

21
#77 - Grigoriy Glushko / @grinderrz

02/17/2012 at 10:08AM

21
#78 - Chris Penkett / @chrispenkett

04/02/2012 at 10:35PM

21
#79 - Chris Brown / @engineercyb

08/01/2012 at 06:05PM

22
#80 - James Cash / @jamesnvc

01/03/2012 at 04:11AM

22
#81 - Joe Nerdan / @JoeNerdan

01/05/2012 at 12:25AM

22
#82 - Von Pmg / @vonpmg

01/13/2012 at 02:32PM

22
#83 - じょんあば / @john_ababa

02/29/2012 at 08:08AM

23
#84 - twobit / @_2bt

01/03/2012 at 06:18PM

23
#85 - Lin Yangyang / @canoelyy

02/01/2012 at 04:35AM

23
#86 - Thomas GUILLORY / @thomasguillory

03/12/2014 at 12:45PM

24
#87 - Dave Smylie / @davesmylie

02/03/2012 at 03:40AM

24
#88 - cj / @cj01101

08/19/2013 at 10:48PM

24
#89 - Quota / @Quotad

02/20/2014 at 02:22PM

24
#90 - Gurukandhamoorthi / @Gurukandhamoor1

08/08/2017 at 05:17PM