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

6594 active golfers, 29781 entries

Leaderboard (lowest score wins):
34
#5731 - José / @AngelGaldamez

08/25/2019 at 04:49AM

34
#5732 - Michel Onwordi / @lupo342

08/25/2019 at 06:10PM

34
#5733 - Vichaya Raksakunpani / @toonbcc

09/02/2019 at 07:34AM

34
#5734 - Jason Birchall / @jsonBirchall

09/08/2019 at 10:43AM

34
#5735 - Temp / @San5nom

09/16/2019 at 02:25PM

34
#5736 - jeremy / @jeremy67339762

09/19/2019 at 04:10PM

34
#5737 - Johnson Lu / @wanderlusteee

10/02/2019 at 01:13AM

34
#5738 - Mohit Gurumukhani / @mgurumuk

10/14/2019 at 09:50PM

34
#5739 - ~• Isaac [5] •~ / @isac_frusgoffer

10/17/2019 at 07:52PM

34
#5740 - This Is Computer Art / @wowsuchcode

10/20/2019 at 11:18AM

34
#5741 - Stefan Rabenstein / @Shaomada

11/06/2019 at 07:04AM

34
#5742 - Adam Jones / @AdamJon02568890

11/21/2019 at 03:36PM

34
#5743 - Maximilian Kurthen / @MaxKurthen

11/25/2019 at 09:38AM

34
#5744 - John Grove / @grovejt

12/14/2019 at 07:12PM

34
#5745 - Jan Chr / @Janhrhr

12/15/2019 at 03:18PM

34
#5746 - Ariel Fischer / @arielfischer82

12/31/2019 at 10:32AM

34
#5747 - redwood / @redwood80235716

01/04/2020 at 06:14PM

34
#5748 - Lukas Schattenhofer / @Schadonis

01/30/2020 at 10:47AM

34
#5749 - Bjoern Weidlich / @bweidlich

02/08/2020 at 08:03PM

34
#5750 - Phúc Lê / @lkhphuc

02/15/2020 at 10:36PM

34
#5751 - Ethan Zimbelman / @zimboboys

02/19/2020 at 08:51AM

34
#5752 - 𝚕𝚘𝚛𝚍 / @padulkemid

03/14/2020 at 08:18PM

34
#5753 - Joe Farnsworth / @JoeFarnsworth

03/22/2020 at 05:54PM

34
#5754 - Saransh Barua / @_saranshbarua

03/28/2020 at 06:53PM

34
#5755 - Carl Smestad / @CarlSmes

03/29/2020 at 01:09PM

34
#5756 - MatsMaiwald / @MaiwaldMats

04/10/2020 at 11:20AM

34
#5757 - Ethan Chen / @ethanypc

04/30/2020 at 12:31AM

34
#5758 - Campbell / @Campbel38269950

04/30/2020 at 08:49AM

34
#5759 - Iago Trancón Barros / @iagotb

05/10/2020 at 10:57PM

34
#5760 - Bhargav Makwana / @I_aM_Bhargav

05/16/2020 at 12:19PM