How To Install vim-command-t on Ubuntu 20.04

In this tutorial we learn how to install vim-command-t on Ubuntu 20.04. vim-command-t is open files with a minimum number of keystrokes

Introduction

In this tutorial we learn how to install vim-command-t on Ubuntu 20.04.

What is vim-command-t

vim-command-t is:

Files are selected by typing characters that appear in their paths, and are ordered by an algorithm which knows that characters that appear in certain locations (for example, immediately after a path separator) should be given more weight.

Command-T is named so because it is inspired by the “Go to File” window bound to Command-T in TextMate.

There are three methods to install vim-command-t on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install vim-command-t Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install vim-command-t using apt-get by running the following command:

sudo apt-get -y install vim-command-t

Install vim-command-t Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install vim-command-t using apt by running the following command:

sudo apt -y install vim-command-t

Install vim-command-t Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install vim-command-t using aptitude by running the following command:

sudo aptitude -y install vim-command-t

How To Uninstall vim-command-t on Ubuntu 20.04

To uninstall only the vim-command-t package we can use the following command:

sudo apt-get remove vim-command-t

Uninstall vim-command-t And Its Dependencies

To uninstall vim-command-t and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove vim-command-t

Remove vim-command-t Configurations and Data

To remove vim-command-t configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge vim-command-t

Remove vim-command-t configuration, data, and all of its dependencies

We can use the following command to remove vim-command-t configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge vim-command-t

References

Summary

In this tutorial we learn how to install vim-command-t package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.