Skip to content

Instantly share code, notes, and snippets.

@tomschenkjr
Last active October 6, 2015 20:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomschenkjr/3050337 to your computer and use it in GitHub Desktop.
Save tomschenkjr/3050337 to your computer and use it in GitHub Desktop.
Remove period (.) as a separator in R script.
// Characters that are considered to separate words – does not include periods.
// Place comma at the end of the line if there are multiple keybindings.
{"word_separators": "/\\()\"‘-:,;~!@#$%^&*|+=[]{}`~?"}
@andrewheiss
Copy link

Last comment on this stuff, I promise :) (It's been super helpful for me to get Sublime Text set up with R, so thanks!)

This gist and https://gist.github.com/2859378 use typographer's quotes (”“, etc.) instead of straight quotes (") because of WordPress, which makes it so it doesn't work automatically in Sublime Text. It should be "word_separators": "/\\()\"'-:,;<>~!@#$%^&*|+=[]{}\~?"`

@andrewheiss
Copy link

And Markdown struggles with it too :). It removed the backtick before the tilde there…

@tomschenkjr
Copy link
Author

Thanks for the feedback! I changed the quotation marks in the gists. Hopefully it should work on the first copy/paste.

@bryan4887
Copy link

Hi All,

As a complete n00b to sublime text, I was hoping one of you might be able to tell me why adding this keybinding to my User-keybindings file doesn't work. My file looks like:

[
// Characters that are considered to separate words – does not include periods.
// Place comma at the end of the line if there are multiple keybindings.
{"word_separators": "/()"‘-:,;!@#$%^&*|+=[]{}`?"}
]

But this doesn't result in the desired behavior. For example, if I put my cursor in a variable, foo.bar, and press Control-D, which should highlight the whole "word", it only highlights foo rather than the whole variable. Does anyone know why this doesn't work?

Thanks, I appreciate any help.
Bryan

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