\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{Thissitesucks} \pdfinfo{ /Title (vscode-vim.pdf) /Creator (Cheatography) /Author (Thissitesucks) /Subject (VSCode Vim 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}{148AD9} \definecolor{LightBackground}{HTML}{F0F7FC} \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{VSCode Vim Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Thissitesucks} via \textcolor{DarkBackground}{\uline{cheatography.com/141008/cs/30120/}}} \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}Thissitesucks \\ \uline{cheatography.com/thissitesucks} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 26th October, 2023.\\ 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*}{2} \begin{tabularx}{8.4cm}{p{2.8 cm} x{5.2 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Basics}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{h}} & Move left \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{j}} & Move down \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{k}} & Move up \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} {\bf{l}} & Move right \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{i}} & Insert mode \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} {\bf{jj}} & Normal mode \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} {\bf{gh}} & Mouse hover \tn % Row Count 7 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{\{count\}\{motion\}}} Repeat {\bf{\{motion\} \{count\}}} times} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{1.04 cm} x{6.96 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Horizontal Movement}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{0}} & Jump to the start of the line \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{\$}} & Jump to the end of the line \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{\_}} & Jump to the first non-blank character of a line \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} {\bf{g\_}} & Jump to the last non-blank character of a line \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2 cm} x{6 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Vertical Movement}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{gg}} & Go to the first line of the document \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{G}} & Go to the last line of the document \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{\{line\}gg}} & Go to {\bf{\{line\}}} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} {\bf{\}}} & Jump to next paragraph \tn % Row Count 7 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{\{}} & Jump to previous paragraph \tn % Row Count 8 (+ 1) % Row 5 \SetRowColor{white} {\bf{)}} & Jump to next sentence \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} {\bf{(}} & Jump to previous sentence \tn % Row Count 10 (+ 1) % Row 7 \SetRowColor{white} {\bf{\%}} & Jump to matching {\bf{(), {[}{]}, \{\}}} \tn % Row Count 12 (+ 2) % Row 8 \SetRowColor{LightBackground} {\bf{gd}} & Go to definition \tn % Row Count 13 (+ 1) % Row 9 \SetRowColor{white} {\bf{gD}} & Open definition aside \tn % Row Count 14 (+ 1) % Row 10 \SetRowColor{LightBackground} {\bf{gf}} & Go to file under the cursor \tn % Row Count 15 (+ 1) % Row 11 \SetRowColor{white} {\bf{H}} & Jump to top of screen \tn % Row Count 16 (+ 1) % Row 12 \SetRowColor{LightBackground} {\bf{M}} & Jump to middle of screen \tn % Row Count 17 (+ 1) % Row 13 \SetRowColor{white} {\bf{L}} & Jump to bottom of screen \tn % Row Count 18 (+ 1) % Row 14 \SetRowColor{LightBackground} {\bf{Ctrl + e}} & Move screen down one line \tn % Row Count 20 (+ 2) % Row 15 \SetRowColor{white} {\bf{Ctrl + y}} & Move screen up one line \tn % Row Count 22 (+ 2) % Row 16 \SetRowColor{LightBackground} {\bf{Ctrl + d}} & Jump forward 1/2 a screen \tn % Row Count 24 (+ 2) % Row 17 \SetRowColor{white} {\bf{Ctrl + u}} & Jump back 1/2 a screen \tn % Row Count 26 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{1.04 cm} x{6.96 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Word Movement}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{w}} & Jump to the beginning of the next word \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{W}} & Jump to the beginning of the next WORD \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{e}} & Jump to the end of the next word \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} {\bf{E}} & Jump to the end of the next WORD \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{b}} & Jump to the beginning of the previous word \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} {\bf{B}} & Jump to the beginning of the previous WORD \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{ge}} & Jump to the end of the previous word \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} {\bf{gE}} & Jump to the end of the previous WORD \tn % Row Count 14 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.84 cm} x{6.16 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Insert Mode}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{i}} & Insert before cursor \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{I}} & Insert at the beginning of the line \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{a}} & Insert (append) after the cursor \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} {\bf{A}} & Insert (append) at the end of the line \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{o}} & Insert a new line below the current line \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} {\bf{O}} & Insert a new line above the current line \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{ea}} & Insert (append) at the end of the word \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} {\bf{Ctrl + h}} & Delete character before the cursor during insert mode \tn % Row Count 15 (+ 2) % Row 8 \SetRowColor{LightBackground} {\bf{Ctrl + w}} & Delete word before the cursor during insert mode \tn % Row Count 17 (+ 2) % Row 9 \SetRowColor{white} {\bf{gi}} & Go to last place you left insert mode \tn % Row Count 19 (+ 2) % Row 10 \SetRowColor{LightBackground} {\bf{jj}} & Exit insert mode \tn % Row Count 20 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.84 cm} x{6.16 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Visual Mode}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{v}} & Go into character-wise visual mode \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{V}} & Go into line-wise visual mode \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{Ctrl + v}} & Go into block-wise visual mode \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} {\bf{aw}} & Select a word \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{iw}} & Select inner word \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} {\bf{ab}} & Select a block with {\bf{()}} \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} {\bf{ib}} & Select inner block with {\bf{()}} \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} {\bf{aB}} & Select a block with {\bf{\{\}}} \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} {\bf{iB}} & Select inner block with {\bf{\{\}}} \tn % Row Count 11 (+ 1) % Row 9 \SetRowColor{white} {\bf{at}} & Select a block with {\bf{\textless{}\textgreater{}}} tags \tn % Row Count 13 (+ 2) % Row 10 \SetRowColor{LightBackground} {\bf{it}} & Select inner block with {\bf{\textless{}\textgreater{}}} tags \tn % Row Count 15 (+ 2) % Row 11 \SetRowColor{white} {\bf{o}} & Move to other end of marked area \tn % Row Count 17 (+ 2) % Row 12 \SetRowColor{LightBackground} {\bf{O}} & Move to other corner of block \tn % Row Count 18 (+ 1) % Row 13 \SetRowColor{white} {\bf{y}} & Yank selected text \tn % Row Count 19 (+ 1) % Row 14 \SetRowColor{LightBackground} {\bf{d}} & Delete marked text \tn % Row Count 20 (+ 1) % Row 15 \SetRowColor{white} {\bf{u}} & Changed selected text to lowercase \tn % Row Count 22 (+ 2) % Row 16 \SetRowColor{LightBackground} {\bf{U}} & Changed selected text to uppercase \tn % Row Count 24 (+ 2) % Row 17 \SetRowColor{white} {\bf{af}} & Select increasingly bigger blocks of text \tn % Row Count 26 (+ 2) % Row 18 \SetRowColor{LightBackground} {\bf{gb}} & Adds an additional cursor \tn % Row Count 27 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{\{motion\}\{operator\}}} {\emph{In visual mode first you specify the motion to select text and then you apply the operator}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.04 cm} x{4.96 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Vim Surround}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{ds\{existing\}}} & Delete {\bf{\{existing\}}} surround \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{cs\{existing\}\{desired\}}} & Change {\bf{\{existing\}}} surround to {\bf{\{desired\}}} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{ys\{motion\}\{desired\}}} & Add {\bf{\{desired\}}} surround to text defined by {\bf{\{motion\}}} \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} {\bf{S\{desired\}}} & Surround selection when in visual mode \tn % Row Count 9 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.2 cm} x{4.8 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{VSCode Keybindings}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Ctrl + p}} & Open command palette \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{\textgreater{}}} & List every command \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{@}} & List every local symbol \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} {\bf{Ctrl + Shift + .}} & Open local symbol list \tn % Row Count 5 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{\#}} & List every global symbol \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} {\bf{Ctrl + Shift + ñ}} & Create new terminal \tn % Row Count 8 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{Ctrl + ñ}} & Toggle terminal \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} {\bf{Ctrl + PageDown}} & Focus next terminal group \tn % Row Count 11 (+ 2) % Row 8 \SetRowColor{LightBackground} {\bf{Ctrl + PageUp}} & Focus previous terminal group \tn % Row Count 13 (+ 2) % Row 9 \SetRowColor{white} {\bf{Alt + DownArrow}} & Focus next terminal in group \tn % Row Count 15 (+ 2) % Row 10 \SetRowColor{LightBackground} {\bf{Alt + UpArrow}} & Focus previous terminal in group \tn % Row Count 17 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.16 cm} x{5.84 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Tabs}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{gt}} & Move to next tab \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{gT}} & Move to previous tab \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{\{number\}gt}} & Move to tab {\bf{\{number\}}} \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} {\bf{\textless{}leader\textgreater{}tt}} & Create new tab \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{\textless{}leader\textgreater{}tc}} & Close tab \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} {\bf{\textless{}leader\textgreater{}to}} & Close all tabs but the current one \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{\textless{}leader\textgreater{}tl}} & Move tab to the right \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} {\bf{\textless{}leader\textgreater{}th}} & Move tab to the left \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} {\bf{\textless{}leader\textgreater{}tn}} & Move the tab to the group on the right \tn % Row Count 16 (+ 2) % Row 9 \SetRowColor{white} {\bf{\textless{}leader\textgreater{}tp}} & Move the tab to the group on the left \tn % Row Count 18 (+ 2) % Row 10 \SetRowColor{LightBackground} {\bf{\textless{}leader\textgreater{}te}} & Even tabs widths \tn % Row Count 20 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.16 cm} x{5.84 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Editing}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{r}} & Replace a single character \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{R}} & Replace until {\bf{ESC}} is pressed \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{x}} & Delete a character \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} {\bf{X}} & Delete character before the cursor \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{s}} & Delete character and substitute text \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} {\bf{d}} & Delete up to {\bf{\{motion\}}} \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} {\bf{dd}} & Delete line \tn % Row Count 10 (+ 1) % Row 7 \SetRowColor{white} {\bf{\textless{}leader\textgreater{}dd}} & Delete to void \tn % Row Count 12 (+ 2) % Row 8 \SetRowColor{LightBackground} {\bf{D}} & Delete to the end of the line \tn % Row Count 13 (+ 1) % Row 9 \SetRowColor{white} {\bf{c}} & Change up to {\bf{\{motion\}}} \tn % Row Count 14 (+ 1) % Row 10 \SetRowColor{LightBackground} {\bf{cc}} & Change a line \tn % Row Count 15 (+ 1) % Row 11 \SetRowColor{white} {\bf{C}} & Change to the end of the line \tn % Row Count 16 (+ 1) % Row 12 \SetRowColor{LightBackground} {\bf{y}} & Yank (copy) {\bf{\{motion\}}} \tn % Row Count 17 (+ 1) % Row 13 \SetRowColor{white} {\bf{yy}} & Yank a line \tn % Row Count 18 (+ 1) % Row 14 \SetRowColor{LightBackground} {\bf{Y}} & Yank a line. (= yy) \tn % Row Count 19 (+ 1) % Row 15 \SetRowColor{white} {\bf{p}} & Paste \tn % Row Count 20 (+ 1) % Row 16 \SetRowColor{LightBackground} {\bf{P}} & Paste before the cursor \tn % Row Count 21 (+ 1) % Row 17 \SetRowColor{white} {\bf{\textasciitilde{}}} & Switch case \tn % Row Count 22 (+ 1) % Row 18 \SetRowColor{LightBackground} {\bf{g\textasciitilde{}}} & Switch case up to {\bf{\{motion\}}} \tn % Row Count 24 (+ 2) % Row 19 \SetRowColor{white} {\bf{g\textasciitilde{}\textasciitilde{}}} & Switch case of a line \tn % Row Count 25 (+ 1) % Row 20 \SetRowColor{LightBackground} {\bf{gu}} & Switch to lowercase up to {\bf{\{motion\}}} \tn % Row Count 27 (+ 2) % Row 21 \SetRowColor{white} {\bf{gU}} & Switch to uppercase up to {\bf{\{motion\}}} \tn % Row Count 29 (+ 2) % Row 22 \SetRowColor{LightBackground} {\bf{\textgreater{}}} & Shift text right \tn % Row Count 30 (+ 1) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{2.16 cm} x{5.84 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Editing (cont)}} \tn % Row 23 \SetRowColor{LightBackground} {\bf{\textless{}}} & Shift text left \tn % Row Count 1 (+ 1) % Row 24 \SetRowColor{white} {\bf{\textless{}leader\textgreater{}j}} & Join lines \tn % Row Count 3 (+ 2) % Row 25 \SetRowColor{LightBackground} {\bf{gcc}} & Toggle line comment \tn % Row Count 4 (+ 1) % Row 26 \SetRowColor{white} {\bf{gC}} & Toggle block comment \tn % Row Count 5 (+ 1) % Row 27 \SetRowColor{LightBackground} {\bf{yyp}} & Duplicate line \tn % Row Count 6 (+ 1) % Row 28 \SetRowColor{white} {\bf{ddp}} & Swap lines \tn % Row Count 7 (+ 1) % Row 29 \SetRowColor{LightBackground} {\bf{xp}} & Swap characters \tn % Row Count 8 (+ 1) % Row 30 \SetRowColor{white} {\bf{=}} & Format \tn % Row Count 9 (+ 1) % Row 31 \SetRowColor{LightBackground} {\bf{.}} & Repeat last command \tn % Row Count 10 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{\{operator\}\{count\}\{motion\}}} Apply {\bf{\{operator\}}} on {\bf{\{motion\}}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.56 cm} x{5.44 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Search}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{/\{pattern\}}} & Search for {\bf{\{pattern\}}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{?\{pattern\}}} & Search for {\bf{\{pattern\}}} backwards \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{/}} & Repeat last search forwards \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} {\bf{?}} & Repeat last search backwards \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{n}} & Go to next match \tn % Row Count 8 (+ 1) % Row 5 \SetRowColor{white} {\bf{N}} & Go to previous match \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} {\bf{\{operator\}gn}} & Apply {\bf{\{operator\}}} on next match \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} {\bf{Ctrl + n}} & Clear highlighted text \tn % Row Count 12 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{\{pattern\}}} is a regex} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.32 cm} x{5.68 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Find Character}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{f\{character\}}} & Jump to next occurrence of {\bf{\{character\}}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{F\{character\}}} & Jump to previous occurrence of {\bf{\{character\}}} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{t\{character\}}} & Jump to before next occurrence of {\bf{\{character\}}} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} {\bf{T\{character\}}} & Jump to after previous occurrence of {\bf{\{character\}}} \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{;}} & Repeat previous f, t, F or T \tn % Row Count 9 (+ 1) % Row 5 \SetRowColor{white} {\bf{,}} & Repeat previous f, t, F or T backwards \tn % Row Count 11 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.92 cm} x{4.08 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Vim Easymotion}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}w}} & Start of words \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}b}} & Start of words backwards \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}\textless{}leader\textgreater{}bdw}} & Start of words everywhere \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}e}} & End of words \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}ge}} & End of words backwards \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}\textless{}leader\textgreater{}bde}} & End of words everywhere \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}j}} & Beginning of lines \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}k}} & Beginning of lines backwards \tn % Row Count 16 (+ 2) % Row 8 \SetRowColor{LightBackground} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}f\{character\}}} & Find {\bf{\{character\}}} \tn % Row Count 18 (+ 2) % Row 9 \SetRowColor{white} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}F\{character\}}} & Find {\bf{\{character\}}} backwards \tn % Row Count 20 (+ 2) % Row 10 \SetRowColor{LightBackground} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}t\{character\}}} & Until {\bf{\{character\}}} \tn % Row Count 22 (+ 2) % Row 11 \SetRowColor{white} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}T\{character\}}} & Until {\bf{\{character\}}} backwards \tn % Row Count 24 (+ 2) % Row 12 \SetRowColor{LightBackground} {\bf{\textless{}leader\textgreater{}\textless{}leader\textgreater{}s\{character\}}} & Search {\bf{\{character\}}} everywhere \tn % Row Count 26 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.68 cm} x{6.32 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Text Objects}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{diw}} & Delete inner word \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{daw}} & Delete a word \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{dis}} & Delete inner sentence \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} {\bf{das}} & Delete a sentence \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{dip}} & Delete inner paragraph \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} {\bf{dap}} & Delete a paragraph \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} {\bf{dib}} & Delete inside parentheses \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} {\bf{dab}} & Delete text and parentheses \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} {\bf{diB}} & Delete inside braces \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} {\bf{daB}} & Delete text and braces \tn % Row Count 10 (+ 1) % Row 10 \SetRowColor{LightBackground} {\bf{di{[}}} & Delete inside brackets \tn % Row Count 11 (+ 1) % Row 11 \SetRowColor{white} {\bf{da{[}}} & Delete text and brackets \tn % Row Count 12 (+ 1) % Row 12 \SetRowColor{LightBackground} {\bf{di"}} & Delete inside quotes \tn % Row Count 13 (+ 1) % Row 13 \SetRowColor{white} {\bf{da"}} & Delete text and quotes \tn % Row Count 14 (+ 1) % Row 14 \SetRowColor{LightBackground} {\bf{dit}} & Delete inside tag \tn % Row Count 15 (+ 1) % Row 15 \SetRowColor{white} {\bf{dat}} & Delete text and tag \tn % Row Count 16 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{\{operator\}a\{text-object\}}} Apply operator to all {\bf{\{text-object\}}} including space after o before it \newline {\bf{\{operator\}i\{text-object\}}} Apply operator to {\bf{\{text-object\}}} \newline '{\bf{dib}}' = '{\bf{di(}}' | '{\bf{diB}}' = '{\bf{di\{}}' \newline {\emph{Can be use with other operators (E.g: {\bf{ciw}})}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.32 cm} x{5.68 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Folding}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{zf\{count\}j}} & Create a fold from the cursor down \{count\} lines \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{zf/\{pattern\}}} & Create a fold from the cursor to \{pattern\} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{za}} & Toggle fold at the cursor \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} {\bf{zo}} & Open fold under cursor \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} {\bf{zO}} & Open all folds \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} {\bf{zc}} & Close fold under cursor \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} {\bf{zM}} & Close all folds \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} {\bf{zd}} & Delete fold at the cursor \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} {\bf{zE}} & Delete all folds \tn % Row Count 11 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.24 cm} x{5.76 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Split Windows}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Ctrl-w + s}} & Open same file in a horizontal split \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{Ctrl-w + v}} & Open same file in a vertical split \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {\bf{Ctrl + h}} & Move to the window on the left \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} {\bf{Ctrl + j}} & Move to the window below \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} {\bf{Ctrl + k}} & Move to the window above \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} {\bf{Ctrl + l}} & Move to the window on the right \tn % Row Count 12 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.8 cm} x{5.2 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Undo and Redo}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{u}} & Undo last change \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} {\bf{Ctrl + R}} & Redo last undo \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {\bf{U}} & Undo last changed line \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}