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

6703 active golfers, 30249 entries

Leaderboard (lowest score wins):
35
#5941 - z0c / @zerocabal

06/02/2018 at 01:15PM

35
#5942 - Christian Köstlin / @gizmomogwai

06/18/2018 at 09:49PM

35
#5943 - TK / @defnottk

07/04/2018 at 07:15PM

35
#5944 - もんたるじあ / @kadeo1212

07/05/2018 at 01:58PM

35
#5945 - Walker Byrnes / @ByrnesWalker

07/06/2018 at 02:27PM

35
#5946 - Theo Andersen Carton / @TheoAndersen

08/07/2018 at 06:25PM

35
#5947 - Max Petersson / @ispymarre

08/24/2018 at 08:14PM

35
#5948 - Ryan Daniels / @RyanNeilDaniels

08/28/2018 at 07:02AM

35
#5949 - Paul Adams / @saladpuma

08/29/2018 at 04:14PM

35
#5950 - burnerAccount52442 / @account52442

08/31/2018 at 01:01PM

35
#5951 - Jon Kartago Lamida / @lamida

09/11/2018 at 09:44AM

35
#5952 - CAO Tien Duc / @tienduccao

09/11/2018 at 08:21PM

35
#5953 - Naz / @Naz29407955

09/15/2018 at 09:04AM

35
#5954 - gsvba / @gsvba

09/18/2018 at 09:23PM

35
#5955 - FokkusuKaze / @FokkusuKaze

09/24/2018 at 07:00AM

35
#5956 - Vim Golf / @VimGolf4

10/30/2018 at 09:11PM

35
#5957 - dorpo / @dorpo2

11/01/2018 at 03:32PM

35
#5958 - vipul / @vipul54995001

11/06/2018 at 08:07AM

35
#5959 - Nick Induni / @NickInduni

11/29/2018 at 01:25AM

35
#5960 - Tom Troyer / @tom_troyer

11/29/2018 at 07:53PM

35
#5961 - Alison Bento / @abnt713

12/06/2018 at 07:54PM

35
#5962 - Awakening George / @GeorgeC_monster

12/23/2018 at 09:59PM

35
#5963 - Jeff / @Jeff63157616

12/27/2018 at 06:03AM

35
#5964 - Brandon Braun / @Bmb330

12/29/2018 at 03:56AM

35
#5965 - daveramirez / @daveramirez

01/22/2019 at 07:43PM

35
#5966 - ShameOnMeApp / @ShameOnMeApp

01/25/2019 at 05:29PM

35
#5967 - Casey K / @account_name_2

02/06/2019 at 03:14PM

35
#5968 - Calvin Fong / @LordyBaka

02/10/2019 at 11:30AM

35
#5969 - David Wende / @WendeDavid

02/20/2019 at 03:47PM

35
#5970 - eduardo torres / @etdavila10

03/01/2019 at 02:57AM