Background
While I was writing a post about a technical problem encountered while writing another post about Venn diagram, I encountered another technical problem.
Problem
I tried including the error message into the previous post by the Vim
editor command :r ~/lang:text temp-swp.mkd
. To have it surrounded with
<pre><code>
in HTML, one needs to indent it by four spaces.
1 2 3 4 5 6 7 8 |
|
I usally do this by applying the right-shift operator >
to the text
selected in visual line mode. However, the line starting with #
wasn’t indented like the others.
1 2 3 4 5 6 7 8 |
|
Discussion
If I started Vim with all plugins disabled with vim -u NONE -N
,
then the above problem won’t happen.
Solution
Use the visual block mode instead. Either one way will do.
- Keep using the
>
operator. - Use
I
instead of>
.