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):
26
#2971 - Jay Phillips / @rocketman8473

06/23/2014 at 04:53AM

26
#2972 - Crazy Wizdom / @crazywizdom

06/24/2014 at 08:47PM

26
#2973 - Otherwise / @Otherwise15

06/26/2014 at 07:43PM

26
#2974 - Johnny Goodnow / @afragilemachine

07/15/2014 at 07:46AM

26
#2975 - Enrico Carlesso / @carlesso

09/23/2014 at 06:39PM

26
#2976 - F Prades Illanes / @fprades

10/23/2014 at 01:38PM

26
#2977 - Aaron Whittington / @whittaaron

01/16/2015 at 02:07AM

26
#2978 - Dmitry Zudochkin / @zudochkin

02/17/2015 at 08:22PM

26
#2979 - Jeffrey Gu / @Jeffrey_Gu

03/17/2015 at 05:33PM

26
#2980 - Chris Trott / @TwoCentStudios

04/08/2015 at 02:46PM

26
#2981 - Rijnard van Tonder / @rvtond

04/27/2015 at 02:10AM

26
#2982 - Günther mit Haar / @Wutzara

06/15/2015 at 04:54PM

26
#2983 - Teemu Okkonen / @TeemuOkkonen

07/07/2015 at 05:51PM

26
#2984 - Rory McGloin / @RoryMcGloin

07/24/2015 at 06:18PM

26
#2985 - Vimgolf Lucas / @vimgolf_lucas

07/26/2015 at 12:13AM

26
#2986 - Gerald Tilma / @GeraldTilma

10/17/2015 at 04:10AM

26
#2987 - Denys Zadorozhnyi / @greenden

06/15/2016 at 01:20PM

26
#2988 - Ruslan Ismagilov / @is_ruslan

10/15/2016 at 01:45PM

26
#2989 - Ilya Ezepov / @iezepov

12/03/2016 at 07:15PM

26
#2990 - chu zui / @chuzui7

05/15/2017 at 11:57AM

26
#2991 - Alan Zimmerman / @alan_zimm

12/02/2017 at 09:49AM

26
#2992 - Spacesh1p / @spacesh1pdev

01/04/2018 at 08:28AM

26
#2993 - Khoa Anh Nguyen / @ca0932

05/22/2018 at 02:53AM

26
#2994 - Priesemut / @Priesemut3

06/19/2018 at 07:33AM

26
#2995 - Šimon Mandlík / @simon_mandlik

06/28/2018 at 07:15PM

26
#2996 - Kevin Cooler / @KevinCooler

08/10/2018 at 02:16AM

26
#2997 - testingvimgolf / @testingvimgolf

08/15/2018 at 04:07AM

26
#2998 - Eleks Aggr / @AggrEleks

10/22/2019 at 01:14PM

26
#2999 - Sjoerd Thijsse / @SjoerdThijsse

12/23/2019 at 11:27PM

26
#3000 - Sanchez / @r0756108

02/18/2020 at 07:40PM