When pasting a line at the beginning of an open fold, the fold closes. To 
reproduce:

% vim -N --noplugin -u NONE -U NONE -c "set sw=2 fdm=indent"

Then type:
One
  Two
  Three

(there are two spaces in front of “Two” and “Three”). Then within vim:

:2normal YP

The fold is now closed and the pasted line is hidden in the fold.

I can reproduce this with vim 8.0 patch 402

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui