justinmk / vim-sneak

The missing motion for Vim :athletic_shoe:
http://www.vim.org/scripts/script.php?script_id=4809
MIT License
3.24k stars 88 forks source link

Broken text objects in macro #265

Closed MRAAGH closed 3 years ago

MRAAGH commented 3 years ago

When using the affected text objects in a macro, sometimes the plugin's code appears in the file.

STEPS TO REPRODUCE:

  1. start with this file:

    aaab
    aaab
  2. press these keys: ggqqctb,<esc>qj@q

EXPECTED RESULT:

,b
,b

ACTUAL RESULT:

,b
call <SNR>34_rpt(v:operator, 1)
b
justinmk commented 3 years ago

i assume you have t mapped via

map f <Plug>Sneak_f
map F <Plug>Sneak_F
map t <Plug>Sneak_t
map T <Plug>Sneak_T

i can't reproduce this, tested on nvim 0.5 .

leave a comment if it's still an issue, with details of the exact vim version. also disable other plugins.

MRAAGH commented 3 years ago

Vim version: nvim 0.5.0

vimrc used:

" Only load vim-sneak, no other plugin or config
set runtimepath^=~/.local/share/vim
call plug#begin('~/.local/share/vim/plugged')
Plug 'justinmk/vim-sneak'
call plug#end()

OS: Arch Linux