home *** CD-ROM | disk | FTP | other *** search
- To: vim-dev@vim.org
- Subject: patch 5.5.045
- Fcc: outbox
- From: Bram Moolenaar <Bram@moolenaar.net>
- ------------
-
- Patch 5.5.045
- Problem: Using "this_session" variable does not work, requires preceding it
- with "v:". Default filename for ":mksession" isn't mentioned
- in the docs. (Fisher)
- Solution: Support using "this_session" to be backwards compatible.
- Files: src/eval.c, runtime/doc/options.txt
-
-
- *** ../vim-5.5.44/src/eval.c Wed Sep 22 10:06:20 1999
- --- src/eval.c Sun Nov 28 14:30:50 1999
- ***************
- *** 125,131 ****
- {"statusmsg", sizeof("statusmsg") - 1, NULL, VAR_STRING, 0},
- {"shell_error", sizeof("shell_error") - 1, NULL, VAR_NUMBER,
- VV_COMPAT+VV_RO},
- ! {"this_session", sizeof("this_session") - 1, NULL, VAR_STRING, 0},
- {"version", sizeof("version") - 1, (char_u *)(VIM_VERSION_MAJOR * 100
- + VIM_VERSION_MINOR), VAR_NUMBER, VV_COMPAT+VV_RO},
- };
- --- 125,131 ----
- {"statusmsg", sizeof("statusmsg") - 1, NULL, VAR_STRING, 0},
- {"shell_error", sizeof("shell_error") - 1, NULL, VAR_NUMBER,
- VV_COMPAT+VV_RO},
- ! {"this_session", sizeof("this_session") - 1, NULL, VAR_STRING, VV_COMPAT},
- {"version", sizeof("version") - 1, (char_u *)(VIM_VERSION_MAJOR * 100
- + VIM_VERSION_MINOR), VAR_NUMBER, VV_COMPAT+VV_RO},
- };
- *** ../vim-5.5.44/runtime/doc/options.txt Sat Oct 2 16:10:34 1999
- --- runtime/doc/options.txt Sat Dec 4 13:40:07 1999
- ***************
- *** 1,4 ****
- ! *options.txt* For Vim version 5.5. Last change: 1999 Oct 02
-
-
- VIM REFERENCE MANUAL by Bram Moolenaar
- --- 1,4 ----
- ! *options.txt* For Vim version 5.5. Last change: 1999 Dec 04
-
-
- VIM REFERENCE MANUAL by Bram Moolenaar
- ***************
- *** 357,370 ****
- directory). {not in Vi}
-
- *:mkv* *:mkvimrc*
- ! :mkv[imrc][!] [file] Like as :mkexrc, but default is ".vimrc" in the
- current directory. The ":version" command is also
- written to the file. {not in Vi}
-
- *:mks* *:mksession*
- ! :mks[ession][!] [file] Like :mkvimrc, but write commands to the end of the
- file that reload the files being edited at the time of
- the command. |session-file|
- The created file can be loaded with a |:source|
- command to recreate the current edit session.
- {not in Vi} {only when compiled with the |+mksession|
- --- 357,371 ----
- directory). {not in Vi}
-
- *:mkv* *:mkvimrc*
- ! :mkv[imrc][!] [file] Like ":mkexrc", but the default is ".vimrc" in the
- current directory. The ":version" command is also
- written to the file. {not in Vi}
-
- *:mks* *:mksession*
- ! :mks[ession][!] [file] Like ":mkvimrc", but write commands to the end of the
- file that reload the files being edited at the time of
- the command. |session-file|
- + The default file name is "Session.vim".
- The created file can be loaded with a |:source|
- command to recreate the current edit session.
- {not in Vi} {only when compiled with the |+mksession|
- ***************
- *** 436,445 ****
- such as creating menu items in the GUI version.
-
- The full filename of your current session is available in the internal
- ! variable "this_session". See |this_session-variable|.
-
- So an example mapping might be (all one line):
- ! > :nmap <S-F1> :wa | execute("mksession " . this_session)<CR>:so $VIM/sessions/
- which saves the files and session, and starts off the command to load another.
-
- ==============================================================================
- --- 437,446 ----
- such as creating menu items in the GUI version.
-
- The full filename of your current session is available in the internal
- ! variable "v:this_session". See |this_session-variable|.
-
- So an example mapping might be (all one line):
- ! > :nmap <S-F1> :wa<Bar>exe "mksession! " . v:this_session<CR>:so $VIM/sessions/
- which saves the files and session, and starts off the command to load another.
-
- ==============================================================================
- *** ../vim-5.5.44/src/version.c Sat Dec 4 13:36:56 1999
- --- src/version.c Sat Dec 4 13:36:42 1999
- ***************
- *** 420,420 ****
- --- 420,421 ----
- { /* Add new patch number below this line */
- + 45,
-
- --
- hundred-and-one symptoms of being an internet addict:
- 230. You spend your Friday nights typing away at your keyboard
-
- --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /
-