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
#2311 - broella3 / @broella3

08/18/2015 at 01:38PM

23
#2312 - Martin Galpin / @MartinRGalpin

08/22/2015 at 03:38PM

23
#2313 - Andy Borsz / @biscuitvile

08/24/2015 at 12:47AM

23
#2314 - Oleg Parashchenko / @olparko

08/30/2015 at 09:20PM

23
#2315 - Jinzhou Zhang / @jinzhouz

09/02/2015 at 06:55AM

23
#2316 - João Carvalho / @joaoCarvas

09/03/2015 at 01:29PM

23
#2317 - Adam Stephen / @2_71828

09/03/2015 at 10:00PM

23
#2318 - Jon Nyman / @NymanJon

09/12/2015 at 09:18AM

23
#2319 - Ben Vandervalk / @benvvalk

09/14/2015 at 02:31AM

23
#2320 - dd / @dd22147119

09/14/2015 at 03:56PM

23
#2321 - Thomas Draper / @QuanTom561

09/20/2015 at 11:17PM

23
#2322 - Ronnie McCall / @RonnieMcC

09/21/2015 at 02:24PM

23
#2323 - Charles Joachim / @cacplate

09/23/2015 at 02:20AM

23
#2324 - buz / @buzbone

09/23/2015 at 02:59PM

23
#2325 - bryn edwards / @edwards_bryn

10/02/2015 at 08:24AM

23
#2326 - Pitr Vernigorov / @pitrapen

10/02/2015 at 08:36PM

23
#2327 - André Peric Tavares / @AndrePeric

10/03/2015 at 06:02PM

23
#2328 - Emeliov Dmitri / @EmeliovD

10/06/2015 at 09:02AM

23
#2329 - Sean Hill / @insecteanSean

10/10/2015 at 01:11AM

23
#2330 - Jacob Beal / @_caliburnus

10/10/2015 at 09:31PM

23
#2331 - Maarten Kruithof / @mckruithuijb

10/14/2015 at 02:34PM

23
#2332 - DespicableJerk / @JerkDespicable

10/17/2015 at 03:26PM

23
#2333 - Oleg Alfalfa / @6alfalfa9

10/18/2015 at 10:34AM

23
#2334 - Gavin Taqwaa / @chuckclayton_t1

10/27/2015 at 10:53PM

23
#2335 - Ryan Marcotte / @ryanjmarcotte

11/10/2015 at 11:51PM

23
#2336 - VimGolfUser / @UserVim

11/10/2015 at 11:59PM

23
#2337 - Jonas / @jonaslasauskas

11/17/2015 at 01:31PM

23
#2338 - emblox / @emblox

11/19/2015 at 03:22AM

23
#2339 - Ryuichiro / @ryuichiro44

11/19/2015 at 02:09PM

23
#2340 - Mike McGowan / @mikemcgowan75

11/19/2015 at 02:35PM