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

Make it more readable

Insert blank lines to make it more organized and readable

Start file
#Set the global prefix key to C-q (default is C-b)
set-option -g prefix C-q
bind
-key C-q last-window
# Remove default binding since we’re replacing
unbind
%
bind
| split-window -h
bind
- split-window -v
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'
# Highlight active window
set-window-option -g window-status-current-bg red
set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'
# Set window notifications
setw
-g monitor-activity on
set -g visual-activity on
# Automatically set window title
setw
-g automatic-rename
End file
#Set the global prefix key to C-q (default is C-b)
set-option -g prefix C-q
bind
-key C-q last-window


# Remove default binding since we’re replacing
unbind
%
bind
| split-window -h
bind
- split-window -v


# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'


# Highlight active window
set-window-option -g window-status-current-bg red
set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'


# Set window notifications
setw
-g monitor-activity on
set -g visual-activity on


# Automatically set window title
setw
-g automatic-rename

View Diff

3a4,5
>
>
7a10,11
>
>
11a16,17
>
>
14a21,22
>
>
17a26,27
>
>

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 651 remaining solutions by signing in and submitting your own entry
#652 Brandon Height / @Lask0x - Score: 93 - 08/08/17 @ 15:33
:2,$s/^#/\r\r#/<CR><Esc>u<Up><Up><Up><Up><Esc>:2,s$/^#/\r\r#<CR>y<Esc>u<Esc>:<Up><C-A><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>$s<Esc><Esc><Esc>ssss<Esc>uus<Esc>u<Esc>:2,$s,<BS>/^#/\r\r#<CR>ZZ

0 comments


Created by: @alimoeeny

652 active golfers, 2009 entries

Leaderboard (lowest score wins):
13
#61 - Johannes H. / @neVexa

09/23/2014 at 10:02AM

13
#62 - benekeusz / @benekeusz

12/09/2014 at 12:39PM

13
#63 - kimber gonzalez / @kimberlycreates

01/13/2015 at 09:08PM

13
#64 - Charles Wu / @Congeec

01/14/2015 at 10:25AM

13
#65 - xieyh11 / @xieyh11

02/28/2015 at 04:10AM

13
#66 - pftb12345 / @pftb12345

04/07/2015 at 06:09AM

13
#67 - Evan Coleman / @edc1591

04/16/2015 at 04:48PM

13
#68 - Raj / @brshenoy

04/17/2015 at 04:15PM

13
#69 - Mutter Mumble / @muttermumble

07/12/2015 at 10:32AM

13
#70 - Liam Thurston / @lthurston188

08/17/2015 at 06:09AM

13
#71 - Walker Boh / @walker_boh

10/08/2015 at 10:45AM

13
#72 - jackliusr / @jackliusr

01/14/2016 at 10:28AM

13
#73 - Michael Buckley / @apolatg

02/13/2016 at 10:09PM

13
#74 - Aleksey Zhidkov / @AlexeyZhidkov

02/18/2016 at 02:56AM

13
#75 - jdupont655 / @jdupont655

09/06/2016 at 02:21PM

13
#76 - 알카포 / @alkpo12

09/09/2016 at 08:48AM

13
#77 - trx / @trxdbg

10/18/2016 at 12:37PM

13
#78 - Pierre Maoui / @p_maoui

12/29/2016 at 04:07PM

13
#79 - Zhihong Liu / @pieapple03

02/27/2017 at 02:14AM

13
#80 - setNull / @dadaojiemo

02/27/2017 at 02:37AM

13
#81 - sijinyuan / @sijinyuan

03/04/2017 at 10:26AM

13
#82 - Solomon / @Trugbildjaeger

03/31/2017 at 05:37PM

13
#83 - 梧桐王子 / @WutongYujie

05/14/2017 at 03:26AM

13
#84 - Bennett Bernardoni / @BBernardoni

07/03/2017 at 08:57PM

13
#85 - Turkey Man / @lvturkeyman

11/13/2017 at 07:19AM

13
#86 - BarbaJol / @drpproteus

12/31/2017 at 02:28PM

13
#87 - ParasamGateZero / @ParasamGateZero

02/18/2018 at 05:08AM

13
#88 - GreenPinguin / @GreenPinguin2

03/20/2018 at 09:01AM

13
#89 - Daniël De Koker / @daniel_koker

06/27/2018 at 10:01AM

13
#90 - Sando Itchi / @sando_itchi

11/12/2018 at 02:54PM