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):
23
#2821 - Maxim / @44calibri

10/14/2015 at 09:12PM

23
#2822 - Paul Hornsey / @MadDogNinja

11/02/2015 at 10:26AM

23
#2823 - Daniil Nguen / @DNguen

11/24/2015 at 09:02PM

23
#2824 - Jakob Schöttl / @jschoettl

12/31/2015 at 08:04AM

23
#2825 - Pratap Koritala / @pratap_koritala

02/19/2016 at 07:35AM

23
#2826 - Rob Ert / @robrunner888

05/09/2016 at 08:44PM

23
#2827 - Richard Laub / @RWLaub91

08/20/2016 at 10:33PM

23
#2828 - Michał Kordas / @michal_kordas

09/17/2016 at 09:43PM

23
#2829 - Enrico Roncaglia / @Ronca_cp

10/18/2016 at 09:39AM

23
#2830 - Mattias GABRIEL / @matou008

12/20/2016 at 09:56PM

23
#2831 - 박명호 / @cruck103

02/24/2017 at 12:31PM

23
#2832 - David Lignell / @davidlignell

03/02/2017 at 12:08AM

23
#2833 - Toon / @toonvdm

03/04/2017 at 02:58PM

23
#2834 - Paul Page / @theRealPaulPage

03/20/2018 at 06:48PM

23
#2835 - teeheewa / @Heewa

03/29/2018 at 04:25PM

23
#2836 - drumstix576 / @drumstix576

05/26/2018 at 10:39PM

23
#2837 - mass / @mass256

07/06/2018 at 07:43AM

23
#2838 - Pingtermasmoo / @pingtermasmoo

09/13/2018 at 08:17AM

23
#2839 - Youm / @Youmslinky

10/30/2018 at 11:33PM

23
#2840 - Jurica / @Jurica34581259

11/14/2018 at 11:41PM

23
#2841 - 张君杰 / @MYHQlDfwOuLvlGf

12/03/2018 at 03:25AM

23
#2842 - alaric27 / @alaric272

01/08/2019 at 10:07AM

23
#2843 - Azyl / @aa_knifejaw

01/30/2019 at 01:42PM

23
#2844 - お薬手帳 / @iW4Wz6PpCiqyGqH

04/15/2019 at 09:00AM

23
#2845 - Hao-Ting Wang / @HaoTingW713

06/20/2019 at 02:57PM

23
#2846 - Wicked Contender / @ContenderWicked

07/15/2019 at 08:05PM

23
#2847 - 0xNinja / @0x_Ninja

10/25/2019 at 08:36AM

23
#2848 - Kaustubh Murumkar / @k_austub_h

09/01/2020 at 02:20PM

23
#2849 - abhijeet patil / @abhijeetptl5

09/03/2020 at 02:36PM

23
#2850 - Cong / @Cong49294323

10/06/2020 at 11:10AM