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

588 active golfers, 1761 entries

Leaderboard (lowest score wins):
18
#481 - Zuzana Dostalova / @Jocinka

03/15/2015 at 09:34PM

18
#482 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

04/03/2015 at 08:48PM

18
#483 - Mauro Persano / @fzort

06/05/2015 at 10:23PM

18
#484 - Endre Galaczi / @galacziendre

08/11/2015 at 04:54PM

18
#485 - coltruindie / @e10nevwa

10/12/2015 at 01:01PM

18
#486 - ハチポケッツ / @8pockets

11/27/2015 at 04:51AM

18
#487 - TETSU / @kaoru6strings

04/18/2016 at 03:01AM

18
#488 - Daniel Bellenger / @DanielBellenger

09/30/2016 at 08:02PM

18
#489 - Remus Dalrymple / @bornintheflames

05/07/2017 at 11:07PM

18
#490 - phucvin / @phucvin

02/14/2018 at 05:00PM

18
#491 - Brent Woo / @BrentPWoo

10/05/2018 at 08:46PM

18
#492 - Fabio Branquinho / @branquif

11/12/2018 at 08:44PM

18
#493 - Shunichi Kanade / @shunkana

12/02/2018 at 10:06AM

19
#494 - Sebastian Korten / @FlashKorten

12/29/2011 at 02:42PM

19
#495 - Martin Klepsch / @mklappstuhl

01/30/2012 at 01:35PM

19
#496 - Cody Pearson / @DyslexicExNinja

02/04/2012 at 01:36AM

19
#497 - Jyun-Fan Tsai / @fakecolor

02/04/2012 at 06:49AM

19
#498 - Jay Stotz / @jstotz

02/04/2012 at 02:58PM

19
#499 - Alan Oliver / @alol

02/14/2012 at 05:42PM

19
#500 - skellam / @skellam

02/20/2012 at 07:35PM

19
#501 - Bernhard Urban / @lewurm

02/21/2012 at 05:56PM

19
#502 - bburky / @bburky

02/24/2012 at 03:43AM

19
#503 - naught101 / @naught101

03/14/2012 at 12:53PM

19
#504 - Nathan Manousos / @trafnar

04/01/2012 at 09:27AM

19
#505 - Eric Weikl / @ericweikl

05/09/2012 at 08:23PM

19
#506 - Josh Steiner / @josh_steiner

06/12/2012 at 08:15PM

19
#507 - Adelar S. Queiróz / @adelarsq

11/25/2012 at 03:33PM

19
#508 - Ben Baker-Smith / @Bit_Synthesis

12/14/2012 at 02:14AM

19
#509 - Woojung Kim 김우중 / @_kimwz

07/12/2013 at 04:39AM

19
#510 - Joel Taylor / @joelteon_

07/23/2013 at 07:49PM