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

5989 active golfers, 26849 entries

Leaderboard (lowest score wins):
22
#1201 - Josh Steiner / @josh_steiner

01/20/2018 at 06:01PM

22
#1202 - K0Der / @K0Der

01/21/2018 at 07:56AM

22
#1203 - zhouhe / @zhouhe4

01/22/2018 at 12:42PM

22
#1204 - Marcel Boon / @riddlesolving

01/22/2018 at 10:38PM

22
#1205 - Frankie Liu / @pi31415629

01/23/2018 at 01:02AM

22
#1206 - Rah'tol Samok🖖 / @ralokt

01/23/2018 at 08:56AM

22
#1207 - Matthew Rademaker / @radamakar

01/24/2018 at 01:43AM

22
#1208 - Rakesh P / @rakeshpgopal

01/26/2018 at 08:33AM

22
#1209 - Jared Bold / @jaredbold77

01/26/2018 at 07:01PM

22
#1210 - Ignacy Moryc / @imoryc

01/26/2018 at 09:37PM

22
#1211 - thadeuszlay / @thadeuszlay

01/26/2018 at 10:26PM

22
#1212 - J H / @JH55743512

01/27/2018 at 12:14AM

22
#1213 - umnikos / @umnikos

01/28/2018 at 09:56AM

22
#1214 - ラフィアは衒いがち / @fluffyraffia

01/30/2018 at 12:12PM

22
#1215 - Michael Vanier / @mvanier42

01/30/2018 at 04:49PM

22
#1216 - daniel / @danueb

01/30/2018 at 09:50PM

22
#1217 - 陈振宇 / @1243065115

01/31/2018 at 06:18AM

22
#1218 - to.cd.tw / @to_cd_tw

01/31/2018 at 08:28AM

22
#1219 - Urbanovics Péter / @UrbanovicsP

01/31/2018 at 07:16PM

22
#1220 - 블랙미디 9월내한해라🥺 / @hautass

02/01/2018 at 06:13AM

22
#1221 - Hector Ricardo / @Hector_Ricardo3

02/01/2018 at 06:53AM

22
#1222 - Harshdeep Kanhai / @HarshdeepKanhai

02/01/2018 at 01:51PM

22
#1223 - Lalo / @LaloPianoricky

02/02/2018 at 01:25AM

22
#1224 - nano / @nannotm

02/03/2018 at 03:32PM

22
#1225 - Anders Mårtensson / @nemrawd

02/04/2018 at 12:50AM

22
#1226 - l / @ioio85

02/04/2018 at 02:41AM

22
#1227 - BareTull / @BareTull3

02/05/2018 at 05:54AM

22
#1228 - Ilker Mutlu / @ilkermutlu

02/05/2018 at 07:38AM

22
#1229 - Romain D. / @r_dulery

02/05/2018 at 06:59PM

22
#1230 - NGM / @gmnimrod1

02/06/2018 at 10:06AM