\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{HiddenMonkey} \pdfinfo{ /Title (helix.pdf) /Creator (Cheatography) /Author (HiddenMonkey) /Subject (Helix Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{B3A497} \definecolor{LightBackground}{HTML}{F5F3F2} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Helix Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{HiddenMonkey} via \textcolor{DarkBackground}{\uline{cheatography.com/85163/cs/31224/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}HiddenMonkey \\ \uline{cheatography.com/hiddenmonkey} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 18th March, 2022.\\ Updated 18th March, 2022.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{4} \begin{tabularx}{3.833cm}{x{0.99557 cm} x{2.43743 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Mouvement}} \tn % Row 0 \SetRowColor{LightBackground} h, Left & Move left \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} j, Down & Move down \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} k, Up & Move up \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} l, Right & Move right \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} w & Move next word start \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} b & Move previous word start \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} e & Move next word end \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} W & Move next WORD end \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} B & Move previous WORD start \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} E & ove next WORD end \tn % Row Count 10 (+ 1) % Row 10 \SetRowColor{LightBackground} t & Find 'till next char \tn % Row Count 11 (+ 1) % Row 11 \SetRowColor{white} f & Find next char \tn % Row Count 12 (+ 1) % Row 12 \SetRowColor{LightBackground} T & Find 'till previous char \tn % Row Count 13 (+ 1) % Row 13 \SetRowColor{white} F & Find previous char \tn % Row Count 14 (+ 1) % Row 14 \SetRowColor{LightBackground} G & Go to line number \textless{}n\textgreater{} \tn % Row Count 15 (+ 1) % Row 15 \SetRowColor{white} Alt-. & Reapeat last motion (f, t ro m) \tn % Row Count 17 (+ 2) % Row 16 \SetRowColor{LightBackground} Home & Move to the start of the line \tn % Row Count 19 (+ 2) % Row 17 \SetRowColor{white} End & Move to the end ofthe line \tn % Row Count 20 (+ 1) % Row 18 \SetRowColor{LightBackground} Ctrl-b, PageUp & Move page up \tn % Row Count 22 (+ 2) % Row 19 \SetRowColor{white} Ctrl-f, PageDown & Move page down \tn % Row Count 24 (+ 2) % Row 20 \SetRowColor{LightBackground} Ctrl-u & Move half page up \tn % Row Count 25 (+ 1) % Row 21 \SetRowColor{white} Ctrf-d & Move half page down \tn % Row Count 26 (+ 1) % Row 22 \SetRowColor{LightBackground} Ctrl-i & Jump forward on the jumplist \tn % Row Count 27 (+ 1) % Row 23 \SetRowColor{white} Ctrl-o & Jump backward on the jumplist \tn % Row Count 29 (+ 2) % Row 24 \SetRowColor{LightBackground} Ctrl-s & Save the current selection to the jumplist \tn % Row Count 31 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.85382 cm} x{1.57918 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Picker}} \tn % Row 0 \SetRowColor{LightBackground} Up, Ctrl-k, Ctrl-p & Previous entry \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} PageUp, Ctrl-b & Page up \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Down, Ctrl-j, Ctrl-n & Next entry \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} PageDown, Ctrl-f & Page down \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Home & Go to first entry \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} End & Go to last entry \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} Ctrl-space & Filter options \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} Enter & Open selected \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} Ctrl-s & Open horizontally \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} Ctrl-v & Open vertically \tn % Row Count 10 (+ 1) % Row 10 \SetRowColor{LightBackground} Escape, Ctrl-c & Close picker \tn % Row Count 11 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.78959 cm} x{2.64341 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Match mode}} \tn % Row 0 \SetRowColor{LightBackground} m & Goto matching bracket (TS) \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} s \textless{}char\textgreater{} & Surround current selection with \textless{}char\textgreater{} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} r \textless{}from\textgreater{}\textless{}to\textgreater{} & Replace surround character \textless{}from\textgreater{} with \textless{}to\textgreater{} \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} d \textless{}char\textgreater{} & Delete surround character \textless{}char\textgreater{} \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} a \textless{}object\textgreater{} & Select around textobject \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} i \textless{}object\textgreater{} & Select inside textobject \tn % Row Count 11 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.3433 cm} x{3.0897 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Space mode}} \tn % Row 0 \SetRowColor{LightBackground} f & Open file picker \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} b & Open buffer picker \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} k & Show documentation for item under cursor in a popup (LSP) \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} s & Open document symbol picker (LSP) \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} S & Open workspace symbol picker (LSP) \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} r & Rename symbol (LSP) \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} a & Apply code action (LSP) \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} ' & Open last fuzzy picker \tn % Row Count 9 (+ 1) % Row 8 \SetRowColor{LightBackground} w & Enter window mode \tn % Row Count 10 (+ 1) % Row 9 \SetRowColor{white} p & Paste system clipboard after selections \tn % Row Count 12 (+ 2) % Row 10 \SetRowColor{LightBackground} P & Paste system clipboard before selections \tn % Row Count 14 (+ 2) % Row 11 \SetRowColor{white} y & Join and yank selections to clipboard \tn % Row Count 16 (+ 2) % Row 12 \SetRowColor{LightBackground} Y & Yank main selection to clipboard \tn % Row Count 17 (+ 1) % Row 13 \SetRowColor{white} R & Replace selections by clipboard contents \tn % Row Count 19 (+ 2) % Row 14 \SetRowColor{LightBackground} / & Global search in workspace folder \tn % Row Count 20 (+ 1) % Row 15 \SetRowColor{white} ? & Open command palette \tn % Row Count 21 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{1.20155 cm} x{2.23145 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Popup}} \tn % Row 0 \SetRowColor{LightBackground} Ctrl-u & Scroll up \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Ctrl-d & Scroll down \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.51495 cm} x{2.91805 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Changes}} \tn % Row 0 \SetRowColor{LightBackground} r & Replace with a character \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} R & Replace with yanked text \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \textasciitilde{} & Switch case of the selected text \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} ` & Set the selected text to lower case \tn % Row Count 5 (+ 2) % Row 4 \SetRowColor{LightBackground} Alt-` & Set the selected text to upper case \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} i & Insert before selection \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} a & Insert after selection (append) \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} I & Insert at the start of the line \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} A & Insert at the end of the line \tn % Row Count 11 (+ 1) % Row 9 \SetRowColor{white} o & Open new line below selection \tn % Row Count 12 (+ 1) % Row 10 \SetRowColor{LightBackground} O & Open new line above selection \tn % Row Count 13 (+ 1) % Row 11 \SetRowColor{white} . & Repeat last change \tn % Row Count 14 (+ 1) % Row 12 \SetRowColor{LightBackground} u & Undo change \tn % Row Count 15 (+ 1) % Row 13 \SetRowColor{white} U & Redo change \tn % Row Count 16 (+ 1) % Row 14 \SetRowColor{LightBackground} Alt-u & Move backward in history \tn % Row Count 17 (+ 1) % Row 15 \SetRowColor{white} Alt-U & Move forward in history \tn % Row Count 18 (+ 1) % Row 16 \SetRowColor{LightBackground} y & Yank selection \tn % Row Count 19 (+ 1) % Row 17 \SetRowColor{white} p & Paste after selection \tn % Row Count 20 (+ 1) % Row 18 \SetRowColor{LightBackground} P & Paste before selection \tn % Row Count 21 (+ 1) % Row 19 \SetRowColor{white} " \textless{}reg\textgreater{} & Select a register to yank to or paste from \tn % Row Count 23 (+ 2) % Row 20 \SetRowColor{LightBackground} \textgreater{} & Indent selection \tn % Row Count 24 (+ 1) % Row 21 \SetRowColor{white} \textless{} & Unindent selection \tn % Row Count 25 (+ 1) % Row 22 \SetRowColor{LightBackground} = & Format selection (currently nonfunctional/disabled) (LSP) \tn % Row Count 27 (+ 2) % Row 23 \SetRowColor{white} d & Delete selection \tn % Row Count 28 (+ 1) % Row 24 \SetRowColor{LightBackground} Alt-d & Delete selection, without yanking \tn % Row Count 29 (+ 1) % Row 25 \SetRowColor{white} c & Change selection (delete and enter insert mode) \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{3.833cm}{p{0.51495 cm} x{2.91805 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Changes (cont)}} \tn % Row 26 \SetRowColor{LightBackground} Alt-c & Change selection (delete and enter insert mode, without yanking) \tn % Row Count 2 (+ 2) % Row 27 \SetRowColor{white} \seqsplit{Ctrl-a} & Increment object (number) under cursor \tn % Row Count 4 (+ 2) % Row 28 \SetRowColor{LightBackground} \seqsplit{Ctrl-x} & Decrement object (number) under cursor \tn % Row Count 6 (+ 2) % Row 29 \SetRowColor{white} Q & Start/stop macro recording to the selected register (experimental) \tn % Row Count 8 (+ 2) % Row 30 \SetRowColor{LightBackground} q & Play back a recorded macro from the selected register (experimental) \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.3433 cm} x{3.0897 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Search}} \tn % Row 0 \SetRowColor{LightBackground} / & Search for regex pattern \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ? & Search for previous pattern \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} n & Select next search match \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} N & Select previous search match \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} * & Use current selection as the search pattern \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.65227 cm} x{2.78073 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Minor modes}} \tn % Row 0 \SetRowColor{LightBackground} v & Enter select (extend) mode \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} g & Enter goto mode \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} m & Enter match mode \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} : & Enter command mode \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} z & Enter view mode \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} Z & Enter sticky view mode \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} Ctrl-w & Enter window mode \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} Space & Enter space mode \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.3433 cm} x{3.0897 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Goto mode}} \tn % Row 0 \SetRowColor{LightBackground} g & Go to line number \textless{}n\textgreater{} else start of file \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} e & Go to the end of the file \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} f & Go to files in the selection \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} h & Go to the start of the line \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} l & Go to the end of the line \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} s & Go to first non-whitespace character of the line \tn % Row Count 8 (+ 2) % Row 6 \SetRowColor{LightBackground} t & Go to the top of the screen \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} c & Go to the middle of the screen \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} b & Go to the bottom of the screen \tn % Row Count 11 (+ 1) % Row 9 \SetRowColor{white} d & Go to definition (LSP) \tn % Row Count 12 (+ 1) % Row 10 \SetRowColor{LightBackground} y & Go to type definition (LSP) \tn % Row Count 13 (+ 1) % Row 11 \SetRowColor{white} r & Go to references (LSP) \tn % Row Count 14 (+ 1) % Row 12 \SetRowColor{LightBackground} i & Go to implementation (LSP) \tn % Row Count 15 (+ 1) % Row 13 \SetRowColor{white} a & Go to the last accessed/alternate file \tn % Row Count 17 (+ 2) % Row 14 \SetRowColor{LightBackground} m & Go to the last modified/alternate file \tn % Row Count 19 (+ 2) % Row 15 \SetRowColor{white} n & Go to next buffer \tn % Row Count 20 (+ 1) % Row 16 \SetRowColor{LightBackground} p & Go to previous buffer \tn % Row Count 21 (+ 1) % Row 17 \SetRowColor{white} . & Go to last modification in current file \tn % Row Count 23 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{p{0.37763 cm} x{3.05537 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Shell}} \tn % Row 0 \SetRowColor{LightBackground} | & Pipe each selection through shell command, replacing with output \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Alt-| & Pipe each selection into shell command, ignoring output \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} ! & Run shell command, inserting output before each selection \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Alt-! & Run shell command, appending output after each selection \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \$ & Pipe each selection into shell command, keep selections where command returned 0 \tn % Row Count 11 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{0.99557 cm} x{2.43743 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{View mode}} \tn % Row 0 \SetRowColor{LightBackground} z, c & Vertically center the line \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} t & Align the line to the top of the screen \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} b & Align the line to the bottom of the screen \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} m & Align the line to the middle of the screen (horizontally) \tn % Row Count 8 (+ 3) % Row 4 \SetRowColor{LightBackground} j,down & Scroll the view downwards \tn % Row Count 9 (+ 1) % Row 5 \SetRowColor{white} k, up & Scroll the view upwards \tn % Row Count 10 (+ 1) % Row 6 \SetRowColor{LightBackground} Ctrl-f, PageDown & Move page down \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} Ctrl-b, PageUp & Move page up \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} Ctrl-d & Move half page down \tn % Row Count 15 (+ 1) % Row 9 \SetRowColor{white} Ctrl-u & Move half page up \tn % Row Count 16 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{0.99557 cm} x{2.43743 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Window mode}} \tn % Row 0 \SetRowColor{LightBackground} w, Ctrl-w & Switch to next window \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} v, Ctrl-v & Vertical right split \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} s, Ctrl-s & Horizontal bottom split \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} f & Go to files in the selection in horizontal splits \tn % Row Count 5 (+ 2) % Row 4 \SetRowColor{LightBackground} F & Go to files in the selection in vertical splits \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} h, Ctrl-h, Left & Move to left split \tn % Row Count 9 (+ 2) % Row 6 \SetRowColor{LightBackground} j, Ctrl-j, Down & Move to split below \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} k, Ctrl-k, Up & Move to split above \tn % Row Count 13 (+ 2) % Row 8 \SetRowColor{LightBackground} l, Ctrl-l, Right & Move to right split \tn % Row Count 15 (+ 2) % Row 9 \SetRowColor{white} q, Ctrl-q & Close current window \tn % Row Count 16 (+ 1) % Row 10 \SetRowColor{LightBackground} o, Ctrl-o & Only keep the current window, closing all the others \tn % Row Count 18 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.0299 cm} x{2.4031 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Prompt}} \tn % Row 0 \SetRowColor{LightBackground} Escape, Ctrl-c & Close prompt \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Alt-b, Alt-Left & Backward a word \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Ctrl-b, Left & Backward a char \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} Alt-f, Alt-Right & Forward a word \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} Ctrl-f, Right & Forward a char \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} Ctrl-e, End & Move prompt end \tn % Row Count 10 (+ 1) % Row 6 \SetRowColor{LightBackground} Ctrl-a, Home & Move prompt start \tn % Row Count 11 (+ 1) % Row 7 \SetRowColor{white} Ctrl-w & Delete previous word \tn % Row Count 12 (+ 1) % Row 8 \SetRowColor{LightBackground} Alt-d & Delete next word \tn % Row Count 13 (+ 1) % Row 9 \SetRowColor{white} Ctrl-u & Delete to start of line \tn % Row Count 14 (+ 1) % Row 10 \SetRowColor{LightBackground} Ctrl-k & Delete to end of line \tn % Row Count 15 (+ 1) % Row 11 \SetRowColor{white} backspace, Ctrl-h & Delete previous char \tn % Row Count 17 (+ 2) % Row 12 \SetRowColor{LightBackground} delete, Ctrl-d & Delete next char \tn % Row Count 19 (+ 2) % Row 13 \SetRowColor{white} Ctrl-s & Insert a word under doc cursor, may be changed to Ctrl-r Ctrl-w later \tn % Row Count 22 (+ 3) % Row 14 \SetRowColor{LightBackground} Ctrl-p, Up & Select previous history \tn % Row Count 23 (+ 1) % Row 15 \SetRowColor{white} Ctrl-n, Down & Select next history \tn % Row Count 24 (+ 1) % Row 16 \SetRowColor{LightBackground} Tab & Select next completion item \tn % Row Count 25 (+ 1) % Row 17 \SetRowColor{white} BackTab & Select previous completion item \tn % Row Count 27 (+ 2) % Row 18 \SetRowColor{LightBackground} Enter & Open selected \tn % Row Count 28 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.57918 cm} x{1.85382 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Insert Mode}} \tn % Row 0 \SetRowColor{LightBackground} Escape & Switch to normal mode \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Ctrl-x & Autocomplete \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Ctrl-r & Insert a register content \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} Ctrl-w, Alt-Backspace & Delete previous word \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} Alt-d & Delete next word \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} Alt-b, Alt-Left & Backward a word \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} Ctrl-b, Left & Backward a char \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} Alt-f, Alt-Right & Forward a word \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} Ctrl-f, Right & Forward a char \tn % Row Count 11 (+ 1) % Row 9 \SetRowColor{white} Ctrl-e, End & Move to line end \tn % Row Count 12 (+ 1) % Row 10 \SetRowColor{LightBackground} Ctrl-a, Home & Move to line start \tn % Row Count 13 (+ 1) % Row 11 \SetRowColor{white} Ctrl-u & Delete to start of line \tn % Row Count 15 (+ 2) % Row 12 \SetRowColor{LightBackground} Ctrl-k & Delete to end of line \tn % Row Count 16 (+ 1) % Row 13 \SetRowColor{white} Ctrl-j, Enter & Insert new line \tn % Row Count 17 (+ 1) % Row 14 \SetRowColor{LightBackground} Backspace, Ctrl-h & Delete previous char \tn % Row Count 18 (+ 1) % Row 15 \SetRowColor{white} Delete, Ctrl-d & Delete previous char \tn % Row Count 19 (+ 1) % Row 16 \SetRowColor{LightBackground} Ctrl-p, Up & Move to previous line \tn % Row Count 20 (+ 1) % Row 17 \SetRowColor{white} Ctrl-n, Down & Move to next line \tn % Row Count 21 (+ 1) % Row 18 \SetRowColor{LightBackground} PageUp & Move one page up \tn % Row Count 22 (+ 1) % Row 19 \SetRowColor{white} PageDown & Move one page down \tn % Row Count 23 (+ 1) % Row 20 \SetRowColor{LightBackground} Alt-\textgreater{} & Go to end of buffer \tn % Row Count 24 (+ 1) % Row 21 \SetRowColor{white} Alt-\textless{} & Go to start of buffer \tn % Row Count 25 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{0.99557 cm} x{2.43743 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Selection manipulation}} \tn % Row 0 \SetRowColor{LightBackground} s & Select all regex matches inside selections \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} S & Split selection into subselections on regex matches \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Alt-s & Split selection on newlines \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} \& & Align selection in columns \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} \_ & Trim whitespace from the selection \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} ; & Collapse selection onto a single cursor \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} Alt-; & Flip selection cursor and anchor \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} Alt-: & Ensures the selection is in forward direction \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} , & Keep only the primary selection \tn % Row Count 16 (+ 2) % Row 9 \SetRowColor{white} Alt-, & Remove the primary selection \tn % Row Count 17 (+ 1) % Row 10 \SetRowColor{LightBackground} C & Copy selection onto the next line (Add cursor below) \tn % Row Count 19 (+ 2) % Row 11 \SetRowColor{white} Alt-C & Copy selection onto the previous line (Add cursor above) \tn % Row Count 21 (+ 2) % Row 12 \SetRowColor{LightBackground} ( & Rotate main selection backward \tn % Row Count 23 (+ 2) % Row 13 \SetRowColor{white} ) & Rotate main selection forward \tn % Row Count 25 (+ 2) % Row 14 \SetRowColor{LightBackground} Alt-( & Rotate selection contents backward \tn % Row Count 27 (+ 2) % Row 15 \SetRowColor{white} Alt-) & Rotate selection contents forward \tn % Row Count 29 (+ 2) % Row 16 \SetRowColor{LightBackground} \% & Select entire file \tn % Row Count 30 (+ 1) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{3.833cm}{x{0.99557 cm} x{2.43743 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{Selection manipulation (cont)}} \tn % Row 17 \SetRowColor{LightBackground} x & Select current line, if already selected, extend to next line \tn % Row Count 3 (+ 3) % Row 18 \SetRowColor{white} X & Extend selection to line bounds (line-wise selection) \tn % Row Count 5 (+ 2) % Row 19 \SetRowColor{LightBackground} J & Join lines inside selection \tn % Row Count 6 (+ 1) % Row 20 \SetRowColor{white} K & Keep selections matching the regex \tn % Row Count 8 (+ 2) % Row 21 \SetRowColor{LightBackground} Alt-K & Remove selections matching the regex \tn % Row Count 10 (+ 2) % Row 22 \SetRowColor{white} Ctrl-c & Comment/uncomment the selections \tn % Row Count 12 (+ 2) % Row 23 \SetRowColor{LightBackground} Alt-k, Alt-up & Expand selection to parent syntax node (TS) \tn % Row Count 14 (+ 2) % Row 24 \SetRowColor{white} Alt-j, Alt-down & Shrink syntax tree object selection (TS) \tn % Row Count 16 (+ 2) % Row 25 \SetRowColor{LightBackground} Alt-h, Alt-left & Select previous sibling node in syntax tree (TS) \tn % Row Count 18 (+ 2) % Row 26 \SetRowColor{white} Alt-l, Alt-right & Select next sibling node in syntax tree (TS) \tn % Row Count 20 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}