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 5380 remaining solutions by signing in and submitting your own entry
#5381 KEBE Abdou Bigue / @KebeBigue - Score: 359 - 11/14/18 @ 11:15
jjjjjj<Esc>itemp var7<BS><BS><BS><BS><BS><BS><BS><BS><BS>*T<BS>temp var7 11j<BS><Esc>jj<Esc>iNex<BS>w text.k<BS><Esc>kkmllllll<CR><CR>kkllllllllllllluuU<Up><Up><Up><Down><Esc>I<Esc>I*T<BS>temp var7 11<Esc>jj<Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc>iNex<BS>w text.<Esc>kkllll<Esc>io<BS><Esc>llo<Esc>jjkjkllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloj<BS><Esc>jllllllllloh<BS><Esc>h:Q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

5381 active golfers, 24023 entries

Leaderboard (lowest score wins):
22
#61 - Abdo Achkar / @Achkar

07/26/2015 at 09:35PM

22
#62 - Partial SHA1 hash / @25fcag9e

07/27/2015 at 02:23PM

22
#63 - Hunter Gatewood / @hcgatewood

07/28/2015 at 01:27AM

22
#64 - Robbie Clarken / @robbieclarken

07/28/2015 at 10:55AM

22
#65 - Mehanig Mehanig / @MehaniG

07/28/2015 at 08:51PM

22
#66 - Jer Wilson / @superjercom

07/28/2015 at 09:30PM

22
#67 - Bakhti Aripov / @bakhti

07/29/2015 at 06:43AM

22
#68 - Victor Haffreingue / @nobe_4

07/29/2015 at 12:52PM

22
#69 - Marcelo Montu / @_mMontu_

07/29/2015 at 01:42PM

22
#70 - Shubham Sharma / @shubh1337

07/29/2015 at 04:12PM

22
#71 - Rasmus P / @rasmup

07/29/2015 at 05:34PM

22
#72 - Ram Tamtam / @ramtamtamtam

07/30/2015 at 03:24PM

22
#73 - johannes err / @into_the_beta

07/30/2015 at 08:08PM

22
#74 - Agnans / @agnans92

07/30/2015 at 10:50PM

22
#75 - Martin Delille / @martinodelilo

07/31/2015 at 02:51PM

22
#76 - Maxim Prokopenko / @max1cp

07/31/2015 at 03:52PM

22
#77 - LCD 47 / @lcd047

07/31/2015 at 09:42PM

22
#78 - ジョン╭( ・ㅂ・)و ̑̑ ジョン / @john_a_dreams

08/01/2015 at 07:14PM

22
#79 - John Diamond / @jcdmnd

08/05/2015 at 10:51AM

22
#80 - lukaskrieger / @lukaskrieger

08/05/2015 at 12:59PM

22
#81 - David Montague / @sirlamps

08/06/2015 at 04:14PM

22
#82 - Hayden Eskriett / @HaydenEskriett

08/08/2015 at 10:10AM

22
#83 - Blake Tereau / @BlakeTereau

08/10/2015 at 09:12PM

22
#84 - Oleg Kravchenko / @olegkravchenk10

08/11/2015 at 11:03PM

22
#85 - SilentFl / @Silent_Fl

08/12/2015 at 02:57PM

22
#86 - Veritas / @_VeritasL

08/12/2015 at 03:16PM

22
#87 - Ryan Showalter / @tankc

08/13/2015 at 02:57AM

22
#88 - Alykhan Kanji / @alykhank

08/14/2015 at 03:58AM

22
#89 - Gregory Foster / @gregorymfoster

08/14/2015 at 04:05PM

22
#90 - Lucien Baron / @Luci1B

08/14/2015 at 09:23PM