2022-03-13

VIM notes server

gVim, the Vim text editor for Windows is by default compiled with the +clientserver option. This means that it can be used as a server to display text files and run commands sent by another Vim editor.

You can easily check the options included in your Vim instance with the command :

   :version

On Windows, Vim server can be started from the taskbar search box with:

   gvim.exe --servername notes

or from the Windows terminal with an ad-hoc profile:

I can then use my note-taking app to open my notes directly on the Vim server as shown in the video below:

Inside the configuration file, there is an option for specifying a servername or set NONE for turning off this functionality altogether.

Notes to PDF

With the Vim-notes extension, I can also display my notes as an HTML page with:

   :NoteToHtml

This will create a temporary HTML file, which then can be converted to PDF format with WkHTMLtoPDF. WkHTMLtoPDF can be downloaded (7z) from the following URL.