www.nixre.net/blog/vim2nvim/index.html
2024-02-28 06:36:56 +01:00

281 lines
14 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en" dir="auto">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>n(eo)vim | nixre.net</title>
<meta name="keywords" content="editor, text, vim">
<meta name="description" content="A few days ago I decided to try out neovim in my everyday-life workflows.
I know about neovim since quite a while. Also I know about a few technical advantages compared to vim but over long time it was always the same:
I installed neovim I used it a few times that day and maybe the next day I started to forget to run nvim instead of vim and… found myself using vim again since then I have a week of vacation and this time I want to make serious change and integrate neovim into my daily life for while.">
<meta name="author" content="c47">
<link rel="canonical" href="https://www.nixre.net/blog/vim2nvim/">
<link rel="stylesheet" type="text/css" href="/fonts/Fork-Awesome/css/fork-awesome.min.css">
<link rel="stylesheet" type="text/css" href="/style.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.b609c58d5c11bb90b1a54e04005d74ad1ddf22165eb79f5533967e57df9c3b50.css" integrity="sha256-tgnFjVwRu5CxpU4EAF10rR3fIhZet59VM5Z&#43;V9&#43;cO1A=" rel="preload stylesheet" as="style">
<link rel="icon" href="https://www.nixre.net/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="https://www.nixre.net/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://www.nixre.net/favicon-32x32.png">
<link rel="apple-touch-icon" href="https://www.nixre.net/apple-touch-icon.png">
<link rel="mask-icon" href="https://www.nixre.net/safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<noscript>
<style>
#theme-toggle,
.top-link {
display: none;
}
</style>
</noscript><meta property="og:title" content="n(eo)vim" />
<meta property="og:description" content="A few days ago I decided to try out neovim in my everyday-life workflows.
I know about neovim since quite a while. Also I know about a few technical advantages compared to vim but over long time it was always the same:
I installed neovim I used it a few times that day and maybe the next day I started to forget to run nvim instead of vim and… found myself using vim again since then I have a week of vacation and this time I want to make serious change and integrate neovim into my daily life for while." />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.nixre.net/blog/vim2nvim/" /><meta property="article:section" content="blog" />
<meta property="article:published_time" content="2022-05-22T07:42:43+01:00" />
<meta property="article:modified_time" content="2022-05-22T22:22:32+01:00" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="n(eo)vim"/>
<meta name="twitter:description" content="A few days ago I decided to try out neovim in my everyday-life workflows.
I know about neovim since quite a while. Also I know about a few technical advantages compared to vim but over long time it was always the same:
I installed neovim I used it a few times that day and maybe the next day I started to forget to run nvim instead of vim and… found myself using vim again since then I have a week of vacation and this time I want to make serious change and integrate neovim into my daily life for while."/>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1 ,
"name": "Blogs",
"item": "https://www.nixre.net/blog/"
},
{
"@type": "ListItem",
"position": 2 ,
"name": "n(eo)vim",
"item": "https://www.nixre.net/blog/vim2nvim/"
}
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "n(eo)vim",
"name": "n(eo)vim",
"description": "A few days ago I decided to try out neovim in my everyday-life workflows.\nI know about neovim since quite a while. Also I know about a few technical advantages compared to vim but over long time it was always the same:\nI installed neovim I used it a few times that day and maybe the next day I started to forget to run nvim instead of vim and… found myself using vim again since then I have a week of vacation and this time I want to make serious change and integrate neovim into my daily life for while.",
"keywords": [
"editor", "text", "vim"
],
"articleBody": "A few days ago I decided to try out neovim in my everyday-life workflows.\nI know about neovim since quite a while. Also I know about a few technical advantages compared to vim but over long time it was always the same:\nI installed neovim I used it a few times that day and maybe the next day I started to forget to run nvim instead of vim and… found myself using vim again since then I have a week of vacation and this time I want to make serious change and integrate neovim into my daily life for while. Im curious about nvim. Vim is now part of my life since about 7 years and vim is awesome \u003c3 Vim is definitely my editor of choice and I use a lot of other software that provide vim-bindings and vim-like functionalities. Also I havent had a bad experience with vim so that I want to try nvim now. Im super happy with vim. But I want to make experiences. Trying something new and getting new impressions is inspiring, I think. There is something about neovim that Im very curious about: it is possible to configure it using lua.\nFor the beginning I have set up the config so that the vimrc is sourced\nset runtimepath^=~/.vim runtimepath+=~/.vim/after let \u0026packpath = \u0026runtimepath source ~/.vim/vimrc I had to comment my viminfo config set vi='100,\u003c50,s10,h,n~/.vim/viminfo because nvim uses shada instead and having set vi makes nvim print some warnings. As I wrote the previous sentence I just took a look my ~/.config/nvim/ folder and didnt yet see a shada subfolder - so I have to take a look at the settings later on. I use vim-plug as plugin manager - it was enough to copy the ~/.vim/{plugged,autoload} folders to ~/.config/nvim/ to make the plugins work. Quite easy so far - awesome :-) In the next days I want to write a new config neovim, because my vim configs are in a git repository and I want to version nvims config seperatly. Also - as already mentioned before - because I want to see how things are when nvim is configured with lua. Im very excited :-)\n",
"wordCount" : "362",
"inLanguage": "en",
"datePublished": "2022-05-22T07:42:43+01:00",
"dateModified": "2022-05-22T22:22:32+01:00",
"author":{
"@type": "Person",
"name": "c47"
},
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://www.nixre.net/blog/vim2nvim/"
},
"publisher": {
"@type": "Organization",
"name": "nixre.net",
"logo": {
"@type": "ImageObject",
"url": "https://www.nixre.net/favicon.ico"
}
}
}
</script>
</head>
<body class=" dark" id="top">
<header class="header">
<nav class="nav">
<div class="logo">
<a href="https://www.nixre.net/" accesskey="h" title="nixre.net (Alt + H)">nixre.net</a>
<div class="logo-switches">
</div>
</div>
<ul id="menu">
<li>
<a href="https://www.nixre.net/blog/" title="Blog">
<span>Blog</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/categories/" title="Categories">
<span>Categories</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/tags/" title="Tags">
<span>Tags</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/series/" title="Series">
<span>Series</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/about/" title="About">
<span>About</span>
</a>
</li>
</ul>
</nav>
</header>
<main class="main">
<article class="post-single">
<header class="post-header">
<h1 class="post-title entry-hint-parent">
n(eo)vim
</h1>
<div class="post-meta"><span title='2022-05-22 07:42:43 +0100 +0100'>[ Published: 2022-05-22 ]</span>&nbsp; &middot; &nbsp;<span title='2022-05-22 22:22:32 +0100 +0100'>[ Last modified: 2022-05-22 ]</span>&nbsp; &middot; &nbsp;2 min&nbsp; &middot; &nbsp;362 words&nbsp; &middot; &nbsp;c47
</div>
</header> <div class="series-notice">
<p><i>This post is part of the <a href="https://www.nixre.net/series/vim-to-nvim-migration/">vim-to-nvim-migration</a> series.</i></p>
</div>
<div class="post-content"><p>A few days ago I decided to try out neovim in my everyday-life workflows.</p>
<p>I know about neovim since quite a while. Also I know about a few technical advantages compared to vim but over long time
it was always the same:</p>
<ul>
<li>I installed neovim</li>
<li>I used it a few times that day and maybe the next day</li>
<li>I started to forget to run nvim instead of vim and…</li>
<li>found myself using vim again since then</li>
</ul>
<p>I have a week of vacation and this time I want to make serious change and integrate neovim into my daily life for while.
Im curious about nvim. Vim is now part of my life since about 7 years and vim is awesome <span class="fa fa-heart-o" aria-hidden="true">
<span class="visually-hidden">&lt;3</span>
</span>
Vim is
definitely my editor of choice and I use a lot of other software that provide vim-bindings and vim-like functionalities.
Also I havent had a bad experience with vim so that I want to try nvim now. Im super happy with vim. But I want to
make experiences. Trying something new and getting new impressions is inspiring, I think. There is something about
neovim that Im very curious about: it is possible to configure it using lua.</p>
<p>For the beginning I have set up the config so that the vimrc is sourced</p>
<pre tabindex="0"><code>set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &amp;packpath = &amp;runtimepath
source ~/.vim/vimrc
</code></pre><p>I had to comment my viminfo config <code>set vi='100,&lt;50,s10,h,n~/.vim/viminfo</code> because nvim uses shada instead and having set
vi makes nvim print some warnings. As I wrote the previous sentence I just took a look my <code>~/.config/nvim/</code> folder and
didnt yet see a shada subfolder - so I have to take a look at the settings later on. I use vim-plug as plugin manager -
it was enough to copy the <code>~/.vim/{plugged,autoload}</code> folders to <code>~/.config/nvim/</code> to make the plugins work. Quite easy so
far - awesome :-) In the next days I want to write a new config neovim, because my vim configs are in a git repository
and I want to version nvims config seperatly. Also - as already mentioned before - because I want to see how things are
when nvim is configured with lua. Im very excited :-)</p>
</div>
<footer class="post-footer">
<ul class="post-tags">
<li><a href="https://www.nixre.net/tags/editor/">editor</a></li>
<li><a href="https://www.nixre.net/tags/text/">text</a></li>
<li><a href="https://www.nixre.net/tags/vim/">vim</a></li>
</ul>
</footer>
</article>
<nav class="paginav">
<a class="prev" href="https://www.nixre.net/blog/hafermilch/">
<span class="title">« Prev</span>
<br>
<span>Hafermilch</span>
</a>
<a class="next" href="https://www.nixre.net/blog/vim-update-lastmod/">
<span class="title">Next »</span>
<br>
<span>Update Lastmod Using vim</span>
</a>
</nav>
<div class="post-series" style="padding-top: 2em;"><h3 id="series">Posts in this series</h3>
<ol><li><b>n(eo)vim</b></li></ol></div>
</main>
<footer class="footer">
<span>&copy; 2024 <a href="https://www.nixre.net/">nixre.net</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
<a href="/impressum/">Impressum</a>
</span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
<path d="M12 6H0l6-6z" />
</svg>
</a>
<script>
let menu = document.getElementById('menu')
if (menu) {
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
behavior: "smooth"
});
} else {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
}
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.pushState(null, null, `#${id}`);
}
});
});
</script>
<script>
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
</script>
</body>
</html>