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
#2911 - fuck you / @jerkassholeface

01/15/2011 at 01:04AM

25
#2912 - Masashi Iizuka / @uochan

04/03/2011 at 02:33AM

25
#2913 - kevin rutherford / @kevinrutherford

04/27/2011 at 06:32PM

25
#2914 - Alberto Lopez / @albertolrubio

05/27/2011 at 05:15PM

25
#2915 - Brian Cooke / @bricooke

06/15/2011 at 12:24PM

25
#2916 - Matthew Cupps / @matthewcupps

12/21/2011 at 09:49PM

25
#2917 - Jay Kline / @JayKline2

02/03/2012 at 03:58AM

25
#2918 - Alfredo Di Napoli / @alfredodinapoli

04/28/2012 at 04:30PM

25
#2919 - Rey Wright / @reywright

11/28/2012 at 02:14AM

25
#2920 - nick kov / @nick_kov

12/17/2012 at 04:47AM

25
#2921 - Derek Salerno / @DerekSalerno

05/26/2013 at 08:04PM

25
#2922 - michael / @pfista

07/02/2013 at 02:30PM

25
#2923 - Colin Garriga-Sala√ľn / @cgarrigasalaun

09/17/2013 at 01:07PM

25
#2924 - Ade Duke / @adeduke

09/28/2013 at 05:48PM

25
#2925 - ZLZC / @lervzc

10/07/2013 at 04:55PM

25
#2926 - Zenk Alia / @zenkalia

10/17/2013 at 12:34AM

25
#2927 - sup / @xixor1

10/22/2013 at 12:13AM

25
#2928 - Matt Brown / @Gowabash

01/30/2014 at 01:11AM

25
#2929 - Kerem Bozdas / @krmbzds

02/03/2014 at 05:20AM

25
#2930 - Basant Mathew / @BasantMathew

03/20/2014 at 12:07PM

25
#2931 - huehuebrbr / @www_br

07/26/2014 at 10:46PM

25
#2932 - No Holiness / @NoHoliness

08/14/2014 at 06:58PM

25
#2933 - Niklas / @AlberteWieImmer

06/01/2015 at 11:33PM

25
#2934 - Joshie Simmons / @JoshieSimmons

06/23/2015 at 07:18PM

25
#2935 - Steffan Voges / @svoges94

07/02/2015 at 10:48PM

25
#2936 - Jack Mooney / @jmooney7

12/31/2017 at 11:23PM

25
#2937 - Amanj Sherwany / @amanjpro

03/04/2018 at 08:56PM

25
#2938 - Walerian Sobczak / @walerian777

05/06/2018 at 10:22AM

25
#2939 - Ori Bernstein / @oribernstein

02/12/2020 at 06:20PM

25
#2940 - Fukunishi Hashitoku / @FHashitoku

05/08/2020 at 03:05PM