tpope / vim-commentary

commentary.vim: comment stuff out
http://www.vim.org/scripts/script.php?script_id=3695
5.9k stars 214 forks source link

Last selection changed by using text object, e.g. ygc #106

Open kiryph opened 5 years ago

kiryph commented 5 years ago
  1. Select some text visually
  2. Move a round and use the text object dgc, ygc, >gc
  3. Type gv will select the text-object in step 2.

If I use a builtin text object in step 2, e.g. yap, gvselects the selection from step 1.

This has been reported at several locations:

The answer by Wellle and comment by kana indicate that this might be something which requires a change to vim and cannot be resolved on the plugin side.