1- *if_mzsch.txt* For Vim version 9.1. Last change: 2020 Oct 14
1+ *if_mzsch.txt* For Vim version 9.1. Last change: 2025 Oct 14
22
33
44 VIM REFERENCE MANUAL by Sergey Khorev
@@ -20,7 +20,7 @@ The MzScheme Interface to Vim *mzscheme* *MzScheme*
2020Based on the work of Brent Fulgham.
2121Dynamic loading added by Sergey Khorev
2222
23- MzScheme and PLT Scheme names have been rebranded as Racket. For more
23+ MzScheme and PLT Scheme names have been rebranded as Racket. For more
2424information please check http://racket-lang.org
2525
2626Futures and places of Racket version 5.x up to and including 5.3.1 do not
@@ -67,8 +67,8 @@ MzScheme interface defines exception exn:vim, derived from exn.
6767It is raised for various Vim errors.
6868
6969During compilation, the MzScheme interface will remember the current MzScheme
70- collection path. If you want to specify additional paths use the
71- ' current-library-collection-paths' parameter. E.g., to cons the user-local
70+ collection path. If you want to specify additional paths use the
71+ " current-library-collection-paths" parameter. E.g., to cons the user-local
7272MzScheme collection path: >
7373 :mz << EOF
7474 (current-library-collection-paths
@@ -150,9 +150,9 @@ Auto-instantiation of vimext module (can be placed in your |vimrc|): >
150150==============================================================================
1511513. Threads *mzscheme-threads*
152152
153- The MzScheme interface supports threads. They are independent from OS threads,
154- thus scheduling is required. The option 'mzquantum' determines how often
155- Vim should poll for available MzScheme threads.
153+ The MzScheme interface supports threads. They are independent from OS
154+ threads, thus scheduling is required. The option 'mzquantum' determines how
155+ often Vim should poll for available MzScheme threads.
156156NOTE
157157Thread scheduling in the console version of Vim is less reliable than in the
158158GUI version.
@@ -181,12 +181,12 @@ Common
181181 (get-option {option-name} [buffer-or-window] ) Get Vim option value (either
182182 local or global, see set-option).
183183 (set-option {string} [buffer-or-window] )
184- Set a Vim option. String must have option
184+ Set a Vim option. String must have option
185185 setting form (like optname=optval, or
186186 optname+=optval, etc.) When called with
187187 {buffer} or {window} the local option will
188- be set. The symbol 'global can be passed
189- as {buffer-or-window} . Then | :setglobal |
188+ be set. The symbol 'global can be passed
189+ as {buffer-or-window} . Then | :setglobal |
190190 will be used.
191191
192192Buffers *mzscheme-buffer*
@@ -197,31 +197,32 @@ Buffers *mzscheme-buffer*
197197 (get-buff-line {linenr} [buffer] )
198198 Get line from a buffer.
199199 (set-buff-line {linenr} {string} [buffer] )
200- Set a line in a buffer. If {string} is #f,
201- the line gets deleted. The [buffer]
202- argument is optional. If omitted, the
200+ Set a line in a buffer. If {string} is
201+ #f, the line gets deleted. The [buffer]
202+ argument is optional. If omitted, the
203203 current buffer will be used.
204204 (get-buff-line-list {start} {end} [buffer] )
205- Get a list of lines in a buffer. {Start}
205+ Get a list of lines in a buffer. {Start}
206206 and {end} are 1-based and inclusive.
207207 (set-buff-line-list {start} {end} {string-list} [buffer] )
208- Set a list of lines in a buffer. If
208+ Set a list of lines in a buffer. If
209209 string-list is #f or null, the lines get
210- deleted. If a list is shorter than
210+ deleted. If a list is shorter than
211211 {end} -{start} the remaining lines will
212212 be deleted.
213213 (get-buff-name [buffer] ) Get a buffer's text name.
214214 (get-buff-num [buffer] ) Get a buffer's number.
215215 (get-buff-size [buffer] ) Get buffer line count.
216216 (insert-buff-line-list {linenr} {string/string-list} [buffer] )
217217 Insert a list of lines into a buffer after
218- {linenr} . If {linenr} is 0, lines will be
218+ {linenr} . If {linenr} is 0, lines will be
219219 inserted at start.
220- (curr-buff) Get the current buffer. Use other MzScheme
221- interface procedures to change it.
220+ (curr-buff) Get the current buffer. Use other
221+ MzScheme interface procedures to change
222+ it.
222223 (buff-count) Get count of total buffers in the editor.
223224 (get-next-buff [buffer] ) Get next buffer.
224- (get-prev-buff [buffer] ) Get previous buffer. Return #f when there
225+ (get-prev-buff [buffer] ) Get previous buffer. Return #f when there
225226 are no more buffers.
226227 (open-buff {filename} ) Open a new buffer (for file "name")
227228 (get-buff-by-name {buffername} ) Get a buffer by its filename or #f
@@ -258,7 +259,7 @@ evaluate MzScheme expressions and pass their values to Vim script.
2582596. Using Function references *mzscheme-funcref*
259260
260261MzScheme interface allows use of | Funcref | s so you can call Vim functions
261- directly from Scheme. For instance: >
262+ directly from Scheme. For instance: >
262263 function! MyAdd2(arg)
263264 return a:arg + 2
264265 endfunction
@@ -273,7 +274,7 @@ directly from Scheme. For instance: >
273274==============================================================================
2742757. Dynamic loading *mzscheme-dynamic* *E815*
275276
276- On MS-Windows the MzScheme libraries can be loaded dynamically. The | :version |
277+ On MS-Windows the MzScheme libraries can be loaded dynamically. The | :version |
277278output then includes | +mzscheme/dyn | .
278279
279280This means that Vim will search for the MzScheme DLL files only when needed.
@@ -291,7 +292,7 @@ name of the library to load. The initial value is specified at build time.
291292
292293The version of the DLL must match the MzScheme version Vim was compiled with.
293294For MzScheme version 209 they will be "libmzsch209_000.dll" and
294- "libmzgc209_000.dll". To know for sure look at the output of the ":version"
295+ "libmzgc209_000.dll". To know for sure look at the output of the ":version"
295296command, look for -DDYNAMIC_MZSCH_DLL="something" and
296297-DDYNAMIC_MZGC_DLL="something" in the "Compilation" info.
297298
0 commit comments