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 621 remaining solutions by signing in and submitting your own entry
#622 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

622 active golfers, 1891 entries

Leaderboard (lowest score wins):
14
#181 - Vladimir Leskov / @vladimirlesk

11/25/2019 at 09:57PM

14
#182 - Jason Neylon / @jasonneylon

04/02/2020 at 08:42PM

14
#183 - iBhagwan / @iiBhagwan

05/20/2020 at 06:28PM

14
#184 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 03:50PM

14
#185 - chocolate / @chocola81394123

11/29/2020 at 06:30AM

14
#186 - roudens / @roudens2

01/04/2021 at 09:42AM

14
#187 - Ray Dennis / @raysden

01/05/2021 at 11:11PM

14
#188 - hepebexè / @hepebexe

01/07/2021 at 09:59PM

14
#189 - Michel Viktor / @tomkpz

07/27/2021 at 02:17AM

14
#190 - Jean George / @JeanGeo20504212

10/15/2021 at 03:10PM

14
#191 - russellzhaomao / @russellzhaomao

05/25/2022 at 04:57AM

15
#192 - Maciej Suchecki / @mcSuchecki

12/21/2011 at 07:25PM

15
#193 - Matthew Cupps / @matthewcupps

12/21/2011 at 07:28PM

15
#194 - John Anderson / @opejn

12/24/2011 at 04:18AM

15
#195 - Dan Dorman / @dandorman

12/25/2011 at 04:38AM

15
#196 - Rik Lomas / @riklomas

12/25/2011 at 09:06PM

15
#197 - perpetoom / @perpetoom

12/30/2011 at 12:59AM

15
#198 - Xavier Nayrac / @lkdjiin

01/02/2012 at 10:55AM

15
#199 - Anders H. Madsen / @andershellerup

01/02/2012 at 11:57PM

15
#200 - twobit / @_2bt

01/03/2012 at 10:14PM

15
#201 - captain_morgan / @captain_morgan

01/05/2012 at 07:50PM

15
#202 - Mikael Amborn / @mikaelamborn

01/21/2012 at 12:48PM

15
#203 - oliver mueller / @marcontwit

01/26/2012 at 05:31AM

15
#204 - Ashley Feniello / @AshleyFen

01/29/2012 at 06:37AM

15
#205 - Tesnorth / @Tesnorth

01/30/2012 at 09:18PM

15
#206 - veki / @vx_ras

02/01/2012 at 10:58AM

15
#207 - Tom White / @twar59

02/03/2012 at 04:04PM

15
#208 - Henri Wiechers / @hwiechers

02/08/2012 at 09:05AM

15
#209 - Kurt Gaastra / @KGaastra

02/10/2012 at 10:53PM

15
#210 - Per Nissilä / @PerNissila

02/12/2012 at 06:08PM