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

7401 active golfers, 33552 entries

Leaderboard (lowest score wins):
22
#1051 - Marco Bompani / @BompaniMarco

09/15/2017 at 12:54PM

22
#1052 - BarbaJol / @drpproteus

09/16/2017 at 11:32AM

22
#1053 - jirgn / @jirgn

09/16/2017 at 12:51PM

22
#1054 - elmoloves / @ElmoLovesSilly

09/16/2017 at 08:11PM

22
#1055 - Vim Golfer / @nvim_golfer

09/17/2017 at 08:20PM

22
#1056 - zhangxspace / @zhangxspace1

09/18/2017 at 10:02AM

22
#1057 - Owen / @Owen40802859

09/18/2017 at 11:47AM

22
#1058 - Maciek Wcislik / @inoutin

09/18/2017 at 01:47PM

22
#1059 - Jouderian Junior / @jouderianjr

09/18/2017 at 02:36PM

22
#1060 - Owen / @owengeorge_

09/18/2017 at 07:37PM

22
#1061 - eazor / @eazor

09/19/2017 at 08:46AM

22
#1062 - Andrew's Testing / @andrewwwtest

09/19/2017 at 07:58PM

22
#1063 - Diego Roccia / @rocciadiego

09/19/2017 at 09:03PM

22
#1064 - how ja din / @o157529

09/20/2017 at 03:03AM

22
#1065 - e65a8260f8c973e3d7ff / @e65a8260f8c973e

09/20/2017 at 07:10AM

22
#1066 - Lajos Koszti / @Ajnasz

09/20/2017 at 11:43AM

22
#1067 - あっつぉ / @tadokorohitoshi

09/21/2017 at 07:30AM

22
#1068 - 洪梓凱 / @hzchris

09/21/2017 at 08:37AM

22
#1069 - Karamfil / @lz1aai

09/22/2017 at 01:16PM

22
#1070 - Kristoffer Ahlqvist / @ahlqvistk

09/24/2017 at 06:21PM

22
#1071 - Bonjew / @Bonjew_L

09/25/2017 at 01:37AM

22
#1072 - Richard Veneracion / @rveneracion

09/25/2017 at 02:54AM

22
#1073 - gh / @hihsym

09/25/2017 at 06:09AM

22
#1074 - garry quested / @GQuested

09/25/2017 at 09:37AM

22
#1075 - Bartek / @ShallWeMove

09/25/2017 at 10:36AM

22
#1076 - F / @gofilby

09/26/2017 at 12:59PM

22
#1077 - Michail Pishchagin / @mblsha

09/26/2017 at 01:46PM

22
#1078 - Simon Johansson / @SudoQ_

09/27/2017 at 09:00AM

22
#1079 - Zacharias / @zeottt

09/27/2017 at 11:33AM

22
#1080 - Matt Rixman / @MattRixman

09/28/2017 at 03:11PM