最近在使用 Hugo 生成博客文章的时候，发现有一篇新写的文章无法生成，而其他博文都可以成功渲染，非常奇怪。
2019 年年末的这三个月过得很快，最近一个月都在紧张忙碌中度过，以至于错过了年末的时间，没有写一篇 2019 年的阅读总结。
In this post, I want to share how to do number arithmetic quickly and get what you want in specified format. More specifically, the topic is:
How do we add, subtract, multiply or divide a value to each number in a range?
Vim-snippet provides a lot of useful Ultisnips snippets for various
filetypes. For example, for Markdown, to insert level 1 header, the snippet
sec, and for level 2 and 3 header, the triggers are
sssec respectively. These triggers are non-intuitive and hard to remember and
Last year, I have written a post on how to edit texts inside the browser using Vim/Nvim or browser extensions which have Vim emulations. But none of them is satisfactory enough since they are either not convenient to use or lacking features compared to real Neovim empowered by various plugins.
Due to Markdown's inablity to center and resize image properly, I use the raw HTML tags inside markdown file to include images:
<p align="center"> <img src="xxx.xx.xx/test.jpg"> </p>
When I am writing some prototyping code inside Neovim, I want to run the script
without going to the terminal and typing
python toy_script.py. Of course, we
:!python % in the command line to run the script (see
:h :!). The
problem is that running external command will block Nvim/Vim, and we can not
move the cursor until the script finishes running.
Sometimes, when you are working with your local changes, you may want to pull
the latest updates from the remote Git repository. You can use
git stash to
store the unfinished work temporarily.
The system I am currently using has Anaconda pre-installed by root under system locations.
There are several options related to backup in Vim/Nvim.