
% SVODKA KOMAND DLYA VI PO RUSSKI,
% Mozhet, sgoditsya dlya ne-programmistov.
% From: "Vladimir A. Pertsel" <voldemar@mail.sagantec.co.il>
%
% latex vi.tex
% dvips -D300 -t landscape vi.dvi > vi.ps
%
% ======== vi.tex : cut here =========
\documentstyle[twocolumn]{article}
\input cyracc.def
\font\tencyr=wncyr10
\def\cyr{\tencyr\cyracc}
\pagestyle{empty}
\textheight 17cm
\textwidth 23.cm
\topmargin -.5cm
\oddsidemargin -1cm
\evensidemargin -1cm
\author { }
\title { }
\date{ }
\begin{document}

\tt

{\cyr KOMANDY }vi

\bigskip
{\cyr Vhod v }vi
\bigskip

\begin{tabular}{p{3.5cm}p{7cm}}
{\cyr Komanda} & {\cyr Rezul{\cprime}tat}\\
\\
vi file & {\cyr redaktirovanie nachinaet{\cydot}sya s pervo{\u i} stroki}\\
vi +n file & {\cyr redaktirovanie nachinaet{\cydot}sya so stroki s nomerom }n\\
vi + file & {\cyr redaktirovanie nachinaet{\cydot}sya s posledne{\u i} stroki}\\
vi +/{\cyr tekst }file & {\cyr redaktirovanie nachinaet{\cydot}sya s mesta,
gde pervy{\u i} raz vstretilsya ukazanny{\u i} tekst}\\
vi -r file & {\cyr vosstanavlivaet fa{\u i}l pri sistemnom sboe}
\end{tabular}
\goodbreak

\bigskip
{\cyr Dvizhenie kursora}
\bigskip

\begin{tabular}{p{3.5cm}p{7cm}}
{\cyr Nazhatie klavishi } & {\cyr Rezul{\cprime}tat}\\
\\
h & {\cyr peremeshchenie na 1 simvol vlevo}\\
l & {\cyr peremeshchenie na 1 simvol vpravo}\\
SPACEBAR {\cyr (probel)} & {\cyr peremeshchenie na 1 simvol vpravo}\\
w & {\cyr peremeshchenie na 1 slovo vpravo}\\
b & {\cyr peremeshchenie na 1 slovo vlevo}\\
k & {\cyr peremeshchenie na 1 stroku vverkh}\\
j & {\cyr peremeshchenie na 1 stroku vniz}\\
{\cyr $<$}RETURN$>$ & {\cyr peremeshchenie na 1 stroku vniz}\\
{\cyr ) } & {\cyr peremeshchenie v konec predlozheniya}\\
{\cyr ( } & {\cyr peremeshchenie v nachalo predlozheniya}\\
{\cyr $\rbrace$ } & {\cyr peremeshchenie v nachalo paragrafa}\\
{\cyr $\lbrace$ } & {\cyr peremeshchenie v konec paragrafa}\\
Ctrl-w & {\cyr peremeshchenie na 1 simvol vstavki}\\
Ctrl-u & {\cyr prokrutka vverkh na 1/2 \`ekrana}\\
Ctrl-d & {\cyr prokrutka vniz na 1/2 \`ekrana}\\
Ctrl-f & {\cyr prokrutka vniz na ves{\cprime} \`ekran}\\
Ctrl-b & {\cyr prokrutka vverkh na ves{\cprime} \`ekran}
\end{tabular}
\goodbreak

\bigskip
{\cyr Vstavka teksta}
\bigskip

\begin{tabular}{p{3.5cm}p{7cm}}
{\cyr Nazhatie klavishi } & {\cyr Nachalo vstavki}\\
\\
i & {\cyr pered kursorom}\\
I & {\cyr pered pervym simvolom v stroke}\\
a & {\cyr posle kursora}\\
A & {\cyr posle poslednego simvola v stroke}\\
o & {\cyr na sleduyushche{\u i} stroke vnizu}\\
O & {\cyr na predydushche{\u i} stroke}\\
r & {\cyr na meste tekushchego simvola, zamenyaet tol{\cprime}ko odin simvol}\\
R & {\cyr na meste tekushchego simvola, zamenyaet simvoly,
poka ne budet nazhat } $<$ESC$>$
\end{tabular}

\bigskip
{\cyr Komandy udaleniya}
\bigskip

\begin{tabular}{p{3.5cm}p{7cm}}
{\cyr Komanda} & {\cyr Rezul{\cprime}tat}\\
\\
dw & {\cyr udalyaet slovo}\\
d0 & {\cyr udalyaet simvoly ot kursora do nachala stroki}\\
d\$ & {\cyr udalyaet simvoly ot kursora do konca stroki}\\
{\cyr 3}dw & {\cyr udalyaet tri slova}\\
dd & {\cyr udalyaet tekushchuyu stroku}\\
{\cyr 5}dd & {\cyr udalyaet 5 strok}\\
x & {\cyr udalyaet 1 simvol}\\
\end{tabular}

\bigskip
{\cyr Komandy zameny}
\bigskip

\begin{tabular}{p{3.5cm}p{7cm}}
{\cyr Komanda} & {\cyr Rezul{\cprime}tat}\\
\\
cw & {\cyr zamenyaet odno slovo}\\
{\cyr 3}cw & {\cyr zamenyaet tri slova}\\
cc & {\cyr zamenyaet tekushchuyu stroku}\\
{\cyr 5}cc & {\cyr zamenyaet pyat{\cprime} strok}\\
\end{tabular}
\goodbreak

\bigskip
\goodbreak

{\cyr Komandy poiska}
\bigskip

\begin{tabular}{p{3.5cm}p{7cm}}
{\cyr Komanda } & {\cyr De{\u i}stvie}\\
\\
/and & {\cyr ishchet v fa{\u i}le sleduyushchee mesto s } "and"\\
?and & {\cyr ishchet v fa{\u i}le predydushchee mesto s } "and"\\
/$\wedge$The & {\cyr ishchet sleduyushchuyu stroku, nachinayushchuyusya s }The\\
/$[$bB$]$ox/ & {\cyr ishchet slova }box {\cyr ili }Box\\
n & {\cyr povtoryaet poslednyuyu komandu poiska v tom zhe napravlenii}
\end{tabular}

\bigskip
{\cyr Komandy poiska i zameny}
\bigskip

\begin{tabular}{p{3.5cm}p{7cm}}
{\cyr Komanda } & {\cyr Rezul{\cprime}tat}\\
\\
:s/pear/peach/g & {\cyr V tekushche{\u i} stroke vse mesta s }pear
{\cyr zamenyayut sya na }peach\\
:1,\$s/file/directory & {\cyr Zamenyaet slovo }file {\cyr na } directory
{\cyr s 1 do posledne{\u i} stroki}\\
:g/one/s//1/g & {\cyr Zamenyaet vo vsem fa{\u i}le slovo } one {\cyr na 1}
\end{tabular}

\bigskip
{\cyr Special{\cprime}nye simvoly, ispol{\cprime}zuemye pri poiske}
\bigskip

\begin{tabular}{p{3.5cm}p{7cm}}
{\cyr Simvol } & {\cyr Znachenie}\\
\\
$\wedge$ & {\cyr Nachalo stroki}\\
\$ & {\cyr Konec stroki}\\
. & {\cyr Lyubo{\u i} otdel{\cprime}ny{\u i} simvol}\\
$[$ $]$ & {\cyr Diapazon simvolov}\\
\end{tabular}

\bigskip
\eject

{\cyr Vykhod iz }vi
\bigskip

\begin{tabular}{p{3.5cm}p{7cm}}
{\cyr Komanda } & {\cyr Rezul{\cprime}tat}\\
\\
:w & {\cyr Zapis{\cprime} fa{\u i}la}\\
:x & {\cyr Zapis{\cprime} fa{\u i}la i vykhod iz }vi\\
:q! & {\cyr Vykhod iz }vi {\cyr bez sokhraneniya izmeneni{\u i}}\\
:!{\cyr komanda} & {\cyr Vypolnyaet ukazannuyu komandu}\\
:!sh & {\cyr Sozdaet{\cydot}sya novy{\u i} interpretator komand}\\
:!!{\cyr komanda} & {\cyr Vypolnyaet ukazannuyu komandu i vyvodit ee
rezul{\cprime}tat v tekushchuyu stroku}\\
:e {\cyr fa{\u i}l } & {\cyr Redaktiruet ukazanny{\u i} novy{\u i}
fa{\u i}l (snachala sokhranite tekushchi{\u i} fa{\u i}l komando{\u i} }:w)
\end{tabular}

\bigskip
{\cyr Opcii}
\bigskip

\begin{tabular}{p{3.5cm}p{7cm}}
{\cyr Opciya } & {\cyr De{\u i}stvie}\\
\\
all & {\cyr Vydaet spisok vsekh opci{\u i}}\\
term & {\cyr Ustanavlivaet tip terminala}\\
ignorecase & {\cyr Ignoriruet tip napisaniya bukv v komandakh poiska}\\
list & {\cyr Pokazyvaet na \`ekrane znaki tabulyacii i konca stroki}\\
number & {\cyr Pokazyvaet nomera strok na \`ekrane}\\
report & {\cyr Pechataet kolichestvo izmenennykh
strochno-orientirovanno{\u i} komando{\u i} strok}\\
terse & {\cyr Sokrashchaet tekst soobshcheni{\u i} ob oshibkakh}\\
warn & {\cyr Otklyuchaet pechat{\cprime} soobshcheniya "}No write"
{\cyr pri vykhode v interpretator}\\
nomagic & {\cyr Pozvolyaet vklyuchat{\cprime} v stroku dlya poiska
special{\cprime}nye simvoly bez ukazaniya pered nimi znaka $\backslash$}\\
nowrapscan & {\cyr Ostanavlivaet poisk v nachale ili konce fa{\u i}la}\\
mesg & {\cyr Razreshaet pechat{\cprime} soobshcheni{\u i} na \`ekrane,
posylaemykh komando{\u i} }write
\end{tabular}

\end{document}
