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 4f0720c8f037090001000007

switch variable

how fast can you switch two variable ?

Start file
int barins, foovariable = 1; 
End file
int foovariable, barins = 1; 

View Diff

1c1
< int barins, foovariable = 1; 
---
> int foovariable, barins = 1; 

Solutions by @dotvimrc1:

Unlock 14 remaining solutions by signing in and submitting your own entry
Created by: @lukastsai

1698 active golfers, 4901 entries

Solutions by @dotvimrc1:
11
#620 - dotvimrc / @dotvimrc1

07/28/2020 at 06:16AM

11
#>620 - dotvimrc / @dotvimrc1

07/28/2020 at 06:17AM

11
#>620 - dotvimrc / @dotvimrc1

07/28/2020 at 06:18AM

11
#>620 - dotvimrc / @dotvimrc1

07/28/2020 at 06:19AM

11
#>620 - dotvimrc / @dotvimrc1

07/28/2020 at 06:20AM

11
#>620 - dotvimrc / @dotvimrc1

07/28/2020 at 06:32AM

11
#>620 - dotvimrc / @dotvimrc1

07/28/2020 at 06:33AM

12
#>955 - dotvimrc / @dotvimrc1

07/27/2020 at 08:08AM

13
#>1220 - dotvimrc / @dotvimrc1

07/27/2020 at 08:06AM

14
#>1407 - dotvimrc / @dotvimrc1

07/27/2020 at 07:08AM

14
#>1407 - dotvimrc / @dotvimrc1

07/28/2020 at 06:13AM

15
#>1500 - dotvimrc / @dotvimrc1

07/27/2020 at 07:06AM

16
#>1555 - dotvimrc / @dotvimrc1

07/27/2020 at 06:58AM

19
#>1620 - dotvimrc / @dotvimrc1

07/24/2020 at 08:12AM