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 55b18bbea9c2c30d04000001

Simple, Practical, and Common

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

Start file
*temp var1 0
*temp var2 "hi"
*temp var3 -1
*temp var4 42
*temp var5 "asdf"
*temp var6 0

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way."

This challenge is just a simple movement and entering text at a certain place.
End file
*temp var1 0
*temp var2 "hi"
*temp var3 -1
*temp var4 42
*temp var5 "asdf"
*temp var6 0
*temp var7 11

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way."

New text.

This challenge is just a simple movement and entering text at a certain place.

View Diff

6a7
> *temp var7 11
8a10,11
> 
> New text.

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 6710 remaining solutions by signing in and submitting your own entry
#6711 Yushia Sou / @yuessiah - Score: 427 - 05/08/19 @ 16:47
VG<C-P><Esc><Esc>kkkkkkkkkkkVjjjjjjjjjjjjjjjjjjxi<50-53>*temp var1 0<CR>*temp var2 "hi"<CR>*temp var3 -1<CR>*temp var4 42<CR>*temp var5 "asdf"<CR>*temp var6 0<CR>*temp var7 11<CR><CR>Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way."<CR><CR>New text.<CR><CR>This challenge is just a simple movement and entering text at a certain place.<Esc>[201~jk<BS><BS><Esc> kk:wq<BS><BS>q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

6711 active golfers, 30304 entries

Leaderboard (lowest score wins):
67
#6691 - Herk / @herkiejerky

01/30/2016 at 11:27PM

69
#6692 - Jack Keller / @jacknumbernine

12/22/2015 at 02:35AM

69
#6693 - Jack O'Brien / @The_BC_Studio

09/18/2018 at 06:52PM

69
#6694 - Melancias / @devianalex

05/24/2019 at 05:24PM

70
#6695 - Ricardo Morais / @moraispgsi

03/19/2017 at 06:53PM

72
#6696 - jiarenlu / @jiarenlu

11/15/2019 at 02:59AM

73
#6697 - Josh Linton / @JoshHLinton

10/11/2017 at 03:19AM

73
#6698 - akinori yamashita / @t1693519

08/03/2018 at 07:35AM

75
#6699 - David Jenkinson / @eighty8t8

04/26/2018 at 06:26AM

76
#6700 - 저녁반흑븍귀 / @ifwinner

05/05/2018 at 12:42PM

77
#6701 - Kroos / @lover_6102

09/11/2018 at 05:18PM

78
#6702 - Lucas Machado / @lucasmachadorj

11/10/2015 at 12:54AM

92
#6703 - anonrab / @anonrab

12/28/2015 at 03:22PM

95
#6704 - Jethro Bakker / @jtisbk

08/25/2017 at 07:37PM

96
#6705 - Ariel Gabizon / @ArielGabizon1

04/29/2018 at 12:25PM

102
#6706 - 田中@ / @karasu2400

12/11/2016 at 12:29AM

132
#6707 - tk-sugar / @vague_tksugar

04/12/2018 at 01:51AM

190
#6708 - Tenzin Phuljung / @tenzinpluto

10/12/2015 at 03:46PM

359
#6709 - KEBE Abdou Bigue / @KebeBigue

11/14/2018 at 11:15AM

395
#6710 - Hung / @hungbbear

03/13/2020 at 08:31AM

427
#6711 - Yushia Sou / @yuessiah

05/08/2019 at 04:47PM