📚 The CoCalc Library - books, templates and other resources
License: OTHER
\documentclass[a4paper,10pt,landscape]{article}1\usepackage{myStyle}23\begin{document}45\raggedright6\footnotesize7\begin{multicols}{3}8910% multicol parameters11% These lengths are set only within the two main columns12%\setlength{\columnseprule}{0.25pt}13\setlength{\premulticols}{1pt}14\setlength{\postmulticols}{1pt}15\setlength{\multicolsep}{1pt}16\setlength{\columnsep}{2pt}1718\begin{center}19\Large{\textbf{Vim}} \\20\end{center}2122\section{Basic commands}23\begin{tabular}{@{}ll@{}}24\verb!:w [file]! & Write to \textit{file} \\25\verb!:x! & Exit, saving changes \\26\verb!:q! & Exit as long as there have been no changes \\27\verb!:q!! & Exit and ignore any changes \\28\verb!:wq! & Save file and exit29\end{tabular}3031\section{Inserting Text}32\begin{tabular}{@{}ll@{}}33\keys{i} & Insert before cursor \\34\keys{I} & Insert before line \\35\keys{r} & Replace one character \\36\keys{R} & Enter insert mode, but replace \\37\end{tabular}3839\section{Motion}40\begin{tabular}{@{}ll@{}}41\keys{h} & Move left \\42\keys{j} & Move down \\43\keys{k} & Move up \\44\keys{l} & Move right \\45\keys{w} & Move to next word \\46\keys{W} & Move to next blank delimited word \\47\keys{e} & Move to the end of the word \\48\end{tabular}4950\section{Cut/Copy and paste}51\begin{enumerate}52\item Position the cursor where you want to begin cutting or copying53\item Press \keys{v} (or \keys{V} if you want to cut whole lines)54\item Move the cursor to the end of what you want to cut or copy55\item Press \keys{d} or Press \keys{y}56\item Move to where you would like to paste57\item Press \keys{p} to paste after the cursor, or \keys{P} to paste before58\end{enumerate}59\section{Undo and Repeat}60\begin{enumerate}61\item Enter the command mode62\item Press \keys{u} for "undo"63\subsection{Redo}64\item Best way is to enter "redo" in last line mode65\item Another way is to Press \keys{Ctrl}+\keys{r}66\end{enumerate}6768\end{multicols}69\end{document}707172