Skip to content

Commit e0f8b9e

Browse files
author
Vladimir Kotal
committed
expand on vi/vim
1 parent 4e156d4 commit e0f8b9e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

intro.tex

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -561,11 +561,12 @@
561561
\item To further confuse the enemy, ``classic'' Mac OS used a single \emsl{CR}
562562
as line breaks. As present time macOS comes from the Unix world, it also uses
563563
\emsl{LF} now.
564-
\item When you open a text file in classic \texttt{vi} and you see strange
565-
\verb|^M| characters at the end of every line, it is that \emsl{CR} character
566-
from a line separator in a file brought over from a Windows system. Just get
567-
rid of them via \verb|:%s/^V^M//g| where \verb|^X| means Ctrl+X. ViM by default
568-
tries to be smarter in such situations but not always to your benefit.
564+
\item When you open a text file in the classic \texttt{vi} editor and you see
565+
strange \verb|^M| characters at the end of every line, it is that \emsl{CR}
566+
character from a line separator in a file brought over from a Windows system.
567+
Just get rid of them via \verb|:%s/^V^M//g| where \verb|^X| means Ctrl+X.
568+
ViM (\emph{Vi IMproved}) by default tries to be smarter in such situations but
569+
not always to your benefit.
569570
\item See the \texttt{ascii} man page for the octal, hexadecimal, and decimal
570571
ASCII character sets (i.e. up to character 127 as ASCII table has only 128
571572
characters).

unix_dict.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,3 +376,5 @@ GCC
376376
AMD
377377
multi
378378
tickless
379+
ViM
380+
IMproved

0 commit comments

Comments
 (0)