Skip to content

Commit

Permalink
Simplify 'vap' to call expand_selection_to_paragraph directly
Browse files Browse the repository at this point in the history
  • Loading branch information
behrends committed Feb 19, 2012
1 parent 7e5376f commit c8c69f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Default.sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@
"context": [{"key": "setting.command_mode"}, {"key": "vi_can_enter_text_object"}]
},
{ "keys": ["a", "p"], "command": "set_motion", "args": {
"motion": "vi_expand_to_paragraph"},
"motion": "expand_selection_to_paragraph"},
"context": [{"key": "setting.command_mode"}, {"key": "vi_can_enter_text_object"}]
},

Expand Down
4 changes: 0 additions & 4 deletions vintage_motions.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,6 @@ def run(self, edit, character, outer = False):
if outer:
self.view.run_command('expand_selection', {'to': 'brackets', 'brackets': character})

class ViExpandToParagraph(sublime_plugin.TextCommand):
def run(self, edit):
self.view.run_command('expand_selection_to_paragraph')

class ScrollCurrentLineToScreenTop(sublime_plugin.TextCommand):
def run(self, edit, repeat, extend=False):
bos = self.view.visible_region().a
Expand Down

0 comments on commit c8c69f2

Please sign in to comment.