Skip to content

Instantly share code, notes, and snippets.

@brunobord
Forked from n1k0/*.sublime-keymap
Created May 24, 2012 08:40
Show Gist options
  • Save brunobord/2780244 to your computer and use it in GitHub Desktop.
Save brunobord/2780244 to your computer and use it in GitHub Desktop.
SublimeText2 macro and key binding for quickly wrapping text at 80 columns
/**
* Sample key binding (emacs users will hate it, but they're probably not using SublimeText2)
*
*/
[
{ "keys": ["ctrl+w"], "command": "run_macro_file", "args": {"file": "Packages/User/Quick Wrap.sublime-macro"}}
]
/**
* wrap_line command will use the "rulers" settings to calculate le line width.
*/
[
{ "keys": ["alt+q"], "command": "wrap_line"}
]
[
"rulers": [ 80, 120],
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment