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 50d0d80eaa503f000200001b

Swap assigned value

Simple problem but looking for interesting solutions.

Start file
app.config['CHALLENGE_FOLDER'] = SOLUTIONS_FOLDER
app.config['SOLUTIONS_FOLDER'] = CHALLENGE_FOLDER
End file
app.config['CHALLENGE_FOLDER'] = CHALLENGE_FOLDER
app.config['SOLUTIONS_FOLDER'] = SOLUTIONS_FOLDER

View Diff

diff --git 1/tmp/vimgolf_problem.in 2/tmp/vimgolf_problem.out
index 686e836..225e001 100644
--- 1/tmp/vimgolf_problem.in
+++ 2/tmp/vimgolf_problem.out
@@ -1,2 +1,2 @@
-app.config['CHALLENGE_FOLDER'] = SOLUTIONS_FOLDER
-app.config['SOLUTIONS_FOLDER'] = CHALLENGE_FOLDER
+app.config['CHALLENGE_FOLDER'] = CHALLENGE_FOLDER
+app.config['SOLUTIONS_FOLDER'] = SOLUTIONS_FOLDER

Solutions by @tomkpz:

Unlock 6 remaining solutions by signing in and submitting your own entry
Created by: @Prafulfillment

254 active golfers, 647 entries

Solutions by @tomkpz:
11
#190 - Michel Viktor / @tomkpz

08/08/2021 at 10:18PM

12
#>212 - Michel Viktor / @tomkpz

08/08/2021 at 10:17PM

13
#>228 - Michel Viktor / @tomkpz

08/08/2021 at 10:16PM

15
#>236 - Michel Viktor / @tomkpz

08/08/2021 at 10:15PM

16
#>238 - Michel Viktor / @tomkpz

08/08/2021 at 10:15PM

19
#>248 - Michel Viktor / @tomkpz

08/08/2021 at 10:13PM