t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 111 forks source link

Executing `yg_` from within the line doesn't copy from cursor till end of line but rather copies the whole line. #1036

Closed JasoonS closed 6 years ago

JasoonS commented 6 years ago

In vim yg_ copies from cursor till end of line including the new line character, but in vim-mode-plus it copies the whole line (in other words it is the same as yy).

OS: Ubuntu 17.10 Atom version: 1.24.0 atom-vim-mode-plus version: 1.28.1

Check list

You have to check all before open issue.

t9md commented 6 years ago

y is yank operator, g _ is motion to move to last-non-blank-char. Both are implemented in vmp too. So it's work in my environment. See this GIF, flashed area is where vmp yanked.

help

I think g _ is not correctly mapped in your env. Does sole g _ motion work in your environment?

JasoonS commented 6 years ago

It seems to be working now, sorry to waste your time, I really don't know what changed.

Thank you for the great work!