comparison runtime/doc/windows.txt @ 22840:7c1e2e3f2d8d v8.2.1967

patch 8.2.1967: the session file does not restore the alternate file Commit: https://github.com/vim/vim/commit/59d8e56e048eb5d384649284fb35363931fc3697 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 7 18:41:10 2020 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Sat, 07 Nov 2020 18:45:04 +0100
parents d4c7b3e9cd17
children fab58304f77d
comparison
equal deleted inserted replaced
22839:5a6b1d00c97e 22840:7c1e2e3f2d8d
1 *windows.txt* For Vim version 8.2. Last change: 2020 Sep 02 1 *windows.txt* For Vim version 8.2. Last change: 2020 Nov 07
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1117 deleted, not wiped, it will be made listed again. 1117 deleted, not wiped, it will be made listed again.
1118 If "lnum" is specified, the cursor will be positioned at that 1118 If "lnum" is specified, the cursor will be positioned at that
1119 line when the buffer is first entered. Note that other 1119 line when the buffer is first entered. Note that other
1120 commands after the + will be ignored. 1120 commands after the + will be ignored.
1121 1121
1122 *:balt*
1123 :balt [+lnum] {fname}
1124 Like `:badd` and also set the alternate file for the current
1125 window to {fname}.
1126
1122 :[N]bd[elete][!] *:bd* *:bdel* *:bdelete* *E516* 1127 :[N]bd[elete][!] *:bd* *:bdel* *:bdelete* *E516*
1123 :bd[elete][!] [N] 1128 :bd[elete][!] [N]
1124 Unload buffer [N] (default: current buffer) and delete it from 1129 Unload buffer [N] (default: current buffer) and delete it from
1125 the buffer list. If the buffer was changed, this fails, 1130 the buffer list. If the buffer was changed, this fails,
1126 unless when [!] is specified, in which case changes are lost. 1131 unless when [!] is specified, in which case changes are lost.