|
5 | 5 | <link href="https://learnbyexample.github.io/atom.xml" rel="self" type="application/atom+xml"/> |
6 | 6 | <link href="https://learnbyexample.github.io"/> |
7 | 7 | <generator uri="https://www.getzola.org/">Zola</generator> |
8 | | - <updated>2022-11-25T00:00:00+00:00</updated> |
| 8 | + <updated>2022-11-29T00:00:00+00:00</updated> |
9 | 9 | <id>https://learnbyexample.github.io/atom.xml</id> |
| 10 | + <entry xml:lang="en"> |
| 11 | + <title>Vim tip 18: moving within long lines</title> |
| 12 | + <published>2022-11-29T00:00:00+00:00</published> |
| 13 | + <updated>2022-11-29T00:00:00+00:00</updated> |
| 14 | + <link rel="alternate" href="https://learnbyexample.github.io/tips/vim-tip-18/" type="text/html"/> |
| 15 | + <id>https://learnbyexample.github.io/tips/vim-tip-18/</id> |
| 16 | + <content type="html"><p>Here are Normal mode commands you can use to move within long lines that are spread over multiple screen lines:</p> |
| 17 | +<ul> |
| 18 | +<li><kbd>g0</kbd> move to the beginning of the current screen line</li> |
| 19 | +<li><kbd>g^</kbd> move to the first non-blank character of the current screen line</li> |
| 20 | +<li><kbd>g$</kbd> move to the end of the current screen line</li> |
| 21 | +<li><kbd>gj</kbd> move down by one screen line, prefix a count to move down by that many screen lines</li> |
| 22 | +<li><kbd>gk</kbd> move up by one screen line, prefix a count to move up by that many screen lines</li> |
| 23 | +<li><kbd>gm</kbd> move to the middle of the current screen line |
| 24 | +<ul> |
| 25 | +<li><strong>Note</strong> that this is based on the screen width, not the number of characters in the line!</li> |
| 26 | +</ul> |
| 27 | +</li> |
| 28 | +<li><kbd>gM</kbd> move to the middle of the current line |
| 29 | +<ul> |
| 30 | +<li><strong>Note</strong> that this is based on the total number of characters in the line</li> |
| 31 | +</ul> |
| 32 | +</li> |
| 33 | +</ul> |
| 34 | +<p><img src="/images/info.svg" alt="info" /> See <a href="https://vimhelp.org/motion.txt.html#left-right-motions">:h left-right-motions</a> for more details.</p> |
| 35 | +<p><strong>Video demo</strong>:</p> |
| 36 | +<p align="center"><iframe width="560" height="315" loading="lazy" src="https://www.youtube.com/embed/VfN_LJIiyaI" title="YouTube video player" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></p> |
| 37 | +<br> |
| 38 | +<p><img src="/images/info.svg" alt="info" /> See also my <a href="https://github.com/learnbyexample/vim_reference">Vim Reference Guide</a> and <a href="https://learnbyexample.github.io/curated_resources/vim.html">curated list of resources for Vim</a>.</p> |
| 39 | +</content> |
| 40 | + </entry> |
10 | 41 | <entry xml:lang="en"> |
11 | 42 | <title>CLI tip 19: extended globs</title> |
12 | 43 | <published>2022-11-23T00:00:00+00:00</published> |
@@ -5356,7 +5387,7 @@ The substitution works from start of the line for every iteration of the while l |
5356 | 5387 | <entry xml:lang="en"> |
5357 | 5388 | <title>Customizing pandoc to generate beautiful pdf and epub from markdown</title> |
5358 | 5389 | <published>2020-07-21T00:00:00+00:00</published> |
5359 | | - <updated>2022-08-11T00:00:00+00:00</updated> |
| 5390 | + <updated>2022-11-29T00:00:00+00:00</updated> |
5360 | 5391 | <link rel="alternate" href="https://learnbyexample.github.io/customizing-pandoc/" type="text/html"/> |
5361 | 5392 | <id>https://learnbyexample.github.io/customizing-pandoc/</id> |
5362 | 5393 | <content type="html"><p>Either you've already heard of <code>pandoc</code> or if you have searched online for <code>markdown</code> to <code>pdf</code> or similar, you are sure to come across <code>pandoc</code>. This tutorial will help you use <code>pandoc</code> to generate <code>pdf</code> and <code>epub</code> from a <a href="https://github.github.com/gfm/">GitHub style markdown</a> file. The main motivation for this blog post is to highlight what customizations I did to generate <code>pdf</code> and <code>epub</code> versions for <a href="https://learnbyexample.github.io/books/">self-publishing my ebooks</a>. It wasn't easy to arrive at the setup I ended up with, so I hope this will be useful for those looking to use <code>pandoc</code> to generate <code>pdf</code> and <code>epub</code> formats. This guide is specifically aimed at technical books that has code snippets.</p> |
@@ -5588,6 +5619,7 @@ no VAL is specified, the key will be given the value true.</p> |
5588 | 5619 | <li><a href="https://www.thedigitalcatbooks.com/maubook-introduction/">Mau</a> — template-based markup language, heavily inspired by AsciiDoc</li> |
5589 | 5620 | <li><a href="https://asciidoctor.org/docs/what-is-asciidoc/">Asciidoctor</a> |
5590 | 5621 | <ul> |
| 5622 | +<li><a href="https://github.com/daneah/asciidoc-book-template">Asciidoc book template</a></li> |
5591 | 5623 | <li><a href="https://shape-of-code.coding-guidelines.com/2019/08/11/my-books-pdf-generation-workflow/">pdf generation workflow with Asciidoc</a></li> |
5592 | 5624 | </ul> |
5593 | 5625 | </li> |
|
0 commit comments