File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
- *various.txt* For Vim バージョン 9.1. Last change: 2024 Jun 15
1
+ *various.txt* For Vim バージョン 9.1. Last change: 2024 Jun 17
2
2
3
3
4
4
VIM リファレンスマニュアル by Bram Moolenaar
@@ -141,9 +141,15 @@ g8 カーソル位置の文字のバイト列を 16 進数で表示します
141
141
:#!{anything} 無視されます。そのため、次のようにして Vim script を実
142
142
行することができます: >
143
143
#!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
146
149
<
150
+ 新しい日記エントリを作成するために、スクリプトを実行可
151
+ 能にして実行します。
152
+
147
153
*:z* *E144*
148
154
:[range] z[+-^.=][count] [range] に指定した行の周辺を表示します。[range] を省略
149
155
した場合は現在行の周辺を表示します。
Original file line number Diff line number Diff line change 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
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -141,9 +141,15 @@ g8 Print the hex values of the bytes used in the
141
141
*:#!* *vim-shebang*
142
142
:#!{anything} Ignored, so that you can start a Vim script with: >
143
143
#!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
146
149
<
150
+ Make that script executable and run it to create a
151
+ new diary entry.
152
+
147
153
*:z* *E144*
148
154
:[range] z[+-^.=][count] Display several lines of text surrounding the line
149
155
specified with [range] , or around the current line
You can’t perform that action at this time.
0 commit comments