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

6612 active golfers, 29848 entries

Leaderboard (lowest score wins):
34
#5761 - John Grove / @grovejt

12/14/2019 at 07:12PM

34
#5762 - Jan Chr / @Janhrhr

12/15/2019 at 03:18PM

34
#5763 - Ariel Fischer / @arielfischer82

12/31/2019 at 10:32AM

34
#5764 - redwood / @redwood80235716

01/04/2020 at 06:14PM

34
#5765 - Lukas Schattenhofer / @Schadonis

01/30/2020 at 10:47AM

34
#5766 - Bjoern Weidlich / @bweidlich

02/08/2020 at 08:03PM

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

02/15/2020 at 10:36PM

34
#5768 - Ethan Zimbelman / @zimboboys

02/19/2020 at 08:51AM

34
#5769 - 𝚕𝚘𝚛𝚍 / @padulkemid

03/14/2020 at 08:18PM

34
#5770 - Joe Farnsworth / @JoeFarnsworth

03/22/2020 at 05:54PM

34
#5771 - Saransh Barua / @_saranshbarua

03/28/2020 at 06:53PM

34
#5772 - Carl Smestad / @CarlSmes

03/29/2020 at 01:09PM

34
#5773 - MatsMaiwald / @MaiwaldMats

04/10/2020 at 11:20AM

34
#5774 - Ethan Chen / @ethanypc

04/30/2020 at 12:31AM

34
#5775 - Campbell / @Campbel38269950

04/30/2020 at 08:49AM

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

05/10/2020 at 10:57PM

34
#5777 - Bhargav Makwana / @I_aM_Bhargav

05/16/2020 at 12:19PM

35
#5778 - Alexander Buntakov / @Buntakov

07/29/2015 at 08:03PM

35
#5779 - Omid Hezaveh / @omidfi

08/07/2015 at 07:39PM

35
#5780 - Simen Skoglund / @SimenSkog

08/13/2015 at 07:35PM

35
#5781 - Itamar Gal / @novicevimgolfer

08/17/2015 at 08:33PM

35
#5782 - Ivan Zhuravlev / @DreddyI

08/26/2015 at 12:08PM

35
#5783 - Brad / @b2test

09/01/2015 at 12:04PM

35
#5784 - Vinayak Kaushik / @theubermanshere

09/12/2015 at 02:20PM

35
#5785 - Alexandre Jouandin / @Allezxandre

09/22/2015 at 11:11AM

35
#5786 - Felix Maxwell / @felix_maxwell

09/26/2015 at 09:28PM

35
#5787 - ddevil / @ddevil

10/02/2015 at 02:59PM

35
#5788 - ggdGiBork:3^[:wq / @CopperBadger

10/06/2015 at 12:34AM

35
#5789 - Cable Benjamin / @LadyDascalie

10/18/2015 at 02:47PM

35
#5790 - Max Jacobson / @maxjacobson

10/29/2015 at 02:47AM