Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed d/y up/down inconsistency with vim #187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions vintage.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,10 @@ def run(self, edit, action_command, action_args,
motion_repeat = int(motion_repeat)
motion_mode = int(motion_mode)

# Delete and yank should operate on entire lines when moving vertically
if action_command in ['vi_delete', 'vi_copy'] and motion_args.get('by', None) == 'lines':
motion_mode = MOTION_MODE_LINE

# Combine the prefix_repeat and motion_repeat into motion_repeat, to
# allow commands like 2yy to work by first doing the motion twice,
# then operating once
Expand Down