How To Install vim-syntastic on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 535 words
Introduction
In this tutorial we learn how to install vim-syntastic
on Ubuntu.
What is vim-syntastic
vim-syntastic is:
Syntastic is a syntax checking plugin that runs files through external syntax checkers and displays any resulting errors to the user. This can be done on demand, or automatically as files are saved. If syntax errors are detected, the user is notified and is happy because they didn’t have to compile their code or execute their script to find them.
At the time of this writing, syntastic has checking plugins for ACPI Source Language, ActionScript, Ada, Ansible configurations, API Blueprint, AppleScript, AsciiDoc, Assembly languages, BEMHTML, Bro, Bourne shell, C, C++, C#, Cabal, Chef, CMake, CoffeeScript, Coco, Coq, CSS, Cucumber, CUDA, D, Dart, DocBook, Dockerfile, Dust, Elixir, Erlang, eRuby, Fortran, Gentoo metadata, GLSL, Go, Haml, Haskell, Haxe, Handlebars, HSS, HTML, Java, JavaScript, JSON, JSX, Julia, LESS, Lex, Limbo, LISP, LLVM intermediate language, Lua, Markdown, MATLAB, Mercury, NASM, Nix, Objective-C, Objective-C++, OCaml, Perl, Perl 6, Perl POD, PHP, gettext Portable Object, OS X and iOS property lists, Pug (formerly Jade), Puppet, Python, QML, R, Racket, RDF TriG, RDF Turtle, Relax NG, reStructuredText, RPM spec, Ruby, SASS/SCSS, Scala, Slim, SML, Solidity, Sphinx, SQL, Stylus, Tcl, TeX, Texinfo, Twig, TypeScript, Vala, Verilog, VHDL, Vim help, VimL, Vue.js, xHtml, XML, XSLT, XQuery, YACC, YAML, YANG data models, YARA rules, z80, Zope page templates, and Zsh.
There are three methods to install vim-syntastic
on Ubuntu. 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-syntastic 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-syntastic
using apt-get
by running the following command:
sudo apt-get -y install vim-syntastic
Install vim-syntastic Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install vim-syntastic
using apt
by running the following command:
sudo apt -y install vim-syntastic
Install vim-syntastic 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-syntastic
using aptitude
by running the following command:
sudo aptitude -y install vim-syntastic
How To Uninstall vim-syntastic on Ubuntu
To uninstall only the vim-syntastic
package we can use the following command:
sudo apt-get remove vim-syntastic
Uninstall vim-syntastic And Its Dependencies
To uninstall vim-syntastic
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove vim-syntastic
Remove vim-syntastic Configurations and Data
To remove vim-syntastic
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge vim-syntastic
Remove vim-syntastic configuration, data, and all of its dependencies
We can use the following command to remove vim-syntastic
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge vim-syntastic
Dependencies
vim-syntastic have the following dependencies:
References
Summary
In this tutorial we learn how to install vim-syntastic
package on Ubuntu using different package management tools: apt, apt-get and aptitude.