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

Simple text editing with Vim

Make the pairs of lines match up by making each second line same as first

Start file
Make the pairs of lines match up by making each second line same as first:

# Appending text:
The name "Vim" is an acronym for "Vi IMproved"
The name "Vim" is an acronym for

# Editing text:
Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga
Trivia: Vim is a text editor released by Bram Moolenaar in 1991 for the Amiga

# Deleting text:
Vim has a vi compatibility mode
Vim has a vi compatibility mode but when not in this mode Vim has many enhancements over vi
End file
Make the pairs of lines match up by making each second line same as first:

# Appending text:
The name "Vim" is an acronym for "Vi IMproved"
The name "Vim" is an acronym for "Vi IMproved"

# Editing text:
Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga
Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga

# Deleting text:
Vim has a vi compatibility mode
Vim has a vi compatibility mode

View Diff

5c5
< The name "Vim" is an acronym for
---
> The name "Vim" is an acronym for "Vi IMproved"
9c9
< Trivia: Vim is a text editor released by Bram Moolenaar in 1991 for the Amiga
---
> Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga
13c13
< Vim has a vi compatibility mode but when not in this mode Vim has many enhancements over vi
---
> Vim has a vi compatibility mode

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 3417 remaining solutions by signing in and submitting your own entry
#3418 M. C. / @mczerkawski - Score: 918 - 12/29/10 @ 09:07
k<Down><Down><Down><Right><Right><Right><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right> <Left><Up><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>i<Right> "Vi IMproved"<Down><Down><Down><Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><Up><Right><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Down><Left><BS><BS><BS><BS><BS><BS><BS><Del><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Down><Esc><Right><Down><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Up><Up><Up><Up><Left><Left><Left><Left><Left><Left><Left><Left><Left>o<BS><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>i<BS>originally <Right><Right><Right><Right><Esc>:w<CR>:wq<CR>

0 comments


Created by: @igrigorik

3418 active golfers, 11657 entries

Leaderboard (lowest score wins):
30
#3151 - Alberto Sadde / @titicox

11/01/2013 at 11:36PM

30
#3152 - Erik Gävert / @ErikGavert

01/28/2014 at 06:15PM

30
#3153 - Roy Vim / @RoyVim

09/24/2014 at 06:07PM

30
#3154 - Akira Sasaki / @hikomimo

11/22/2014 at 08:00AM

30
#3155 - iNaKoll / @iNaKoll

05/07/2016 at 05:48PM

30
#3156 - Joe Heth / @jheth

10/05/2016 at 12:43AM

30
#3157 - Johannes Ruder / @JruderRuder

10/04/2019 at 06:33PM

30
#3158 - dotvimrc / @dotvimrc1

06/20/2020 at 05:27PM

30
#3159 - 𝗙 ▲ 𝗥 𝗜 𝗦 𝗦 / @APsockes

09/25/2020 at 11:39PM

30
#3160 - roy twt / @roytwt1

10/18/2020 at 03:56PM

30
#3161 - said / @said13664960

12/16/2020 at 12:35PM

30
#3162 - cowai / @cowai

01/07/2021 at 03:15PM

30
#3163 - Jianfeng / @Jianfen22425058

01/28/2021 at 07:00AM

30
#3164 - Patrick Gates / @patrickgates

06/14/2021 at 11:44PM

31
#3165 - Josh Davey / @joshuadavey

12/28/2010 at 08:53PM

31
#3166 - DJ Adams / @qmacro

12/29/2010 at 05:19PM

31
#3167 - leprechaun / @irishlinuxgeek

12/29/2010 at 07:04PM

31
#3168 - surya gaddipati / @suryagaddipati

06/23/2011 at 09:22PM

31
#3169 - Marco / @xmarkoz

06/28/2012 at 12:14AM

31
#3170 - Gabriel Isenberg / @Ferong

04/15/2013 at 05:47AM

31
#3171 - Brendan / @btobolaski

11/05/2013 at 08:02PM

31
#3172 - Matt Vague / @mattvague

11/30/2013 at 11:10PM

31
#3173 - Brian Peiris / @brianpeiris

12/28/2013 at 04:12AM

31
#3174 - Tony Fischetti / @tonyfischetti

02/25/2014 at 09:16PM

31
#3175 - Andreas Adelsberger / @punknroll

03/04/2014 at 08:38AM

31
#3176 - 郭景維 / @wayne77551

06/01/2014 at 08:44AM

31
#3177 - Johannes Rubenz / @j_rubenz

11/06/2014 at 03:31PM

31
#3178 - Igor Potceluev / @4eppelin

04/01/2015 at 12:10PM

31
#3179 - EvLSnoopY / @EvLSnoopY

07/25/2016 at 03:10AM

31
#3180 - 梁(Liang リャン) / @starduliang

03/01/2020 at 12:53PM