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 @tianxiaweiyidao:

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

53 active golfers, 241 entries

Solutions by @tianxiaweiyidao:
18
#16 - tianxiaweiyidao / @tianxiaweiyidao

11/09/2024 at 07:01PM

18
#>16 - tianxiaweiyidao / @tianxiaweiyidao

11/10/2024 at 02:01AM

20
#>20 - tianxiaweiyidao / @tianxiaweiyidao

11/09/2024 at 06:42PM

22
#>24 - tianxiaweiyidao / @tianxiaweiyidao

11/09/2024 at 06:34PM

24
#>25 - tianxiaweiyidao / @tianxiaweiyidao

11/09/2024 at 06:27PM

26
#>28 - tianxiaweiyidao / @tianxiaweiyidao

11/09/2024 at 06:11PM

26
#>28 - tianxiaweiyidao / @tianxiaweiyidao

11/09/2024 at 06:19PM

29
#>41 - tianxiaweiyidao / @tianxiaweiyidao

11/09/2024 at 05:59PM

30
#>43 - tianxiaweiyidao / @tianxiaweiyidao

11/16/2024 at 11:36PM

33
#>45 - tianxiaweiyidao / @tianxiaweiyidao

11/09/2024 at 10:03AM

34
#>45 - tianxiaweiyidao / @tianxiaweiyidao

11/09/2024 at 05:30PM

35
#>46 - tianxiaweiyidao / @tianxiaweiyidao

11/09/2024 at 05:12PM

37
#>48 - tianxiaweiyidao / @tianxiaweiyidao

11/09/2024 at 05:03PM

38
#>48 - tianxiaweiyidao / @tianxiaweiyidao

11/09/2024 at 10:12AM

52
#>51 - tianxiaweiyidao / @tianxiaweiyidao

11/14/2024 at 12:41PM