texlive[54949] Master/texmf-dist: context-vim (30apr20)
commits+karl at tug.org
commits+karl at tug.org
Thu Apr 30 23:27:30 CEST 2020
Revision: 54949
http://tug.org/svn/texlive?view=revision&revision=54949
Author: karl
Date: 2020-04-30 23:27:30 +0200 (Thu, 30 Apr 2020)
Log Message:
-----------
context-vim (30apr20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/context/third/vim/VERSION
trunk/Master/texmf-dist/doc/context/third/vim/vim.txt
trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex
Modified: trunk/Master/texmf-dist/doc/context/third/vim/VERSION
===================================================================
--- trunk/Master/texmf-dist/doc/context/third/vim/VERSION 2020-04-30 21:27:15 UTC (rev 54948)
+++ trunk/Master/texmf-dist/doc/context/third/vim/VERSION 2020-04-30 21:27:30 UTC (rev 54949)
@@ -1 +1 @@
-2020.04.25
+2020.04.29
Modified: trunk/Master/texmf-dist/doc/context/third/vim/vim.txt
===================================================================
--- trunk/Master/texmf-dist/doc/context/third/vim/vim.txt 2020-04-30 21:27:15 UTC (rev 54948)
+++ trunk/Master/texmf-dist/doc/context/third/vim/vim.txt 2020-04-30 21:27:30 UTC (rev 54949)
@@ -543,7 +543,9 @@
Clearly, `/BTEX ... /ETEX` is not a valid syntax in any language, so if these
tags are used outside of a comment region (as is the case in the above
example), the code will not compile. So, if the code also needs to run, then
-these annotations have to be restricted to the comment region of the code.
+these annotations have to be restricted to the comment region of the code or
+the output typeset by ConTeXt has to be manually tested for correctness prior
+to the release of your document.
Although, in practice, the use of both escape mechanisms is restricted to
comments, the two mechanism have subtle differences. When using
@@ -677,6 +679,28 @@
synonyms. Thus, whenever the documentation says `option=yes`, you may use
`option=on`. And vice-versa. One less thing to worry about!
+Name (and location) of the VIM executable
+-----------------------------------------
+
+By default, the `t-vim` module calls the program `vim` to do syntax
+highlighting. If the `vim` program is not in the `$PATH`, the `vimcommand`
+option may be used to specify the compete path of `vim`:
+
+ \setupvimtyping[vimcommand=/path/to/vim]
+
+This option may also be used to call [Neovim] instead of `vim` to do syntax
+highlighting, by either using
+
+ \setupvimtyping[vimcommand=nvim]
+
+or, if `nvim` is not in the `$PATH`, using
+
+ \setupvimtyping[vimcommand=/path/to/nvim]
+
+[Neovim]: https://neovim.io/
+
+As of 2020.04.29, `nvim` is about 10% faster than `vim`.
+
A bit of a history
------------------
Modified: trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex 2020-04-30 21:27:15 UTC (rev 54948)
+++ trunk/Master/texmf-dist/tex/context/third/vim/t-vim.tex 2020-04-30 21:27:30 UTC (rev 54949)
@@ -1,6 +1,6 @@
%D \module
%D [ file=t-vim,
-%D version=2020.04.25,
+%D version=2020.04.29,
%D title=\CONTEXT\ User Module,
%D subtitle=Vim syntax highlighting,
%D author=Aditya Mahajan,
@@ -9,7 +9,7 @@
%D email=adityam <at> ieee <dot> org,
%D license=Simplified BSD License]
-\writestatus{loading}{Vim syntax highlighting (ver: 2020.04.25)}
+\writestatus{loading}{Vim syntax highlighting (ver: 2020.04.29)}
\startmodule [vim]
\usemodule [filter] % loads module catcodes
@@ -17,6 +17,7 @@
\startinterface all
\setinterfaceconstant {vimrc} {vimrc}
+ \setinterfaceconstant {vimcommand} {vim\c!command}
\stopinterface
\unprotectmodulecatcodes
@@ -112,15 +113,15 @@
{\def\vimtyping at script_name{kpse:2context.vim}}}
\def\vimtyping at filter_command
- {vim -u \vimrc_filename\space % read global config file
+ {\externalfilterparameter\c!vimcommand\space
+ -u \vimrc_filename\space % read global config file
% --startuptime log
% -V3log
-X % dont connect to X server
-i NONE % dont use viminfo file
--noplugin % dont load plugins
- -e % run in ex mode
- -s % silent
- -C % set compatible
+ -es % run in ex mode in silent
+ % -C % set compatible
-n % no swap file
-c "syntax manual" % don't load filetype detection
-c "set syntax=\externalfilterparameter\c!syntax" %
@@ -157,7 +158,8 @@
\setvalue{\vimtyping at id-\c!escape-\v!yes}{1}
\setupvimtyping
- [% \c!tab=4,
+ [\c!vimcommand={vim},
+ % \c!tab=4,
% \c!start=1,
% \c!stop=0,
% \c!syntax=context,
More information about the tex-live-commits
mailing list.