targets.vim icon indicating copy to clipboard operation
targets.vim copied to clipboard

Operating on a 'inner word' motion when first opening a fold operates on the whole fold

Open MasterMedo opened this issue 5 years ago • 1 comments

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:

  1. Create .vimrc as stated at the end of the issue
  2. open the only fold in the file with zo, za or zv
  3. move to any word in the fold
  4. type any operator followed by iw motion (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

MasterMedo avatar Mar 15 '20 08:03 MasterMedo

Thank you, I can reproduce 👍

Might be related to https://github.com/wellle/targets.vim/issues/233.

wellle avatar Mar 15 '20 22:03 wellle