Chunyu Ge 葛淳宇 /kɤ꜕꜖꜓ tʂʰuən꜔꜒ y꜕꜖꜓/

不辍弦歌

Pages

Substitution in Vim with expressions

Substitution in vim is very efficient, especially with the help of expressions. This is especially useful for calculations. I discovered this usage when I wanted to insert a list of numbers to the beginning of each line. But before go to the example, let’s take a look at expressions in vim substitution. The expressions in vim are marked with “=”. This tells vim to treat the contents after “=” as expressions rather than literal texts.
2024-09-13
2 min read

Convert markdown files to pdf files using pandoc in vim

I am learning vim and I want to migrate my workflow in Sublime Text to vim. One of the things I do most with Sublime Text is to write markdown files and convert them to pdf files using Pandoc. After some search, I did not find a satisfied plugin which does such a job. The vim-pandoc seems to be too powerful. I did some more search and found this post, which is very informative and
2024-08-28
2 min read

A tutorial on generalized additive mixed-effects model (GAMM)

Preliminaries: The challenge of dynamic data Phonetics used to concern mostly with static data, such as VOT, formant values at vowel midpoint, or F0 at vowel onset. But as computers are getting more and more powerful, it is common (almost a necessity) to analyze dynamic data. For example, instead of F0 at vowel onset, pitch contour during the voiced parts needs to be analyzed, and similarly, formant trajectories are analyzed instead of formant values at
2024-04-28
5 min read