Franco Pasut Web Site

  • it
  • About
  • Contact
  • Posts
  • Privacy

Posts

October 20, 2022

Vim, UltiSnips and Honza vim-snippets: difference and management of the snippets and UltiSnips folders

What is the subject of this article?

In this article I will talk about Vim, snippets powered by SirVer UltiSnip: “the ultimate solution for snippets in Vim” and Honza vim-snippets (hereafter also simply referred as “honza”).

For some more information you can refer to this previous article of mine.

SirVer UltiSnip is a plugin to launch and manage snippets in Vim.

The application does not contain snippets but you can create your own by following the plugin syntax or use a collection of ready-made snippets.

read more
September 24, 2022

Vim: study on transposing lists of names from horizontal to vertical

Primary purpose of the study.

  • Initial status: series of inline names, separated by a semicolon followed by a space.
  • Objective: Transpose all names into one column by removing both semicolons and spaces.
  • Purpose: Creating list for mail-merging with e-mail client (Thunderbird).
  • Tools: Vim and built-in RegEx function.
  • Example:

Secondary goal

To test the integration between Markdown and css tags.

read more
September 20, 2022

Vim: replace text in all opened buffers with only one command

Vim: do you need to replace some text in all opened buffers?

Do You need to perform a substitution between two words or text fragments in all opened buffers?

The first option is to open all the buffers and perform a search with substitution in each of them.

The search and replace string will look like the one below, where foo will be the data element to be replaced and bar will be the replaced data element.

read more
September 12, 2022

Comparison of Vim and Emacs for a substitution operation using regular expressions

Preface

This article is a summary of two previous posts that you can read at these pages:

  • “Vim: Study on constructing Regular Expressions to delete or reduce blank lines with Global Command”
  • “Emacs: Study on constructing Regular Expressions to delete or reduce blank lines”

The topic of “regular expressions” in Vim and Emacs is well suited for a functional comparison across the four different scenarios covered in the above articles to which I refer for a description of the syntax.

read more
September 5, 2022

Emacs: Study on constructing Regular Expressions to delete or reduce blank lines

After writing an article focusing on “Vim: Study on constructing Regular Expressions to delete or reduce blank lines with Global Command” I tried to match with a similar operation with Emacs.

The goal is to study the differences in syntax related to “regular expressions” between two writing systems.

The following is the result of my attempts after various searches on the net.

Removing blank lines in Emacs using RegExp

First of all, it may be useful to display the blank lines in the document.

read more
August 15, 2022

Vim: Study on constructing Regular Expressions to delete or reduce blank lines with Global Command

Preface

On the topic of this article you may find interesting the following one: “Vim and Regular Expressions for removing redundant whitespace”.

Unlike the previous article, here the presence of whitespace causes different solutions than blank lines regardless of the number of their occurrences.

The study in this article is focused on both the analysis of “regular expressions” and Vim’s global command.

Vim and the Global Command

The Global Command in Vim is the g key.

read more
  • ««
  • «
  • 6
  • 7
  • 8
  • 9
  • 10
  • »
  • »»
© Franco Pasut Web Site 2026