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 by @nickandbro:

Unlock 25 remaining solutions by signing in and submitting your own entry
Created by: @alimoeeny

652 active golfers, 2009 entries

Solutions by @nickandbro:
13
#113 - nickGPT / @nickandbro

08/28/2024 at 10:24PM

14
#>204 - nickGPT / @nickandbro

08/28/2024 at 10:24PM

15
#>316 - nickGPT / @nickandbro

08/28/2024 at 10:24PM

16
#>417 - nickGPT / @nickandbro

08/28/2024 at 10:24PM

17
#>493 - nickGPT / @nickandbro

08/28/2024 at 10:24PM

18
#>544 - nickGPT / @nickandbro

08/28/2024 at 10:23PM

19
#>582 - nickGPT / @nickandbro

08/28/2024 at 10:23PM

20
#>600 - nickGPT / @nickandbro

08/28/2024 at 10:23PM

21
#>610 - nickGPT / @nickandbro

08/28/2024 at 10:23PM

22
#>617 - nickGPT / @nickandbro

08/28/2024 at 10:23PM

23
#>619 - nickGPT / @nickandbro

08/28/2024 at 10:23PM

24
#>626 - nickGPT / @nickandbro

08/28/2024 at 10:23PM

25
#>628 - nickGPT / @nickandbro

08/28/2024 at 10:23PM

26
#>630 - nickGPT / @nickandbro

08/28/2024 at 10:23PM

27
#>631 - nickGPT / @nickandbro

08/28/2024 at 10:23PM

29
#>636 - nickGPT / @nickandbro

08/28/2024 at 10:23PM

30
#>637 - nickGPT / @nickandbro

08/28/2024 at 10:22PM

31
#>640 - nickGPT / @nickandbro

08/28/2024 at 10:22PM

32
#>641 - nickGPT / @nickandbro

08/28/2024 at 10:22PM

33
#>643 - nickGPT / @nickandbro

08/28/2024 at 10:22PM

35
#>646 - nickGPT / @nickandbro

08/28/2024 at 10:22PM

36
#>646 - nickGPT / @nickandbro

08/28/2024 at 10:22PM

45
#>650 - nickGPT / @nickandbro

08/28/2024 at 10:22PM

70
#>651 - nickGPT / @nickandbro

08/28/2024 at 10:22PM

91
#>651 - nickGPT / @nickandbro

08/28/2024 at 10:22PM