c47
f5f6231a6f
Contrast was too high, so I added an additional stylesheet to override then css variable.
319 lines
16 KiB
HTML
319 lines
16 KiB
HTML
<!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.745d5d8db92185a9f0a7d25ab7baabd4cee0fee5c68f6b521b7383175df39d84.css" integrity="sha256-dF1djbkhhanwp9Jat7qr1M7g/uXGj2tSG3ODF13znYQ=" 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": "Blog",
|
||
"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. I’m 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 haven’t had a bad experience with vim so that I want to try nvim now. I’m 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 I’m 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 didn’t 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 nvim’s config seperatly. Also - as already mentioned before - because I want to see how things are when nvim is configured with lua. I’m 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">
|
||
<script>
|
||
if (localStorage.getItem("pref-theme") === "light") {
|
||
document.body.classList.remove('dark')
|
||
}
|
||
|
||
</script>
|
||
|
||
<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">
|
||
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
|
||
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
|
||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||
stroke-linejoin="round">
|
||
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
|
||
</svg>
|
||
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
|
||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||
stroke-linejoin="round">
|
||
<circle cx="12" cy="12" r="5"></circle>
|
||
<line x1="12" y1="1" x2="12" y2="3"></line>
|
||
<line x1="12" y1="21" x2="12" y2="23"></line>
|
||
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
|
||
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
|
||
<line x1="1" y1="12" x2="3" y2="12"></line>
|
||
<line x1="21" y1="12" x2="23" y2="12"></line>
|
||
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
|
||
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
|
||
</svg>
|
||
</button>
|
||
</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> · <span title='2022-05-22 22:22:32 +0100 +0100'>[ Last modified: 2022-05-22 ]</span> · 2 min · 362 words · 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.
|
||
I’m 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"><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 haven’t had a bad experience with vim so that I want to try nvim now. I’m 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 I’m 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 &packpath = &runtimepath
|
||
source ~/.vim/vimrc
|
||
</code></pre><p>I had to comment my viminfo config <code>set vi='100,<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
|
||
didn’t 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 nvim’s config seperatly. Also - as already mentioned before - because I want to see how things are
|
||
when nvim is configured with lua. I’m 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>© 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>
|
||
<script>
|
||
document.getElementById("theme-toggle").addEventListener("click", () => {
|
||
if (document.body.className.includes("dark")) {
|
||
document.body.classList.remove('dark');
|
||
localStorage.setItem("pref-theme", 'light');
|
||
} else {
|
||
document.body.classList.add('dark');
|
||
localStorage.setItem("pref-theme", 'dark');
|
||
}
|
||
})
|
||
|
||
</script>
|
||
</body>
|
||
|
||
</html>
|