{"id":9647,"date":"2019-12-16T15:58:00","date_gmt":"2019-12-16T15:58:00","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=9647"},"modified":"2019-12-16T15:58:00","modified_gmt":"2019-12-16T15:58:00","slug":"install-vim-8-2-ubuntu-18-04-16-04-19-10","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2019\/12\/install-vim-8-2-ubuntu-18-04-16-04-19-10\/","title":{"rendered":"How to Install Vim 8.2 in Ubuntu 18.04, 16.04, 19.10"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/12\/vim-icon.png\" alt=\"\" width=\"245\" height=\"250\" class=\"aligncenter size-full wp-image-9648\" \/><\/p>\n<p>Vim text editor 8.2 was released a few days ago. An unofficial PPA has made the packages for all current Ubuntu releases as well as Ubuntu 14.04.<\/p>\n<p>The main new feature of Vim 8.2 is support for &#8220;popup windows&#8221;, which displays message boxes, function prototypes, code snippets, etc on top of the text. See <a href=\"https:\/\/www.vim.org\/vim-8.2-released.php\" rel=\"noopener\" target=\"_blank\">Vim 8.2 release note<\/a> for more.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/12\/vim-82-terminal-600x379.jpg\" alt=\"\" width=\"600\" height=\"379\" class=\"aligncenter size-large wp-image-9649\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/12\/vim-82-terminal-600x379.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/12\/vim-82-terminal-450x284.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/12\/vim-82-terminal.jpg 734w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Jonathon F maintains a PPA with Vim packages for all current Ubuntu releases.<\/p>\n<div class=\"arconix-box arconix-box-yellow\"><i class='fa fa-2x pull-left fa-lightbulb-o'><\/i><div class=\"arconix-box-content\">The PPA maintainer announced that he will remove most of his PPAs from public access due to continued and persistent abuse by companies using these packages for commercial gain. Go check the <a href=\"https:\/\/launchpad.net\/~jonathonf\/+archive\/ubuntu\/vim\" rel=\"noopener\" target=\"_blank\">PPA webpage<\/a> before getting started.<\/div><\/div>\n<p><b>1.<\/b> Open <u>terminal<\/u> either from application menu or by pressing Ctrl+Alt+T on keyboard. When it opens, run command to add the PPA:<\/p>\n<pre style=\"border:none;\">sudo add-apt-repository ppa:jonathonf\/vim<\/pre>\n<p><i>Type user password (no asterisk feedback) when it prompts and hit Enter to continue.<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/12\/vim-ppa-unofficial-600x118.jpg\" alt=\"\" width=\"600\" height=\"118\" class=\"aligncenter size-large wp-image-9650\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/12\/vim-ppa-unofficial-600x118.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/12\/vim-ppa-unofficial-450x88.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/12\/vim-ppa-unofficial.jpg 753w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>2.<\/b> Then refresh package cache and install Vim via commands:<\/p>\n<pre style=\"border:none;\">sudo apt update\r\n\r\nsudo apt install vim<\/pre>\n<p>For more features (e.g., Python support), you may also install <code>vim-gtk3<\/code> and \/ or <code>vim-nox<\/code>:<\/p>\n<pre style=\"border:none;\">sudo apt install vim-gtk3 vim-nox<\/pre>\n<h4>Uninstall:<\/h4>\n<p>To restore Vim to the stock versions in Ubuntu main repositories, run command to purge the PPA:<\/p>\n<pre style=\"border:none;\">sudo apt install ppa-purge && sudo ppa-purge ppa:jonathonf\/vim<\/pre>\n<p>To only remove the PPA while keeping the installed Vim packages, either go to <i>Software &#038; Updates -> Other Software<\/i>, or run command in terminal:<\/p>\n<pre style=\"border:none;\">sudo add-apt-repository --remove ppa:jonathonf\/vim<\/pre>","protected":false},"excerpt":{"rendered":"<p>Vim text editor 8.2 was released a few days ago. An unofficial PPA has made the packages for all current Ubuntu releases as well as Ubuntu 14.04. The main new feature of Vim 8.2 is support for &#8220;popup windows&#8221;, which displays message boxes, function prototypes, code snippets, etc on top of the text. See Vim [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,6],"tags":[1854],"class_list":["post-9647","post","type-post","status-publish","format-standard","hentry","category-howtos","category-news","tag-vim"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/9647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=9647"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/9647\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=9647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=9647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=9647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}