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

6386 active golfers, 28808 entries

Leaderboard (lowest score wins):
22
#1291 - Fichera Gaetano / @gaetanofic

04/05/2018 at 08:46AM

22
#1292 - Dylan Hand / @dylanhand

04/06/2018 at 10:52PM

22
#1293 - José Irigon / @jiirigon

04/07/2018 at 10:15AM

22
#1294 - Peter Kling / @pit_kling

04/07/2018 at 08:57PM

22
#1295 - DHM / @DHM29978992

04/09/2018 at 03:51AM

22
#1296 - Jacob Fjerbæk Olsen / @jacobfjerbaek

04/10/2018 at 12:08PM

22
#1297 - caplod / @caplod

04/11/2018 at 07:27PM

22
#1298 - Andrzej Wąsowski / @AndrzejWasowski

04/12/2018 at 03:31PM

22
#1299 - 爺さん / @w_chocaholic

04/13/2018 at 01:07AM

22
#1300 - c0llision / @sh3llcode

04/13/2018 at 04:38PM

22
#1301 - ぬるぼっと / @nullbot3

04/19/2018 at 09:02AM

22
#1302 - radrhin / @radrhin

04/19/2018 at 05:21PM

22
#1303 - tbodt / @tblodt

04/19/2018 at 09:59PM

22
#1304 - Yuki Sato / @yukibear_dev

04/20/2018 at 10:25PM

22
#1305 - oceanarium / @oceanarium1

04/26/2018 at 12:40PM

22
#1306 - Jack Shannon / @grokmotive

04/28/2018 at 07:42AM

22
#1307 - Leonardo Pistone / @lepistone

04/28/2018 at 05:37PM

22
#1308 - Milan Ľudma / @turiec_

04/29/2018 at 09:57AM

22
#1309 - A. Grimprel / @AGrimprel

04/29/2018 at 02:33PM

22
#1310 - Andy / @ayyjayess

04/30/2018 at 03:09PM

22
#1311 - Vladimir Volkov / @neitrin

05/02/2018 at 03:00PM

22
#1312 - Darren Shen / @recurshen

05/03/2018 at 10:28AM

22
#1313 - mdgill / @mdgill

05/03/2018 at 01:10PM

22
#1314 - Cosmic Frog / @Cozmicfrog

05/03/2018 at 02:54PM

22
#1315 - fdasfasfasga / @deteriorateredu

05/03/2018 at 06:28PM

22
#1316 - Alain / @carpikes

05/04/2018 at 12:31PM

22
#1317 - Alexey Shiklomanov / @ashiklom711

05/04/2018 at 12:32PM

22
#1318 - Adam Taylor / @the_adamtaylor

05/04/2018 at 02:43PM

22
#1319 - SplinterPie / @splinter_pie

05/04/2018 at 04:11PM

22
#1320 - golfer / @golfer30767399

05/04/2018 at 04:50PM