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

7063 active golfers, 32034 entries

Leaderboard (lowest score wins):
23
#2431 - Peter Chynoweth / @pcchynoweth

12/10/2016 at 12:13PM

23
#2432 - Matt Wittmann / @mttwttmnn

12/11/2016 at 04:23AM

23
#2433 - ABS JOHNSON / @ABSJOHNSON1

12/16/2016 at 02:23AM

23
#2434 - Michael / @linux478

12/24/2016 at 04:10PM

23
#2435 - Abc Def / @phweiss1

01/03/2017 at 02:24PM

23
#2436 - Social Botolinum / @SocialBot4

01/04/2017 at 09:45PM

23
#2437 - Nxgr / @Nxgr_l

01/05/2017 at 02:49PM

23
#2438 - 84shin / @ssssww

01/11/2017 at 06:38PM

23
#2439 - Thomas Geßler / @th_gessler

01/22/2017 at 04:08PM

23
#2440 - Daniel Hogan / @danielhogan21

01/25/2017 at 02:34AM

23
#2441 - Charlier / @Charlicanman

01/26/2017 at 08:29PM

23
#2442 - Avimgolfer / @l718232

01/30/2017 at 03:05AM

23
#2443 - Joel T / @joel31415

01/30/2017 at 02:42PM

23
#2444 - Aaron Sikes / @courajs

02/01/2017 at 02:30AM

23
#2445 - Ymte Jan Broekhuizen / @ymtejan

02/01/2017 at 11:35PM

23
#2446 - Peter Brown / @brow1067

03/07/2017 at 04:24PM

23
#2447 - Nikola Dodik / @dodiknikola

03/20/2017 at 02:13PM

23
#2448 - maaaaaaacs / @maaaaaacs

03/22/2017 at 10:58AM

23
#2449 - Reinaldo Astudillo / @astudillor

03/22/2017 at 10:56PM

23
#2450 - Aman Singhal / @helixinverse

03/30/2017 at 03:57PM

23
#2451 - Clyde Fare / @ClydeFare

04/13/2017 at 04:59PM

23
#2452 - Dónal Mac An Rí / @donalmacanri

04/20/2017 at 02:01AM

23
#2453 - Deann Vargas / @geek_dean

04/22/2017 at 03:22PM

23
#2454 - Rene Barroso / @Kasper_34

04/24/2017 at 04:24PM

23
#2455 - Aneudy Labour / @aneudylabour

04/26/2017 at 02:16PM

23
#2456 - Igor Melnyk / @IrodrigesM

04/26/2017 at 10:41PM

23
#2457 - Alessandro Nazzani / @anazzani

05/03/2017 at 10:31AM

23
#2458 - Vladislav Supalov / @vsupalov

05/12/2017 at 08:20AM

23
#2459 - Sean Rodman / @bassman7689

05/13/2017 at 12:31AM

23
#2460 - Christian Abbott / @etopixi

05/29/2017 at 03:39PM