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 3819 remaining solutions by signing in and submitting your own entry
#3820 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

3820 active golfers, 13307 entries

Leaderboard (lowest score wins):
13
#691 - s yakisoba / @s_syakisoba

09/02/2023 at 02:55AM

13
#692 - Monkey Boy / @monkey29089

09/25/2023 at 01:50PM

13
#693 - scpchicken / @scpchick

10/18/2023 at 06:29AM

13
#694 - YaaO - you are an original / @RolfNyffenegger

10/20/2023 at 01:13PM

13
#695 - FilipRazek / @FilipRazek

11/11/2023 at 10:19AM

13
#696 - Chris Atanasian / @chrisatanasian

11/16/2023 at 05:24AM

13
#697 - weixiaobaoL / @weixiaobaoL

01/03/2024 at 03:27AM

13
#698 - satake0916 / @satake0916

01/04/2024 at 11:23AM

13
#699 - 5S-MOHAMED-SHABAIK / @5S-MOHAMED-SHABAIK

01/15/2024 at 08:52AM

13
#700 - 路磨平 / @lumoping

01/25/2024 at 07:34AM

13
#701 - k84d / @k84d

01/30/2024 at 10:20AM

13
#702 - Simo Kivistö / @kivissimo

02/06/2024 at 06:37AM

13
#703 - Moritz Reiter / @moritzreiter

04/09/2024 at 11:49AM

13
#704 - xiaoao1024 / @xiaoao1024

04/24/2024 at 09:31AM

13
#705 - Eugene Mondkar / @EugeneMondkar

05/06/2024 at 08:07AM

13
#706 - Leemuns / @Leemuns

05/06/2024 at 08:51AM

13
#707 - ck961018 / @ck961018

05/08/2024 at 11:04AM

13
#708 - Aly Thobani / @alythobani

05/24/2024 at 07:13PM

13
#709 - shannon / @ShannonGu1031

05/25/2024 at 04:22PM

13
#710 - Jeff Arese / @jeffarese

05/27/2024 at 06:34AM

13
#711 - Jack Barry / @Jack-Barry

06/06/2024 at 11:01PM

13
#712 - imperatormatthias / @imperatormatthias

06/26/2024 at 03:16AM

13
#713 - Petro Mudrievskyj / @petemud

06/27/2024 at 10:11AM

13
#714 - molnija3d / @molnija3d

07/02/2024 at 12:42PM

13
#715 - uqs / @uqs

07/06/2024 at 09:21AM

13
#716 - Joshua Hamlet / @joshuahamlet

07/09/2024 at 07:21AM

13
#717 - ^M\w{3}$ / @Frankva

07/18/2024 at 12:36PM

13
#718 - hanaharidy / @hanaharidy

08/08/2024 at 08:34AM

13
#719 - OsamaElkadeem / @OsamaElkadeem

08/08/2024 at 08:20PM

13
#720 - tncargil / @tncargil

08/25/2024 at 04:00PM