📚 The CoCalc Library - books, templates and other resources
License: OTHER
\usepackage{multicol}1\usepackage{calc}2\usepackage{ifthen}3\usepackage[landscape]{geometry}45% This sets page margins to .5 inch if using letter paper, and to 1cm6% if using A4 paper. (This probably isn't strictly necessary.)7% If using another size paper, use default 1cm margins.8\ifthenelse{\lengthtest { \paperwidth = 11in}}9{ \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} }10{\ifthenelse{ \lengthtest{ \paperwidth = 297mm}}11{\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} }12{\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} }13}1415% Turn off header and footer16\pagestyle{empty}171819% Redefine section commands to use less space20\makeatletter21\renewcommand{\section}{\@startsection{section}{1}{0mm}%22{-1ex plus -.5ex minus -.2ex}%23{0.5ex plus .2ex}%x24{\normalfont\large\bfseries}}25\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}%26{-1explus -.5ex minus -.2ex}%27{0.5ex plus .2ex}%28{\normalfont\normalsize\bfseries}}29\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm}%30{-1ex plus -.5ex minus -.2ex}%31{1ex plus .2ex}%32{\normalfont\small\bfseries}}33\makeatother3435% Define BibTeX command36\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em37T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}3839% Don't print section numbers40\setcounter{secnumdepth}{0}414243\setlength{\parindent}{0pt}44\setlength{\parskip}{0pt plus 0.5ex}4546\usepackage{menukeys}4748\pdfinfo{49/Author (Martin Thoma)50/Title (Vim Cheat Sheet)51/CreationDate (D:20130415072400)52/Subject (Vim)53/Keywords (Vim;Cheat Sheet)54}555657