Skip to content

Instantly share code, notes, and snippets.

View statox's full-sized avatar

Adrien Fabre statox

View GitHub Profile
#!/bin/bash
# Get a wallpaper randomly from different subreddits
# Works with Gnome3
# Put it in a crontab
# List of the subbreddit to use (if the variable is empty
# r/Wallpaper will be used
SUBS=( Wallpaper WQHD_Wallpaper WidescreenWallpaper wallpaperdump )
# Directory containing the background
@statox
statox / tmux_local_install.sh
Last active September 15, 2015 00:24 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8

Your problem with Vim is that you don't grok vi.

Answer by Jim Dennis on Stack Overflow question: what is your most productive shortcut?

You mention cutting with yy and complain that you almost never want to cut whole lines. In fact programmers, editing source code, very often want to work on whole lines, ranges of lines and blocks of code. However, yy is only one of many way to yank text into the anonymous copy buffer (or "register" as it's called in vi).

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname