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 by @insomnight:

Unlock 11 remaining solutions by signing in and submitting your own entry
Created by: @XiaoshuZ73684

53 active golfers, 241 entries

Solutions by @insomnight:
18
#14 - got_windy / @insomnight

10/23/2024 at 09:45AM

20
#>20 - got_windy / @insomnight

10/23/2024 at 09:42AM

22
#>24 - got_windy / @insomnight

10/23/2024 at 09:40AM

24
#>25 - got_windy / @insomnight

10/23/2024 at 09:37AM

25
#>26 - got_windy / @insomnight

10/23/2024 at 09:36AM

26
#>28 - got_windy / @insomnight

10/23/2024 at 09:34AM

27
#>32 - got_windy / @insomnight

10/23/2024 at 09:32AM

30
#>42 - got_windy / @insomnight

10/23/2024 at 06:08AM

31
#>44 - got_windy / @insomnight

10/23/2024 at 06:05AM

34
#>45 - got_windy / @insomnight

10/23/2024 at 05:59AM

42
#>49 - got_windy / @insomnight

10/23/2024 at 05:54AM