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

3827 active golfers, 13332 entries

Leaderboard (lowest score wins):
13
#721 - Diwakar Singh Parmar / @parmardiwakar150

08/27/2024 at 01:11PM

13
#722 - nickGPT / @nickandbro

08/29/2024 at 12:44AM

13
#723 - KoroneListener / @KoroneListener

09/03/2024 at 05:01PM

13
#724 - Peppa Pig / @PeppaPigSg

09/10/2024 at 07:29AM

13
#725 - mau-mauricelim / @mau-mauricelim

09/19/2024 at 03:43AM

13
#726 - nmiller987 / @nmiller987

09/19/2024 at 09:55PM

13
#727 - shulva / @shulva

09/21/2024 at 04:24PM

13
#728 - Shoob / @martinshoob

10/14/2024 at 10:53AM

13
#729 - xscript71 / @xscript71

10/14/2024 at 04:14PM

13
#730 - Christensen, Scott (S.C.) / @MCHRI120_ford

11/03/2024 at 09:09PM

13
#731 - Hiroshi Yamamoto / @hyamamoto

11/06/2024 at 06:34AM

13
#732 - Dan F. / @danielrfh

11/06/2024 at 08:01PM

13
#733 - sosa-daniel / @sosa-daniel

11/23/2024 at 05:56AM

13
#734 - countime / @countime

11/27/2024 at 11:57AM

13
#735 - bounce114 / @bounce114

12/01/2024 at 07:19AM

13
#736 - Oleksii Sanin / @AlexSanin

12/07/2024 at 09:24AM

13
#737 - Henry / @henry-zwart

12/10/2024 at 03:49PM

13
#738 - YG2031 / @YG2031

01/07/2025 at 03:25PM

13
#739 - whjum / @whjum

01/14/2025 at 03:59AM

13
#740 - Ishmael Riles / @isho

01/14/2025 at 08:20PM

13
#741 - Backwater1 / @Backwater1

02/23/2025 at 02:19PM

13
#742 - jaunxter / @jaunxter

04/04/2025 at 05:32AM

13
#743 - P1NGG / @P1NGG

04/19/2025 at 01:58PM

13
#744 - 𝕁𝕠𝕖𝕪 ℤ𝕙𝕖𝕟𝕘 / @joey5403

04/27/2025 at 05:23AM

13
#745 - Karan / @KaranVaity

04/27/2025 at 02:52PM

13
#746 - kooxn / @kooxn

05/11/2025 at 06:29AM

13
#747 - NotShanks / @NotShanks

05/19/2025 at 03:53AM

13
#748 - Tom11w / @Tom11Wh

05/19/2025 at 02:15PM

13
#749 - Breemskin / @Breemskin

07/20/2025 at 09:25PM

13
#750 - Thales Alexandre Ferreira Albuquerque / @Vitruvia

07/29/2025 at 06:48PM