mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
vim-patch:ca47114: runtime(doc): improve the vim-shebang example (#29382)
ca47114532
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user