m4xshen / hardtime.nvim

Establish good command workflow and quit bad habit
MIT License
1.38k stars 26 forks source link

Altered yank behavior in visual mode #6

Closed thenbe closed 1 year ago

thenbe commented 1 year ago

When hardtime is enabled (default settings), pressing Y in visual mode has different behavior. It now acts the same as y in that it no longer yanks the entire lines.

Description in help pages: :help v_Y vs :help v_y

Workaround

As a workaround, you can explicitly remove Y and y from the resetting_keys table.

- resetting_keys = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "c", "C", "d", "x", "X", "y", "Y", "p", "P" }
+ resetting_keys = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "c", "C", "d", "x", "X", "p", "P" }
m4xshen commented 1 year ago

Fixed in 891011438a1992985f4daa171d3a9559e24f5c9a.