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

1736 active golfers, 5036 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
#>973 - dotvimrc / @dotvimrc1

07/27/2020 at 08:08AM

13
#>1244 - dotvimrc / @dotvimrc1

07/27/2020 at 08:06AM

14
#>1435 - dotvimrc / @dotvimrc1

07/27/2020 at 07:08AM

14
#>1435 - dotvimrc / @dotvimrc1

07/28/2020 at 06:13AM

15
#>1530 - dotvimrc / @dotvimrc1

07/27/2020 at 07:06AM

16
#>1586 - dotvimrc / @dotvimrc1

07/27/2020 at 06:58AM

19
#>1653 - dotvimrc / @dotvimrc1

07/24/2020 at 08:12AM