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

5757 active golfers, 25746 entries

Leaderboard (lowest score wins):
22
#31 - Ram Tamtam / @ramtamtamtam

07/30/2015 at 03:24PM

22
#32 - johannes err / @into_the_beta

07/30/2015 at 08:08PM

22
#33 - Agnans / @agnans92

07/30/2015 at 10:50PM

22
#34 - Martin Delille / @martinodelilo

07/31/2015 at 02:51PM

22
#35 - Maxim Prokopenko / @max1cp

07/31/2015 at 03:52PM

22
#36 - LCD 47 / @lcd047

07/31/2015 at 09:42PM

22
#37 - Daniel Beck / @daniel_beck_il

08/01/2015 at 02:27PM

22
#38 - ジョン╭( ・ㅂ・)و ̑̑ ジョン / @john_a_dreams

08/01/2015 at 07:14PM

22
#39 - John Diamond / @jcdmnd

08/05/2015 at 10:51AM

22
#40 - lukaskrieger / @lukaskrieger

08/05/2015 at 12:59PM

22
#41 - David Montague / @sirlamps

08/06/2015 at 04:14PM

22
#42 - Hayden Eskriett / @HaydenEskriett

08/08/2015 at 10:10AM

22
#43 - Blake Tereau / @BlakeTereau

08/10/2015 at 09:12PM

22
#44 - Oleg Kravchenko / @olegkravchenk10

08/11/2015 at 11:03PM

22
#45 - SilentFl / @Silent_Fl

08/12/2015 at 02:57PM

22
#46 - Veritas / @_VeritasL

08/12/2015 at 03:16PM

22
#47 - Ryan Showalter / @tankc

08/13/2015 at 02:57AM

22
#48 - Alykhan Kanji / @alykhank

08/14/2015 at 03:58AM

22
#49 - Gregory Foster / @gregorymfoster

08/14/2015 at 04:05PM

22
#50 - Lucien Baron / @Luci1B

08/14/2015 at 09:23PM

22
#51 - Marcin Sza / @coot_

08/15/2015 at 05:33PM

22
#52 - skrobul / @skrobul

08/15/2015 at 08:07PM

22
#53 - Nick Xiao / @nicoster

08/16/2015 at 02:29PM

22
#54 - William Dunand / @wdunand

08/17/2015 at 09:32PM

22
#55 - Stefan Countryman / @stcountryman

08/18/2015 at 09:16PM

22
#56 - Colin Ameigh / @CAmeigh

08/19/2015 at 09:10AM

22
#57 - aborilov / @aborilov

08/20/2015 at 06:37AM

22
#58 - David Perfors / @dnperfors

08/20/2015 at 05:14PM

22
#59 - joinvimgolf / @joinvimgolf

08/20/2015 at 09:27PM

22
#60 - Paulo Romeira / @pauloromeira

08/21/2015 at 05:10AM