Posts

Showing posts from February, 2022

Vim: copy text directly to the operating system clipboard

Image
Cut and copy in Vim: introduction As an introduction to the topic regarding the Cut, Copy and Paste functions in Vim you can read a previous article of mine . The subject of the current article is, instead, a Vim functionality I discovered while reading this page and which is closely related to the previous topic. Vim can directly redirect cut and copy operations performed on texts to the system memory register ( clipboard ). Therefore, it is not necessary to select the text first, in order to copy it into the clipboard, as is the experience with other writing systems on digital devices. In short: you simply direct the operation (the same as normally used for the specific command) to the operating system memory ( clipboard ) (or, to be more precise to the + register). This feature saves you time when exchanging data from Vim to other applications in the operating system. Vim: examples of direct sending to system memory ( clipboard ) A few examples can make it clear. Fi

Using Emacs to write scores in LilyPond

Image
About LilyPond LilyPond is a language for producing elegant musical scores, structurally similar to LaTeX with which it can integrate to generate documents containing text and music (for the integration between LilyPond and LaTeX you can read to this article of mine .) Also in LilyPond, as in LaTeX, you can write the content with various editors. Very useful, especially to learn the syntax, is the editor called Frescobaldi . For those who have already learned the syntax, it may be useful, instead, to use the endless potential of Emacs and Vim , This article is dedicated to Emacs. A similar article dedicated to Vim is published here . In the LilyPond user manual, currently at version 2.22, there are some specific indications for use with Emacs (see next paragraph). Here you will find some additional information about the configuration and interface of Emacs dedicated to LilyPond. All steps have been tested on two Linux distributions: Ubuntu 21.10 and Arch. The official Lil