Skip to content

Commit 0049c5c

Browse files
authored
Merge pull request #1594 from vim-jp/hh-update-various
Update various.{txt,jax}
2 parents 9278582 + 4b00cdd commit 0049c5c

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

doc/various.jax

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*various.txt* For Vim バージョン 9.1. Last change: 2024 Jun 15
1+
*various.txt* For Vim バージョン 9.1. Last change: 2024 Jun 17
22

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -141,9 +141,15 @@ g8 カーソル位置の文字のバイト列を 16 進数で表示します
141141
:#!{anything} 無視されます。そのため、次のようにして Vim script を実
142142
行することができます: >
143143
#!vim -S
144-
echo "this is a Vim script"
145-
quit
144+
let mylogbook='$HOME/logbook.md'
145+
exe $':e {mylogbook}'
146+
$
147+
put ='## ' .. strftime('%d. %b %Y')
148+
norm! o
146149
<
150+
新しい日記エントリを作成するために、スクリプトを実行可
151+
能にして実行します。
152+
147153
*:z* *E144*
148154
:[range]z[+-^.=][count] [range]に指定した行の周辺を表示します。[range] を省略
149155
した場合は現在行の周辺を表示します。

en/various.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*various.txt* For Vim version 9.1. Last change: 2024 Jun 15
1+
*various.txt* For Vim version 9.1. Last change: 2024 Jun 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -141,9 +141,15 @@ g8 Print the hex values of the bytes used in the
141141
*:#!* *vim-shebang*
142142
:#!{anything} Ignored, so that you can start a Vim script with: >
143143
#!vim -S
144-
echo "this is a Vim script"
145-
quit
144+
let mylogbook='$HOME/logbook.md'
145+
exe $':e {mylogbook}'
146+
$
147+
put ='## ' .. strftime('%d. %b %Y')
148+
norm! o
146149
<
150+
Make that script executable and run it to create a
151+
new diary entry.
152+
147153
*:z* *E144*
148154
:[range]z[+-^.=][count] Display several lines of text surrounding the line
149155
specified with [range], or around the current line

0 commit comments

Comments
 (0)