targets.vim
targets.vim copied to clipboard
Operating on a 'inner word' motion when first opening a fold operates on the whole fold
Operating on an inner word motion when opening a fold for the first time operates on the whole fold rather than just on the word itself
Steps to reproduce:
- Create
.vimrcas stated at the end of the issue - open the only fold in the file with
zo,zaorzv - move to any word in the fold
- type any operator followed by
iwmotion (e.g.viw)
call plug#begin('~/.vim/plugged')
Plug 'wellle/targets.vim'
call plug#end()
" TODO {{{
" first time the fold is opened; moving the cursor to any word and pressing
" viw/ciw/diw operates on the most outer fold, not just on the word itself
" }}}
" vim: fdm=marker fdl=0
Thank you, I can reproduce 👍
Might be related to https://github.com/wellle/targets.vim/issues/233.