Skip to content

Instantly share code, notes, and snippets.

View alanocallaghan's full-sized avatar

Alan O'Callaghan alanocallaghan

View GitHub Profile
@alanocallaghan
alanocallaghan / .nanorc
Last active May 4, 2018 13:48
Place this in your `~/.nanorc` for great R syntax highlighting in the only console editor I can be bothered to learn. Thanks to the author and editor for providing it in the first place.
############################################
# Syntax highlighting for R #
# by Stephen Haptonstahl #
# March 15, 2009 #
# http://srh.ucdavis.edu/drupal/node/20 #
# edited by Mike Miller #
# Placed on GitHub by Alan O'Callaghan #
# (could no longer find the original) #
############################################
@alanocallaghan
alanocallaghan / gist:102cf2cc1c5f1dcd9074aebccc93dc7c
Created October 4, 2016 15:11
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after