runtime(doc): improve the vim-shebang example
Commit:
https://github.com/vim/vim/commit/ca471145321fa8089071330b7637ad3950ac4f11
Author: Christian Brabandt <[email protected]>
Date: Mon Jun 17 13:06:34 2024 +0200
runtime(doc): improve the vim-shebang example
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index d9bcdfa54..1ce892733 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -1,4 +1,4 @@
-*various.txt* For Vim version 9.1. Last change: 2024 Jun 15
+*various.txt* For Vim version 9.1. Last change: 2024 Jun 17
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -141,9 +141,15 @@ g8 Print the hex values of the bytes used
in the
*:#!* *vim-shebang*
:#!{anything} Ignored, so that you can start a Vim script with: >
#!vim -S
- echo "this is a Vim script"
- quit
+ let mylogbook='$HOME/logbook.md'
+ exe $':e {mylogbook}'
+ $
+ put ='## ' .. strftime('%d. %b %Y')
+ norm! o
<
+ Make that script executable and run it to create a
+ new diary entry.
+
*:z* *E144*
:[range]z[+-^.=][count] Display several lines of text surrounding the
line
specified with [range], or around the current line
--
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1sJAKI-000i85-Hq%40256bit.org.