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 9v0066c85bd8000000000324

Move to corresponding lines

Move the values to the corresponding lines.

Start file
column1
some other texts
some other texts 
column2
some other texts
... m lines ... 
some extra texts
...
column10

value1
...
value10
End file
column1 
value1
some other texts
some other texts 
column2 
value2
some other texts
... m lines ... 
some extra texts
...
column10 
value10

View Diff

1c1,2
< column1
---
> column1 
> value1
4c5,6
< column2
---
> column2 
> value2
9,12c11
< column10
< 
< value1
< ...
---
> column10 

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 61 remaining solutions by signing in and submitting your own entry
#62 danielbonkowsky / @danielbonkowsky - Score: 74 - 08/23/24 @ 15:18
<Esc>\<Esc>\eaj<BS><Esc>j1010j2kdd9kkper23jper24kr112jdd2kpjdd.kea <Esc>kkkkkka <Esc>kkkkka <Esc>:wq<CR>

0 comments


Created by: @XiaoshuZ73684

62 active golfers, 267 entries

Leaderboard (lowest score wins):
60
#61 - Oli / @olileung

03/14/2025 at 12:13PM

74
#62 - danielbonkowsky / @danielbonkowsky

08/23/2024 at 03:18PM