www.nixre.net/tags/vim/index.xml
2024-02-28 06:36:56 +01:00

30 lines
2.4 KiB
XML
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.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>vim on nixre.net</title>
<link>https://www.nixre.net/tags/vim/</link>
<description>Recent content in vim on nixre.net</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Sun, 29 May 2022 07:37:05 +0100</lastBuildDate>
<atom:link href="https://www.nixre.net/tags/vim/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>n(eo)vim</title>
<link>https://www.nixre.net/blog/vim2nvim/</link>
<pubDate>Sun, 22 May 2022 07:42:43 +0100</pubDate>
<guid>https://www.nixre.net/blog/vim2nvim/</guid>
<description>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.</description>
</item>
<item>
<title>Update Lastmod Using vim</title>
<link>https://www.nixre.net/blog/vim-update-lastmod/</link>
<pubDate>Sun, 01 May 2022 10:28:05 +0100</pubDate>
<guid>https://www.nixre.net/blog/vim-update-lastmod/</guid>
<description>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(&amp;#39;%:p:h&amp;#39;) =~ &amp;#39;path/to/my/hugo-website/www.nixre.net/content&amp;#39; let l:cursorpos = winsaveview() let l:timestamp = strftime(&amp;#39;%Y-%m-%dT%H:%M:%S+02:00&amp;#39;) silent! exe &amp;#39;:%s/^\(lastmod:\).*$/\1 &amp;#39; . expand(l:timestamp) . &amp;#39;/&amp;#39; call winrestview(l:cursorpos) endif endfunction The markdown sources are inside the content folder of my hugo website and the expand(&#39;%:p:h&#39;) of the file that is currently loaded into the buffer will show the absolute path to the directory that contains the file.</description>
</item>
</channel>
</rss>