Franco Pasut Web Site

  • it
  • About
  • Contact
  • Posts
  • Privacy

Posts

September 11, 2021

Emacs, Expand-region and LaTeX

Emacs and text objects

In composite documents there are often text fragments within well-defined semantic elements: parentheses of various kinds, single or double inverted commas, trailing commas, etc.

In some text editors (Vim, in particular) they’re called “text objects”.

Emacs can handle these text blocks with a package called Expand-region that “increases the selected region by semantic units (original definition from the programmer’s GitHub page): parenthesis, brackets, quotes, sentences and other objects”.

read more
September 1, 2021

Vim: Cut, Copy and Paste to and from the System Clipboard

Cut, Copy and Paste using the computer keyboard

Everybody knows how to use the keyboard combinations Ctrl-c, Ctrl-x and Ctrl-v in Windows and Linux (or Cmd-c, Cmd-x and Cmd-v in macOS) to copy, cut and paste text across applications.

Many think that those combinations are universal and work with any application. But it’s not true.

Vim uses another system to exchange information with other applications.

For example, in Vim under GNU/Linux, the key combination Ctrl-v corresponds to the visual block function and does not affect the pasting text.

read more
July 27, 2021

Linux: move "home/user" directory back to the same "root" partition

What’s my target?

I’ve installed, as it should always be, a Linux distribution in two separate partitions.

In particular: the root directory in /dev/sdb2 partition and the home/user directory in /dev/sdb3 one.

After some time, I wanted to return the home/user directory to the same root partition.

Why I need it? I’d like to dedicate every partition to different Linux distributions.

What I’ve read before writing this article?

In the net I found many tutorials about moving the home/user directory to other partition, but not so many on the opposite operation.

read more
July 13, 2021

Animated GIFs about basic RegEx in Vim and Emacs

A non-preface about RegEx

In my little experience as a LaTeX writer using Vim and Emacs, I sometimes use the extraordinary efficiency of RegEx, also known as RegExp or “Regular Expressions”.

Vim and Emacs, provide built-in support for RegEx.

I’ll show you in the following clips some elementary uses of regex in both editors.

The software developer community will smile, but the following animated GIFs are intended for writers, not computer programmers.

read more
April 20, 2021

Vim: delete sentences and paragraphs via Text Objects

Vim reduces the strain on your eyes

An unbelievable feature of Vim is the ability to perform operations within entire blocks of text called “Text Objects”, such as words, sentences and paragraphs, regardless of the cursor position inside the objects.

This means you can place the cursor randomly within the blocks and reduce the strain of your eyes towards the monitor.

read more
March 25, 2021

The "evolution line" across Ed, Vi and Vim

A little preface about Ed, Vi and Vim

Have you ever heard of Ed and Vi? Maybe you’ve heard of Vim.

They are command line text editors.

Ed was created in 1969 and it was one of the first components of Unix O.S.

Vi dates from 1976 and it was the “de facto” standard editor for Unix until the arrival, in 1984, of Emacs.

Vim was born in 1991 and it’s actually the fastest editor in the univers!

read more
  • ««
  • «
  • 9
  • 10
  • 11
  • 12
  • 13
  • »
  • »»
© Franco Pasut Web Site 2026