<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sami Korpela</title>
    <description>The latest articles on DEV Community by Sami Korpela (@skipadu).</description>
    <link>https://dev.to/skipadu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F338756%2F45259b79-6b1a-49a4-bc25-5ed345a0b354.jpeg</url>
      <title>DEV Community: Sami Korpela</title>
      <link>https://dev.to/skipadu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/skipadu"/>
    <language>en</language>
    <item>
      <title>Adding Vim to Xubuntu 20.04</title>
      <dc:creator>Sami Korpela</dc:creator>
      <pubDate>Tue, 14 Jul 2020 17:14:43 +0000</pubDate>
      <link>https://dev.to/skipadu/adding-vim-to-xubuntu-20-04-559c</link>
      <guid>https://dev.to/skipadu/adding-vim-to-xubuntu-20-04-559c</guid>
      <description>&lt;p&gt;I recently installed Xubuntu, version 20.04 on old laptop. And I needed an editor, so I tried to run Vim from terminal. But it was not found!&lt;/p&gt;

&lt;p&gt;There were some 3rd party repos that had the compiled binaries for the Vim, but as you can guess, they are not updated recently. So I thought to try to compile Vim from source.&lt;/p&gt;

&lt;p&gt;Here are the steps that I was required to get the Vim working on my Xubuntu 20.04.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting source
&lt;/h2&gt;

&lt;p&gt;Head to Vim's &lt;a href="https://github.com/vim/vim" rel="noopener noreferrer"&gt;GitHub page&lt;/a&gt; where the source files and instructions for compiling are located.&lt;br&gt;
Run following in the terminal to get the source code to your own computer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/vim/vim.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Compiling
&lt;/h2&gt;

&lt;p&gt;When you have cloned succesfully the source files, go to your &lt;code&gt;vim/src&lt;/code&gt; directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd vim/src
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run the following to compile the Vim&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;make
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Problems when compiling
&lt;/h3&gt;

&lt;p&gt;If you have the same problem that I had, that after some time an error occured that said something about that:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;No Terminal Library Found&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So I looked up from the internetz and found this &lt;a href="https://askubuntu.com/questions/158344/no-terminal-library-found-when-compiling-vim" rel="noopener noreferrer"&gt;solution&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get install libncurses5-dev libncursesw5-dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After installing the missing packages, I tried to run &lt;code&gt;make&lt;/code&gt; again and now it was successful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing
&lt;/h2&gt;

&lt;p&gt;As instructions says, you should install your Vim also to use it. So run the following command will do the trick:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;make install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Done
&lt;/h2&gt;

&lt;p&gt;Now you should have the latest (at the time of pulling the source, compiling, installing) available version of the Vim. You can now update your Vim by doing the instructions again, but instead of cloning you should get the latest sources with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git pull
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Happy editing with the Vim can start on your fresh Xubuntu!&lt;/p&gt;

</description>
      <category>vim</category>
      <category>xubuntu</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
