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):
14
#181 - Jon Krause / @jkrause314

11/27/2016 at 08:06PM

14
#182 - harpocrates744 / @harpocrates744

09/05/2017 at 11:40PM

14
#183 - DHM / @DHM29978992

04/25/2018 at 02:58AM

14
#184 - sspan / @sspantz

07/05/2018 at 08:42AM

14
#185 - Bart3k / @Bart3k3

09/19/2018 at 11:40AM

14
#186 - Mihai / @mihaicristiant

12/09/2018 at 04:08PM

14
#187 - Vimfiz / @vimfiz

04/30/2019 at 04:57PM

14
#188 - Lory / @Lory46845742

11/14/2019 at 01:14PM

14
#189 - Vladimir Leskov / @vladimirlesk

11/25/2019 at 09:57PM

14
#190 - Jason Neylon / @jasonneylon

04/02/2020 at 08:42PM

14
#191 - iBhagwan / @iiBhagwan

05/20/2020 at 06:28PM

14
#192 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 03:50PM

14
#193 - chocolate / @chocola81394123

11/29/2020 at 06:30AM

14
#194 - roudens / @roudens2

01/04/2021 at 09:42AM

14
#195 - Ray Dennis / @raysden

01/05/2021 at 11:11PM

14
#196 - hepebexè / @hepebexe

01/07/2021 at 09:59PM

14
#197 - Michel Viktor / @tomkpz

07/27/2021 at 02:17AM

14
#198 - Jean George / @JeanGeo20504212

10/15/2021 at 03:10PM

14
#199 - russellzhaomao / @russellzhaomao

05/25/2022 at 04:57AM

14
#200 - Alex / @AlexanderHeatl2

07/09/2022 at 05:02PM

14
#201 - loupiot.veloce / @LoupiotVeloce

07/27/2022 at 05:39AM

14
#202 - Qing Liu / @poeminlash

08/10/2022 at 06:08AM

14
#203 - 刘宏亮 / @AkeyCoy

09/24/2022 at 03:48PM

14
#204 - Anaritus / @Anaritus

02/26/2024 at 08:58PM

14
#205 - Peter Wang / @jhkjhkjhjkhk

01/29/2025 at 08:07PM

15
#206 - Maciej Suchecki / @mcSuchecki

12/21/2011 at 07:25PM

15
#207 - Matthew Cupps / @matthewcupps

12/21/2011 at 07:28PM

15
#208 - John Anderson / @opejn

12/24/2011 at 04:18AM

15
#209 - Dan Dorman / @dandorman

12/25/2011 at 04:38AM

15
#210 - Rik Lomas / @riklomas

12/25/2011 at 09:06PM