<?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: Mirza-Krnjic</title>
    <description>The latest articles on DEV Community by Mirza-Krnjic (@krnjic).</description>
    <link>https://dev.to/krnjic</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%2F910293%2F028f05bd-1409-4317-8aad-1321a6f367a9.png</url>
      <title>DEV Community: Mirza-Krnjic</title>
      <link>https://dev.to/krnjic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/krnjic"/>
    <language>en</language>
    <item>
      <title>LunarVim Best Vim Config?</title>
      <dc:creator>Mirza-Krnjic</dc:creator>
      <pubDate>Thu, 18 Aug 2022 13:00:30 +0000</pubDate>
      <link>https://dev.to/krnjic/lunarvim-best-vim-config-3cn1</link>
      <guid>https://dev.to/krnjic/lunarvim-best-vim-config-3cn1</guid>
      <description>&lt;p&gt;&lt;strong&gt;Why NeoVim&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Like many developers, while researching on ways to increase ones productivity as a developer I came across the world of VIM(NeoVim). Needless to say, those VimWizards left a great impression on me. They were able to do common programming tasks with lightning speed and precision and I knew NeoVim has to become part of my routine as well. I went through a phase of looking for the ideal development set of tools that would be convenient and enjoyable.&lt;/p&gt;

&lt;p&gt;Neovim like Vim, is a very sophisticated tool that is extremely customizable but carries a steep learning curve. However, once you're past the basics and force yourself some muscle memory it is unbelievably fast. All the effort pays off massively.&lt;/p&gt;

&lt;p&gt;On the downside Vim requires a significant up-front time investment in learning.&lt;br&gt;
Also don't let the abundance of choice in customization options be distracting.&lt;/p&gt;

&lt;p&gt;Pros of Vim(NeoVim):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Lighting fast.&lt;/li&gt;
&lt;li&gt;Extremely configurable and customizable.&lt;/li&gt;
&lt;li&gt;Massive ecosystem of plugins.&lt;/li&gt;
&lt;li&gt;Cross-platform support.&lt;/li&gt;
&lt;li&gt;Support for almost any programming language out there.&lt;/li&gt;
&lt;li&gt;It is free and open source.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First of all VIM and NeoVIM are not the same!&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Vim is a ubiquitous text editor that comes preinstalled with most major Linux distributions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;NeoVim is an enhanced upgrade to Vim that incorporates more features.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are new to the VIM universe I reccommend that you start your journey with a preconfigured neovim layer like &lt;a href="https://www.lunarvim.org/#opinionated"&gt;LunarVim&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;LunarVim takes advantage of the latest Neovim features such as Treesitter and Language Server Protocol support.&lt;br&gt;
The installation process is straight forward. Instructions can be found &lt;a href="https://www.lunarvim.org/01-installing.html"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tips for MacOS&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;LunarVim excepts to find NeoVim already preinstalled on your machine.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;brew install neovim&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You will need Rust and Cargo before you proceed with the LunarVim installation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;curl https://sh.rustup.rs -sSf | sh&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Since most of the modern NeoVim configs are done in lua you will need to get it as well.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;brew install lua&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fun part&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After the installation of LunarVim you can start your personal exploration of the worlds fastest text editor.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---N0XuwsO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fqspt96xtcp38d63tz0b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---N0XuwsO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fqspt96xtcp38d63tz0b.png" alt="Image description" width="880" height="571"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;config.lua&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most of your time customizing LunarVim will probably be spent in the config.lua file.&lt;br&gt;
You can easily access if by opening LVim and pressing the (space) key followed by L and c.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9F7Cmuqz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w6kzljm5r0fso4qt1ui8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9F7Cmuqz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w6kzljm5r0fso4qt1ui8.png" alt="Image description" width="464" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can set custom keybindings, override the default ones, add additional plugins and the list goes on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Telescope&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You plugin that you will find yourself using constantly is Telescope. It already comes pre-installed but has a few dependencies.&lt;/p&gt;

&lt;p&gt;By pressing : you open command mode where you can type the following:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;:checkhealth telescope&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lWp_RZJ_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8mepiejngt3v56m6bga0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lWp_RZJ_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8mepiejngt3v56m6bga0.png" alt="Image description" width="302" height="301"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;More about telescope can be found &lt;a href="https://github.com/nvim-telescope/telescope.nvim"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This was just a small preview of whats possible with the LunarVim config.&lt;/p&gt;

&lt;p&gt;NeoVim can also be used with more popular test editors like VS Code with the &lt;a href="https://marketplace.visualstudio.com/items?itemName=vscodevim.vim"&gt;VsCodeVim&lt;/a&gt; plugin.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>vim</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
