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):
25
#2941 - Volodymyr L / @Vladymyr_L

11/06/2021 at 07:03PM

26
#2942 - Dominick LoBraico / @pygatea

12/29/2010 at 03:12AM

26
#2943 - ivarv / @ivarv

12/29/2010 at 07:35AM

26
#2944 - jonlorusso / @jonlorusso

12/29/2010 at 07:37PM

26
#2945 - Rafael Ferreira / @rafaeldff

12/29/2010 at 08:22PM

26
#2946 - LumberCoder / @LuRsT

12/29/2010 at 08:55PM

26
#2947 - Rodolphe Marques / @rodmar_

12/30/2010 at 04:49PM

26
#2948 - solsTiCe d'Hiver / @solstice_dhiver

12/30/2010 at 06:10PM

26
#2949 - Christoffer Lejdborg / @Lejdborg

01/09/2011 at 12:58PM

26
#2950 - Kirill / @mokevnin

03/03/2011 at 04:58PM

26
#2951 - Takeshi Yabe / @tyabe

04/24/2011 at 07:47AM

26
#2952 - Brendan Taylor / @beect

04/26/2011 at 09:07PM

26
#2953 - Mikhail Korepanov / @PanyaKor

06/12/2011 at 11:53PM

26
#2954 - Tof / @Tof23

06/17/2011 at 05:05AM

26
#2955 - Ethan / @ethanmiller

01/31/2012 at 12:15AM

26
#2956 - Mike Korcynski / @mkorcy

02/06/2012 at 05:51PM

26
#2957 - João Veiga / @jcsvveiga

02/12/2012 at 11:56AM

26
#2958 - Howard / @h0w412d

07/16/2012 at 02:49AM

26
#2959 - Kevin McGladdery / @run_kmc

08/12/2012 at 08:22PM

26
#2960 - ') DROP TABLE user; / @_ckafi

08/19/2012 at 01:55PM

26
#2961 - Filip / @fylyps_tw

08/28/2012 at 07:44AM

26
#2962 - jasonkeene / @jasonkeene

11/10/2012 at 01:48AM

26
#2963 - Koko / @Koko72525913

01/18/2013 at 02:13PM

26
#2964 - Koen Bos / @koenbos

03/23/2013 at 12:50PM

26
#2965 - Aaron Josephs / @aaronjosephs1

05/01/2013 at 08:14PM

26
#2966 - Trevor Burn / @digitrev

05/07/2013 at 06:12PM

26
#2967 - Laurent Eschenauer / @eschnou

05/23/2013 at 11:57AM

26
#2968 - Todd Branchflower / @toddbranch

07/17/2013 at 12:00AM

26
#2969 - Fred / @fredlee

03/01/2014 at 04:45PM

26
#2970 - Birkir Ólafsson / @Birkirlafsson

03/19/2014 at 11:20AM