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 9v0067006cf50000000004d1

Replace csv column if it's not empty

Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched

Start file
id,first_name,last_name,email,age,country,credit_score_percentile,occupation,favorite_color,is_active
1,John,Doe,johndoe@email.com,32,USA,0.75,Engineer,Blue,TRUE
2,Jane,Smith,janesmith@email.com,28,Canada,0.92,Teacher,Green,FALSE
3,Mike,Johnson,mikej@email.com,45,UK,,Lawyer,Red,TRUE
4,Emily,Brown,emilyb@email.com,22,Australia,0.33,Student,Purple,TRUE
5,David,Lee,davidl@email.com,39,Singapore,0.58,Manager,Yellow,FALSE
6,Sarah,Wilson,sarahw@email.com,31,Germany,0.41,Designer,Orange,TRUE
7,Tom,Taylor,tomt@email.com,52,France,,CEO,Black,TRUE
8,Lisa,Anderson,lisaa@email.com,29,Spain,0.87,Nurse,Pink,FALSE
9,Chris,Martinez,chrism@email.com,36,Mexico,0.62,Salesperson,Brown,TRUE
10,Olivia,Garcia,oliviag@email.com,41,Brazil,0.29,Accountant,White,FALSE
11,Ryan,Lopez,ryanl@email.com,27,Italy,,Chef,Gray,TRUE
12,Emma,Nguyen,emman@email.com,33,Vietnam,0.55,Researcher,Teal,TRUE
13,Alex,Kim,alexk@email.com,48,South Korea,0.71,Professor,Navy,FALSE
14,Sophia,Chen,sophiac@email.com,25,China,0.39,Artist,Maroon,TRUE
15,Daniel,Patel,danielp@email.com,37,India,0.84,Entrepreneur,Turquoise,FALSE
16,Mia,Singh,mias@email.com,30,New Zealand,0.46,Journalist,Gold,TRUE
17,James,Yamamoto,jamesy@email.com,43,Japan,,Architect,Silver,TRUE
18,Ava,Kowalski,avak@email.com,26,Poland,0.68,Marketing Specialist,Indigo,FALSE
19,Liam,Müller,liamm@email.com,34,Switzerland,0.93,Consultant,Olive,TRUE
20,Zoe,Dubois,zoed@email.com,39,Belgium,0.51,Psychologist,Crimson,FALSE
End file
id,first_name,last_name,email,age,country,credit_score_percentile,occupation,favorite_color,is_active
1,John,Doe,johndoe@email.com,32,USA,0.0,Engineer,Blue,TRUE
2,Jane,Smith,janesmith@email.com,28,Canada,0.0,Teacher,Green,FALSE
3,Mike,Johnson,mikej@email.com,45,UK,,Lawyer,Red,TRUE
4,Emily,Brown,emilyb@email.com,22,Australia,0.0,Student,Purple,TRUE
5,David,Lee,davidl@email.com,39,Singapore,0.0,Manager,Yellow,FALSE
6,Sarah,Wilson,sarahw@email.com,31,Germany,0.0,Designer,Orange,TRUE
7,Tom,Taylor,tomt@email.com,52,France,,CEO,Black,TRUE
8,Lisa,Anderson,lisaa@email.com,29,Spain,0.0,Nurse,Pink,FALSE
9,Chris,Martinez,chrism@email.com,36,Mexico,0.0,Salesperson,Brown,TRUE
10,Olivia,Garcia,oliviag@email.com,41,Brazil,0.0,Accountant,White,FALSE
11,Ryan,Lopez,ryanl@email.com,27,Italy,,Chef,Gray,TRUE
12,Emma,Nguyen,emman@email.com,33,Vietnam,0.0,Researcher,Teal,TRUE
13,Alex,Kim,alexk@email.com,48,South Korea,0.0,Professor,Navy,FALSE
14,Sophia,Chen,sophiac@email.com,25,China,0.0,Artist,Maroon,TRUE
15,Daniel,Patel,danielp@email.com,37,India,0.0,Entrepreneur,Turquoise,FALSE
16,Mia,Singh,mias@email.com,30,New Zealand,0.0,Journalist,Gold,TRUE
17,James,Yamamoto,jamesy@email.com,43,Japan,,Architect,Silver,TRUE
18,Ava,Kowalski,avak@email.com,26,Poland,0.0,Marketing Specialist,Indigo,FALSE
19,Liam,Müller,liamm@email.com,34,Switzerland,0.0,Consultant,Olive,TRUE
20,Zoe,Dubois,zoed@email.com,39,Belgium,0.0,Psychologist,Crimson,FALSE

View Diff

2,3c2,3
< 1,John,Doe,johndoe@email.com,32,USA,0.75,Engineer,Blue,TRUE
< 2,Jane,Smith,janesmith@email.com,28,Canada,0.92,Teacher,Green,FALSE
---
> 1,John,Doe,johndoe@email.com,32,USA,0.0,Engineer,Blue,TRUE
> 2,Jane,Smith,janesmith@email.com,28,Canada,0.0,Teacher,Green,FALSE
5,7c5,7
< 4,Emily,Brown,emilyb@email.com,22,Australia,0.33,Student,Purple,TRUE
< 5,David,Lee,davidl@email.com,39,Singapore,0.58,Manager,Yellow,FALSE
< 6,Sarah,Wilson,sarahw@email.com,31,Germany,0.41,Designer,Orange,TRUE
---
> 4,Emily,Brown,emilyb@email.com,22,Australia,0.0,Student,Purple,TRUE
> 5,David,Lee,davidl@email.com,39,Singapore,0.0,Manager,Yellow,FALSE
> 6,Sarah,Wilson,sarahw@email.com,31,Germany,0.0,Designer,Orange,TRUE
9,11c9,11
< 8,Lisa,Anderson,lisaa@email.com,29,Spain,0.87,Nurse,Pink,FALSE
< 9,Chris,Martinez,chrism@email.com,36,Mexico,0.62,Salesperson,Brown,TRUE
< 10,Olivia,Garcia,oliviag@email.com,41,Brazil,0.29,Accountant,White,FALSE
---
> 8,Lisa,Anderson,lisaa@email.com,29,Spain,0.0,Nurse,Pink,FALSE
> 9,Chris,Martinez,chrism@email.com,36,Mexico,0.0,Salesperson,Brown,TRUE
> 10,Olivia,Garcia,oliviag@email.com,41,Brazil,0.0,Accountant,White,FALSE
13,17c13,17
< 12,Emma,Nguyen,emman@email.com,33,Vietnam,0.55,Researcher,Teal,TRUE
< 13,Alex,Kim,alexk@email.com,48,South Korea,0.71,Professor,Navy,FALSE
< 14,Sophia,Chen,sophiac@email.com,25,China,0.39,Artist,Maroon,TRUE
< 15,Daniel,Patel,danielp@email.com,37,India,0.84,Entrepreneur,Turquoise,FALSE
< 16,Mia,Singh,mias@email.com,30,New Zealand,0.46,Journalist,Gold,TRUE
---
> 12,Emma,Nguyen,emman@email.com,33,Vietnam,0.0,Researcher,Teal,TRUE
> 13,Alex,Kim,alexk@email.com,48,South Korea,0.0,Professor,Navy,FALSE
> 14,Sophia,Chen,sophiac@email.com,25,China,0.0,Artist,Maroon,TRUE
> 15,Daniel,Patel,danielp@email.com,37,India,0.0,Entrepreneur,Turquoise,FALSE
> 16,Mia,Singh,mias@email.com,30,New Zealand,0.0,Journalist,Gold,TRUE
19,21c19,21
< 18,Ava,Kowalski,avak@email.com,26,Poland,0.68,Marketing Specialist,Indigo,FALSE
< 19,Liam,Müller,liamm@email.com,34,Switzerland,0.93,Consultant,Olive,TRUE
< 20,Zoe,Dubois,zoed@email.com,39,Belgium,0.51,Psychologist,Crimson,FALSE
---
> 18,Ava,Kowalski,avak@email.com,26,Poland,0.0,Marketing Specialist,Indigo,FALSE
> 19,Liam,Müller,liamm@email.com,34,Switzerland,0.0,Consultant,Olive,TRUE
> 20,Zoe,Dubois,zoed@email.com,39,Belgium,0.0,Psychologist,Crimson,FALSE

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 92 remaining solutions by signing in and submitting your own entry
#93 João Filipe Silva / @jfgsilva - Score: 122 - 10/24/24 @ 14:18
:%s/0.<Left>\/<BS><Right>/0.0/g<CR>u<Esc>:<C-P><C-P><Left><Left><Left><Left>\<Right><Right><Right><Right><Right><CR>q<Esc><Esc>uu:5s<BS><BS>%s/<BS><BS><BS>v<BS>\v%s.<BS>/<BS><BS><BS><BS>:<BS><BS>%s/\v[]<Left>0.<BS>-9<Right>.[]<Left>0-<BS><BS><BS><BS>\.<BS><BS><Right><BS>\.[]<Left>0-9<Right>{2}/0\.0/g<CR>:w<CR>:x<CR>

0 comments


Created by: @pacuna

93 active golfers, 273 entries

Leaderboard (lowest score wins):
15
#31 - rowe85 / @rowe85

07/06/2025 at 09:44PM

15
#32 - Gigo / @GiggioG

08/07/2025 at 10:15AM

15
#33 - Jesse / @Solopie

08/18/2025 at 02:06AM

15
#34 - petr-kx / @petr-kx

08/24/2025 at 06:40PM

15
#35 - phaym / @phaym

10/13/2025 at 07:51PM

15
#36 - yaskur0 / @yaskur0

11/11/2025 at 01:23AM

15
#37 - Aly Thobani / @alythobani

11/24/2025 at 10:39PM

15
#38 - Gavin / @GavinKoeng

11/29/2025 at 03:43PM

15
#39 - Konrad Guzek / @kguzek

12/26/2025 at 02:45AM

15
#40 - Ashwin Kumar / @MrHaikuSwan

03/30/2026 at 01:10AM

15
#41 - Rafe Murray / @rafe-murray

04/04/2026 at 05:15AM

15
#42 - MartinDanesh / @MartinDanesh

04/20/2026 at 07:17PM

16
#43 - JMTed / @JMTed

10/05/2024 at 02:51PM

16
#44 - tobi256 / @tobi256

10/07/2024 at 02:22PM

16
#45 - Michael Kebe / @michaelkebe

10/13/2024 at 12:02PM

16
#46 - slash-7 / @slash-7

10/14/2024 at 06:29AM

16
#47 - Håkon Anders Strømsodd / @haakon8855

10/17/2024 at 12:16PM

16
#48 - anatolepain / @anatolepain

10/18/2024 at 02:40PM

16
#49 - Brett Collins / @brett-collins_cbhq

10/25/2024 at 12:28AM

16
#50 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 10:18AM

16
#51 - thedvd98 / @thedvd98

11/17/2024 at 09:36PM

16
#52 - Guilherme / @gsionek

01/02/2025 at 07:31PM

16
#53 - lei / @oizhaolei

01/18/2025 at 02:30AM

16
#54 - Kamal Aghayev / @agayev169

03/04/2025 at 06:34PM

16
#55 - Ole Jan Lars Riemann / @ojlr

04/03/2025 at 03:18PM

16
#56 - Sjur B. / @Apostrophel

05/24/2025 at 10:14PM

16
#57 - Matthew Cooper / @mkcmkc

06/21/2025 at 10:38AM

16
#58 - Pierre Senellart / @PierreSenellart

08/05/2025 at 07:56AM

16
#59 - danieltanto / @danieltanto

08/18/2025 at 01:39AM

16
#60 - Vincent Ranwez / @ranwez

11/06/2025 at 02:02PM