Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit d1865c3373718fb8848d636182955ea222f73bfc @jcartledge committed Oct 13, 2012
Showing with 47 additions and 0 deletions.
  1. +47 −0 Default.sublime-keymap
@@ -0,0 +1,47 @@
+[
+
+ // `cs` triggers surround_change in command mode
+ {
+ "keys": ["s"],
+ "command": "surround_change",
+ "context": [
+ {"key": "setting.command_mode"},
+ {"key": "vi_action", "operand": "enter_insert_mode"}
+ ]
+ }
+
+ // `ds` triggers surround_delete in command mode
+ , {
+ "keys": ["s"],
+ "command": "surround_delete",
+ "context": [
+ {"key": "setting.command_mode"},
+ {"key": "vi_action", "operand": "vi_delete"}
+ ]
+ }
+
+ // `ys` accepts a motion and triggers surround_selection in command mode
+ , {
+ "keys": ["s"],
+ "command": "set_action",
+ "args": {
+ "action": "surround_selection",
+ "description": "Surround"
+ },
+ "context": [
+ {"key": "setting.command_mode"},
+ {"key": "vi_action", "operand": "vi_copy"}
+ ]
+ }
+
+ // `s` triggers surround_selection in visual mode
+ , {
+ "keys": ["s"],
+ "command": "surround_selection",
+ "context": [
+ {"key": "setting.command_mode"},
+ {"key": "selection_empty", "operator": "equal", "operand": false, "match_all": false}
+ ]
+ }
+
+]

0 comments on commit d1865c3

Please sign in to comment.