tpope / vim-speeddating

speeddating.vim: use CTRL-A/CTRL-X to increment dates, times, and more
http://www.vim.org/scripts/script.php?script_id=2120
963 stars 40 forks source link

block mode visual selection is ignored. #28

Open systemmonkey42 opened 6 years ago

systemmonkey42 commented 6 years ago

Hi,

Speeddating in visual block mode ignores the selection boundary.

With regular vim, typing ctrl-a in visual block mode, will only change the colunms which are selected.

Eg, With visual-block mode Ctrl-v -> [1]000 <- block selected character Ctrl-a -produces 2000 in vim, but 1001 with vim-speeddating installed.

Ctrl-v -> [9]000 <- block selected character Ctrl-a -produces 10000 in vim, but 9001 with vim-speeddating installed.

Is it possible to get the normal vim behaviour back with vim-speeddating in visual block mode?

Thanks

tpope commented 6 years ago

This was an edge case I didn't consider. I would be okay with limiting speeddating's overrides to linewise and characterwise modes, if you want to attempt to add a passthrough for blockwise.