updated for version 7.3.1270
Problem: Using "Vp" in an empty buffer can't be undone. (Hauke Petersen)
Solution: Save one line in an empty buffer. (Christian Brabandt)
diff --git a/src/ops.c b/src/ops.c
index 57c4b0a..eaad703 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -3497,7 +3497,9 @@
#endif
if (dir == FORWARD)
++lnum;
- if (u_save(lnum - 1, lnum) == FAIL)
+ /* In an empty buffer the empty line is going to be replaced, include
+ * it in the saved lines. */
+ if ((bufempty() ? u_save(0, 1) : u_save(lnum - 1, lnum)) == FAIL)
goto end;
#ifdef FEAT_FOLDING
if (dir == FORWARD)