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

7241 active golfers, 32765 entries

Leaderboard (lowest score wins):
34
#6271 - Lukas Schattenhofer / @Schadonis

01/30/2020 at 10:47AM

34
#6272 - Bjoern Weidlich / @bweidlich

02/08/2020 at 08:03PM

34
#6273 - Phúc Lê / @lkhphuc

02/15/2020 at 10:36PM

34
#6274 - Ethan Zimbelman / @zimboboys

02/19/2020 at 08:51AM

34
#6275 - 𝚕𝚘𝚛𝚍 / @padulkemid

03/14/2020 at 08:18PM

34
#6276 - Joe Farnsworth / @JoeFarnsworth

03/22/2020 at 05:54PM

34
#6277 - Saransh Barua / @_saranshbarua

03/28/2020 at 06:53PM

34
#6278 - Carl Smestad / @CarlSmes

03/29/2020 at 01:09PM

34
#6279 - MatsMaiwald / @MaiwaldMats

04/10/2020 at 11:20AM

34
#6280 - Ethan Chen / @ethanypc

04/30/2020 at 12:31AM

34
#6281 - Campbell / @Campbel38269950

04/30/2020 at 08:49AM

34
#6282 - Iago Trancón Barros / @iagotb

05/10/2020 at 10:57PM

34
#6283 - Bhargav Makwana / @I_aM_Bhargav

05/16/2020 at 12:19PM

34
#6284 - Matthew Huang / @Matthew47025889

06/13/2020 at 08:41AM

34
#6285 - Jacob Shomstein / @jshoms

06/18/2020 at 03:48AM

34
#6286 - Justin Or / @just_in_awe

07/04/2020 at 04:38AM

34
#6287 - Terry Vogelsang / @terryvogelsang

08/03/2020 at 02:14PM

34
#6288 - Sergio / @SergioVl12

08/07/2020 at 06:59PM

34
#6289 - Vincent Pham / @VNCPM

08/11/2020 at 09:28PM

34
#6290 - Moh / @Moh_Osman3

08/17/2020 at 07:58AM

34
#6291 - Theo Sarrazin / @tshaero

08/17/2020 at 05:58PM

34
#6292 - Bajok / @b410k

08/29/2020 at 04:16PM

34
#6293 - Christ / @Christ46234422

09/05/2020 at 09:23PM

34
#6294 - MoreWillMusic / @morewillmusic

09/29/2020 at 03:43PM

34
#6295 - Jacob Schonberg / @JacobSchonberg1

09/29/2020 at 03:56PM

34
#6296 - e3b0c44298fc1c149afb / @e3b0c44298fc1c1

09/29/2020 at 07:17PM

34
#6297 - L.P. / @Hitchhiker1990

10/02/2020 at 12:53AM

34
#6298 - achistdochegal / @talisos

10/15/2020 at 10:08AM

34
#6299 - Anier Velasco Sotomayor / @VelascoAnier

10/23/2020 at 02:00PM

34
#6300 - Gabe / @Gabe74053768

12/10/2020 at 03:05PM