180 lines
7.8 KiB
HTML
180 lines
7.8 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>vim | nixre.net</title>
|
||
<meta name="keywords" content="">
|
||
<meta name="description" content="Personal website">
|
||
<meta name="author" content="c47">
|
||
<link rel="canonical" href="https://www.nixre.net/tags/vim/">
|
||
|
||
<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+V9+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">
|
||
<link rel="alternate" type="application/rss+xml" href="https://www.nixre.net/tags/vim/index.xml">
|
||
<noscript>
|
||
<style>
|
||
#theme-toggle,
|
||
.top-link {
|
||
display: none;
|
||
}
|
||
|
||
</style>
|
||
</noscript><meta property="og:title" content="vim" />
|
||
<meta property="og:description" content="Personal website" />
|
||
<meta property="og:type" content="website" />
|
||
<meta property="og:url" content="https://www.nixre.net/tags/vim/" />
|
||
|
||
|
||
<meta name="twitter:card" content="summary"/>
|
||
<meta name="twitter:title" content="vim"/>
|
||
<meta name="twitter:description" content="Personal website"/>
|
||
|
||
|
||
</head>
|
||
|
||
<body class="list 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">
|
||
<header class="page-header">
|
||
<h1>
|
||
vim
|
||
</h1>
|
||
</header>
|
||
|
||
<article class="post-entry tag-entry">
|
||
<header class="entry-header">
|
||
<h2 class="entry-hint-parent">n(eo)vim
|
||
</h2>
|
||
</header>
|
||
<div class="entry-content">
|
||
<p>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....</p>
|
||
</div>
|
||
<footer class="entry-footer"><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</footer>
|
||
<a class="entry-link" aria-label="post link to n(eo)vim" href="https://www.nixre.net/blog/vim2nvim/"></a>
|
||
</article>
|
||
|
||
<article class="post-entry tag-entry">
|
||
<header class="entry-header">
|
||
<h2 class="entry-hint-parent">Update Lastmod Using vim
|
||
</h2>
|
||
</header>
|
||
<div class="entry-content">
|
||
<p>I think it is very important to add date information about articles’ creation time and modification time. There are various ways to do this. I usually prefer when this be done automatically by my favorite editor and so I wrote a short function:
|
||
function! LastMod() if expand('%:p:h') =~ 'path/to/my/hugo-website/www.nixre.net/content' let l:cursorpos = winsaveview() let l:timestamp = strftime('%Y-%m-%dT%H:%M:%S+02:00') silent! exe ':%s/^\(lastmod:\).*$/\1 ' . expand(l:timestamp) . '/' call winrestview(l:cursorpos) endif endfunction The markdown sources are inside the content folder of my hugo website and the expand('%:p:h') of the file that is currently loaded into the buffer will show the absolute path to the directory that contains the file....</p>
|
||
</div>
|
||
<footer class="entry-footer"><span title='2022-05-01 10:28:05 +0100 +0100'>[ Published: 2022-05-01 ]</span> · <span title='2022-05-29 07:37:05 +0100 +0100'>[ Last modified: 2022-05-29 ]</span> · 2 min · 255 words · c47</footer>
|
||
<a class="entry-link" aria-label="post link to Update Lastmod Using vim" href="https://www.nixre.net/blog/vim-update-lastmod/"></a>
|
||
</article>
|
||
</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>
|
||
</body>
|
||
|
||
</html>
|