How To Install vim-syntastic on Kali Linux
Introduction
In this tutorial we learn how to install vim-syntastic on Kali Linux.
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 Kali Linux. 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 updateAfter updating apt database, We can install vim-syntastic using apt-get by running the following command:
sudo apt-get -y install vim-syntasticInstall vim-syntastic Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install vim-syntastic using apt by running the following command:
sudo apt -y install vim-syntasticInstall vim-syntastic Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install vim-syntastic using aptitude by running the following command:
sudo aptitude -y install vim-syntasticHow To Uninstall vim-syntastic on Kali Linux
To uninstall only the vim-syntastic package we can use the following command:
sudo apt-get remove vim-syntasticUninstall vim-syntastic And Its Dependencies
To uninstall vim-syntastic and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove vim-syntasticRemove vim-syntastic Configurations and Data
To remove vim-syntastic configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge vim-syntasticRemove 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-syntasticDependencies
vim-syntastic have the following dependencies:
References
Summary
In this tutorial we learn how to install vim-syntastic package on Kali Linux using different package management tools: apt, apt-get and aptitude.