From 59d8e56e048eb5d384649284fb35363931fc3697 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 7 Nov 2020 18:41:10 +0100 Subject: patch 8.2.1967: the session file does not restore the alternate file Problem: The session file does not restore the alternate file. Solution: Add ":balt". Works like ":badd" and also sets the buffer as the alternate file. Use it in the session file. (closes #7269, closes #6714) --- runtime/doc/windows.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt index 5f842c8e07..2a1c10bc5f 100644 --- a/runtime/doc/windows.txt +++ b/runtime/doc/windows.txt @@ -1,4 +1,4 @@ -*windows.txt* For Vim version 8.2. Last change: 2020 Sep 02 +*windows.txt* For Vim version 8.2. Last change: 2020 Nov 07 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1119,6 +1119,11 @@ list of buffers. |unlisted-buffer| line when the buffer is first entered. Note that other commands after the + will be ignored. + *:balt* +:balt [+lnum] {fname} + Like `:badd` and also set the alternate file for the current + window to {fname}. + :[N]bd[elete][!] *:bd* *:bdel* *:bdelete* *E516* :bd[elete][!] [N] Unload buffer [N] (default: current buffer) and delete it from -- cgit v1.2.3