<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>vim on cubatic's blog</title><link>https://blog.121306.xyz/tags/vim/</link><description>Recent content in vim on cubatic's blog</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Mon, 10 Feb 2025 11:24:02 +0800</lastBuildDate><atom:link href="https://blog.121306.xyz/tags/vim/index.xml" rel="self" type="application/rss+xml"/><item><title>Vim help</title><link>https://blog.121306.xyz/posts/vim/vim_help/</link><pubDate>Mon, 10 Feb 2025 11:24:02 +0800</pubDate><guid>https://blog.121306.xyz/posts/vim/vim_help/</guid><description>Number Sequences Sometimes we need to generate a sequence of increasing numbers, like: • 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 • 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 • Or in a vertical list:
We can use the following Vim commands to generate these lists:
:put =&amp;#39;&amp;#39;.join(range(1, 10), &amp;#39;,&amp;#39;) &amp;#34; Generates 1,2,3,...,9 :put =&amp;#39;&amp;#39;.join(range(10, 100, 10), &amp;#39;,&amp;#39;) &amp;#34; Generates 10,20,30,...,90 :put =range(1, 10) &amp;#34; Generates a vertical list of numbers Incrementing Numbers Sometimes we need to change existing numbers, like:</description></item></channel></rss>