diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-06-18 07:11:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-18 07:11:17 +0800 |
commit | 9d200c78a5e97720ba8a697c4cc0990fdafbc39f (patch) | |
tree | da1590f26d90e236fcf893729da8cfe507613719 | |
parent | 7ce261c064e921467e200f20318b9efbacc75eba (diff) | |
download | rneovim-9d200c78a5e97720ba8a697c4cc0990fdafbc39f.tar.gz rneovim-9d200c78a5e97720ba8a697c4cc0990fdafbc39f.tar.bz2 rneovim-9d200c78a5e97720ba8a697c4cc0990fdafbc39f.zip |
vim-patch:ca47114: runtime(doc): improve the vim-shebang example (#29382)
https://github.com/vim/vim/commit/ca471145321fa8089071330b7637ad3950ac4f11
Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | runtime/doc/various.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt index 63fca2c1aa..9afb871d93 100644 --- a/runtime/doc/various.txt +++ b/runtime/doc/various.txt @@ -143,9 +143,15 @@ gx Opens the current filepath or URL (decided by *:#!* *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 |