Skip to content

Instantly share code, notes, and snippets.

@reinholdsson
Last active December 19, 2015 16:28
Show Gist options
  • Save reinholdsson/5983462 to your computer and use it in GitHub Desktop.
Save reinholdsson/5983462 to your computer and use it in GitHub Desktop.
Mac Programming Setup

Mac Programming Setup

Git

Workflow

Dotfiles

Sublime Text

R

[
	// Modified Sublime-REPL keybindings for an "R-friendly" set of shortcuts.
	// Copy and paste this text into the Key Bindings - User (under Preferences menu).
	// For more information, see http://tomschenkjr.net/2012/05/17/using-sublime-text-2-for-r/
	// Executes a selection of text in REPL, latter only displays code and does not execute
	{ "keys": ["command+shift+r", "enter"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
	{ "keys": ["alt+r", "enter"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
	{ "keys": ["command+shift+r", "r"], "command": "repl_transfer_current", "args": {"scope": "selection", "action":"view_write"}},
	// Executes the entire file (build) in REPL, latter only displays code and does not execute
	{ "keys": ["command + f7"], "command": "repl_transfer_current", "args": {"scope": "file"}},
	{ "keys": ["command + f7", "r"], "command": "repl_transfer_current", "args": {"scope": "file", "action":"view_write"}},
	// Executes line(s) of text in REPL terminal, latter only displays code and does not execute
	{ "keys": ["command+alt+r"], "command": "repl_transfer_current", "args": {"scope": "lines"}},
	{ "keys": ["command+alt+r", "r"], "command": "repl_transfer_current", "args": {"scope": "lines", "action":"view_write"}},
	// Executes a block (e.g., a custom function) of text in REPL terminal, latter only displays code and does not execute
	{ "keys": ["command+shift+alt+r"], "command": "repl_transfer_current", "args": {"scope": "block"}},
	{ "keys": ["command+shift+alt+r", "r"], "command": "repl_transfer_current", "args": {"scope": "block", "action":"view_write"}}
]

Plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment