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):
27
#3031 - Julian / @ShumpEvenwood

11/25/2012 at 05:01PM

27
#3032 - John Bauer / @notjrbauer

12/24/2012 at 04:39PM

27
#3033 - Stephen Binns / @stephenbinns

09/08/2013 at 02:38PM

27
#3034 - Anthony / @Scatchell

11/07/2013 at 02:10PM

27
#3035 - Michael Haddad / @mrhaddad

01/25/2014 at 03:24AM

27
#3036 - Reese Wilson / @shinyvimgolf

02/02/2014 at 09:47PM

27
#3037 - Purnata / @purnata_org

03/20/2014 at 12:02PM

27
#3038 - stephencheng / @stephencheng

05/06/2014 at 12:06AM

27
#3039 - Bobby Matson / @bomatson

08/11/2014 at 05:28PM

27
#3040 - joshuavial / @joshuavial

08/16/2014 at 01:20AM

27
#3041 - Justin Knag / @justinknag

08/24/2014 at 07:17AM

27
#3042 - Polymorphic / @DissociationDev

12/29/2014 at 07:46PM

27
#3043 - Rafael Arellano / @rafa_arellano_

05/10/2015 at 07:08PM

27
#3044 - TETSU / @kaoru6strings

10/09/2015 at 12:01PM

27
#3045 - Vladimir Leskov / @vladimirlesk

12/21/2015 at 08:35PM

27
#3046 - Aurélien Hervé / @aurel_herve

04/19/2017 at 04:06PM

27
#3047 - R3s1stanc3 / @r3s1stanc3_

04/23/2017 at 08:25AM

27
#3048 - Brian Donovan / @eventualbuddha

11/29/2018 at 01:50AM

27
#3049 - The Joe / @computerjoe708

03/19/2019 at 07:08AM

27
#3050 - tuctdape / @tuctdape1

10/11/2019 at 03:10PM

27
#3051 - algonisian / @algonisian

01/18/2020 at 07:14AM

27
#3052 - Mircea Eftimescu / @meftimes

11/07/2021 at 08:49PM

28
#3053 - t0d0r / @t0d0r

12/28/2010 at 10:15PM

28
#3054 - Alpha Chen / @kejadlen

12/28/2010 at 10:48PM

28
#3055 - Phil / @phil30075

12/29/2010 at 05:59AM

28
#3056 - Andrew Scala / @agscala

12/29/2010 at 07:55AM

28
#3057 - Shahor / @Shahor

12/29/2010 at 05:17PM

28
#3058 - David Shaw / @shawthings

12/30/2010 at 10:11AM

28
#3059 - Eldon Alameda / @ealameda

01/09/2011 at 06:12PM

28
#3060 - Jeffrey Horn / @jrhorn424

01/18/2011 at 01:15AM