30 lines
2.4 KiB
XML
30 lines
2.4 KiB
XML
<?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>text on nixre.net</title>
|
||
<link>https://www.nixre.net/tags/text/</link>
|
||
<description>Recent content in text 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/text/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(&#39;%:p:h&#39;) =~ &#39;path/to/my/hugo-website/www.nixre.net/content&#39; let l:cursorpos = winsaveview() let l:timestamp = strftime(&#39;%Y-%m-%dT%H:%M:%S+02:00&#39;) silent! exe &#39;:%s/^\(lastmod:\).*$/\1 &#39; . expand(l:timestamp) . &#39;/&#39; 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.</description>
|
||
</item>
|
||
</channel>
|
||
</rss>
|