vim.gtk3 command not found

In this troubleshooting guide we learn how to fix vim.gtk3 command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

vim.gtk3: command not found

or when using sudo you get the following error message

sudo: vim.gtk3: command not found

Solutions to vim.gtk3: command not found

How To Fix vim.gtk3: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu vim.gtk3 is provided by vim-gtk3 package.

vim-gtk3 is:

Vim is an almost compatible version of the UNIX editor Vi.

Many new features have been added: multi level undo, syntax highlighting, command line history, on-line help, filename completion, block operations, folding, Unicode support, etc.

This package contains a version of vim compiled with a GTK3 GUI and support for scripting with Lua, Perl, Python 3, Ruby, and Tcl.

To fix this problem, we can install more using the command below.

sudo apt-get -y install vim-gtk3

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install vim-gtk3.

sudo apt -y install vim-gtk3

Or if you have aptitude installed you can use the following command.

sudo aptitude install vim-gtk3

Summary

In this tutorial we learn how to fix vim.gtk3 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.