\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{dcschmid} \pdfinfo{ /Title (personal-neovim-cheatsheet.pdf) /Creator (Cheatography) /Author (dcschmid) /Subject (Personal Neovim Cheatsheet 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}{1725A3} \definecolor{LightBackground}{HTML}{F0F1F9} \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{Personal Neovim Cheatsheet Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{dcschmid} via \textcolor{DarkBackground}{\uline{cheatography.com/154034/cs/33084/}}} \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}dcschmid \\ \uline{cheatography.com/dcschmid} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 10th July, 2022.\\ Updated 10th July, 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*}{2} \begin{tabularx}{8.4cm}{x{2.48 cm} x{5.52 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Basic}} \tn % Row 0 \SetRowColor{LightBackground} - & open netrw file explorer \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} leader + w & fast saving \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} leader + ba & close all the buffers \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.76 cm} x{6.24 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Tab Management}} \tn % Row 0 \SetRowColor{LightBackground} leader + nt & open new tab \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} leader + tc & close actual tab \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} leader + tl & toggle between this and the last accessed tab \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} leader + tn & switch to next tab \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} leader + to & close other tabs \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} leader + tp & switch to previous tab \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}{Telescope}} \tn % Row 0 \SetRowColor{LightBackground} ; & Lists open buffers in current neovim instance \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \{\{nobreak\}\}control + g & Fuzzy search through the output of git ls-files command \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}control + p & Lists files in your current working directory \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} \{\{nobreak\}\}leader + fg & Search for a string in your current working directory and get results live as you type \tn % Row Count 11 (+ 4) % Row 4 \SetRowColor{LightBackground} \{\{nobreak\}\}leader + g & Searches for the string under your cursor in your current working directory \tn % Row Count 14 (+ 3) \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}{Packer Commands}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}:PackerClean & Remove any disabled or unused plugins \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \{\{nobreak\}\}:PackerCompile & Regenerate compiled loader file \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}:PackerInstall & Clean, then install missing plugins \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \{\{nobreak\}\}:PackerSync & Perform PackerUpdate and then PackerCompile \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \{\{nobreak\}\}:PackerUpdate & Clean, then update and install plugins \tn % Row Count 10 (+ 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}{LSP Typescript Utils}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}leader + gi & Rename TypeScript file and update imports \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \{\{nobreak\}\}leader + go & Import all missing imports in TS Files \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}leader + gs & Organize imports in TypeScript Files \tn % Row Count 6 (+ 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}{Trouble}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}leader + xd & switch to document diagnostics from the builtin LSP client \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \{\{nobreak\}\}leader + xr & refresh the active list \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}leader + xw & switch to workspace diagnostics from the builtin LSP client \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} \{\{nobreak\}\}leader + xx & toggle Trouble window \tn % Row Count 10 (+ 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}{Git}} \tn % Row 0 \SetRowColor{LightBackground} :Git & run git command in terminal, Eg: :Git checkout -b test \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \{\{nobreak\}\}leader + gR & Revert the current file to the specific commit \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} leader + gb & Open blame window \tn % Row Count 6 (+ 1) % Row 3 \SetRowColor{white} leader + gd & Opens a new diff that compares against the current index \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} leader + gn & Create a pull request with the target branch is set in the target\_branch option \tn % Row Count 13 (+ 4) % Row 5 \SetRowColor{white} leader + go & Open file/folder in git repository \tn % Row Count 15 (+ 2) % Row 6 \SetRowColor{LightBackground} leader + gp & Open pull request of the current branch \tn % Row Count 17 (+ 2) % Row 7 \SetRowColor{white} leader + gr & Revert to the specific commit \tn % Row Count 19 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Git conflict}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}:GitConflictListQf & Show all conflicted files in quickfix window \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \{\{nobreak\}\}c0 or \seqsplit{:GitConflictChooseNone} & Select both none of the changes \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}cb or \seqsplit{:GitConflictChooseBoth} & Select both changes \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} \{\{nobreak\}\}co or \seqsplit{:GitConflictChooseOurs} & Select the current changes \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} \{\{nobreak\}\}ct or \seqsplit{:GitConflictChooseTheirs} & Select the incoming changes \tn % Row Count 12 (+ 3) \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}{Spectre}} \tn % Row 0 \SetRowColor{LightBackground} leader + s & open search panel \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} leader + sp & search in current file \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} leader + sw & search for selected word \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{When the search panel is opend we can use the following shortcuts:} \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} enter & goto current file \tn % Row Count 8 (+ 1) % Row 5 \SetRowColor{white} dd & toggle current item \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} leader + R & replace all \tn % Row Count 10 (+ 1) % Row 7 \SetRowColor{white} leader + c & input replace vim command \tn % Row Count 11 (+ 1) % Row 8 \SetRowColor{LightBackground} leader + o & show option \tn % Row Count 12 (+ 1) % Row 9 \SetRowColor{white} leader + q & send all item to quickfix \tn % Row Count 13 (+ 1) % Row 10 \SetRowColor{LightBackground} leader + rc & replace current line \tn % Row Count 15 (+ 2) % Row 11 \SetRowColor{white} leader + v & change result view mode \tn % Row Count 16 (+ 1) % Row 12 \SetRowColor{LightBackground} th & toggle search hidden \tn % Row Count 17 (+ 1) % Row 13 \SetRowColor{white} ti & toggle ignore case \tn % Row Count 18 (+ 1) % Row 14 \SetRowColor{LightBackground} tu & update change when vim write file \tn % Row Count 20 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.72 cm} x{5.28 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Sorting}} \tn % Row 0 \SetRowColor{LightBackground} leader + so & sort visual selection \tn % Row Count 1 (+ 1) \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}{Search}} \tn % Row 0 \SetRowColor{LightBackground} space & search \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} control + space & backward search \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} leader + space & remove search highlights \tn % Row Count 3 (+ 1) \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}{Split Management}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}control + h & Move to existing or create a new split to the left of your current window + open file or custom command \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} \{\{nobreak\}\}control + j & Move to existing or create a new split to the top of your current window + open file or custom command \tn % Row Count 8 (+ 4) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}control + k & Move to existing or create a new split to the bottom of your current window + open file or custom command \tn % Row Count 13 (+ 5) % Row 3 \SetRowColor{white} \{\{nobreak\}\}control + l & Move to existing or create a new split to the right of your current window + open file or custom command \tn % Row Count 17 (+ 4) \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}{Session Management}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}:SessionDelete & Delete the current session \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \{\{nobreak\}\}:SessionLoad & Load the session for the current directory and current branch if git\_use\_branch = true \tn % Row Count 6 (+ 4) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}:SessionLoadLast & Load the last session \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} \{\{nobreak\}\}:SessionSave & Save the current session \tn % Row Count 10 (+ 2) % Row 4 \SetRowColor{LightBackground} \{\{nobreak\}\}:SessionStart & Start recording a session. Useful if autosave = false \tn % Row Count 13 (+ 3) % Row 5 \SetRowColor{white} \{\{nobreak\}\}:SessionStop & Stop recording a session \tn % Row Count 15 (+ 2) % Row 6 \SetRowColor{LightBackground} \{\{nobreak\}\}:SessionToggle & Determines whether to load, start or stop a session \tn % Row Count 18 (+ 3) % Row 7 \SetRowColor{white} leader + sm & open saved session list \tn % Row Count 19 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{LSP Installer Commands}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}:LspInstall {[}-{}-sync{]} {[}server{]} & installs/reinstalls language servers. Runs in a blocking fashion if the -{}-sync argument is passed (only recommended for scripting purposes). \tn % Row Count 7 (+ 7) % Row 1 \SetRowColor{white} \{\{nobreak\}\}:LspInstallInfo & opens a graphical overview of your language servers \tn % Row Count 10 (+ 3) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}:LspInstallLog & opens the log file in a new tab window \tn % Row Count 12 (+ 2) % Row 3 \SetRowColor{white} \{\{nobreak\}\}:LspPrintInstalled & prints all installed language servers \tn % Row Count 14 (+ 2) % Row 4 \SetRowColor{LightBackground} \{\{nobreak\}\}:LspUninstall {[}-{}-sync{]} & uninstalls language servers. Runs in a blocking fashion if the -{}-sync argument is passed (only recommended for scripting purposes). \tn % Row Count 21 (+ 7) % Row 5 \SetRowColor{white} \{\{nobreak\}\}:LspUninstallAll {[}-{}-no-confirm{]} & uninstalls all language servers \tn % Row Count 24 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.96 cm} x{5.04 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{LSP Commands/Shortcuts}} \tn % Row 0 \SetRowColor{LightBackground} K & Displays hover information about the symbol under the cursor in a floating window. \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} {[} + d & Move to the previous diagnostic in the current buffer. \tn % Row Count 7 (+ 3) % Row 2 \SetRowColor{LightBackground} {]} + d & Move to the next diagnostic. \tn % Row Count 9 (+ 2) % Row 3 \SetRowColor{white} \{\{nobreak\}\} control + k & Displays signature information about the symbol under the cursor in a floating window \tn % Row Count 13 (+ 4) % Row 4 \SetRowColor{LightBackground} gD & Jumps to the declaration of the symbol under the cursor. \tn % Row Count 16 (+ 3) % Row 5 \SetRowColor{white} gd & Jumps to the definition of the symbol under the cursor. \tn % Row Count 19 (+ 3) % Row 6 \SetRowColor{LightBackground} gi & Lists all the implementations for the symbol under the cursor in the quickfix window. \tn % Row Count 23 (+ 4) % Row 7 \SetRowColor{white} gr & Lists all the references to the symbol under the cursor in the quickfix window. \tn % Row Count 27 (+ 4) % Row 8 \SetRowColor{LightBackground} space + ca & Selects a code action available at the current cursor position. \tn % Row Count 30 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{2.96 cm} x{5.04 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{LSP Commands/Shortcuts (cont)}} \tn % Row 9 \SetRowColor{LightBackground} space + d & Jumps to the definition of the type of the symbol under the cursor. \tn % Row Count 3 (+ 3) % Row 10 \SetRowColor{white} space + e & Show diagnostics in a floating window. \tn % Row Count 5 (+ 2) % Row 11 \SetRowColor{LightBackground} space + f & Add buffer diagnostics to the location list. \tn % Row Count 7 (+ 2) % Row 12 \SetRowColor{white} space + rn & Renames all references to the symbol under the cursor. \tn % Row Count 10 (+ 3) \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}{Gitlinker}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}leader + gy & generate shareable file permalinks (with line ranges) \tn % Row Count 3 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.52 cm} x{4.48 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Diffview}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}:DiffviewClose & generate shareable file permalinks (with line ranges) \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \{\{nobreak\}\}:DiffviewFileHistory & Opens a new file history view that lists all commits that affected the given paths. \tn % Row Count 7 (+ 4) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}:DiffviewOpen & Open Git Diffview Tab \tn % Row Count 9 (+ 2) % Row 3 \SetRowColor{white} \{\{nobreak\}\}:DiffviewRefresh & Update stats and entries in the file list of the current Diffview \tn % Row Count 12 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.96 cm} x{5.04 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Git Worktree}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nobreak\}\}leader + gw & To bring up the telescope window listing your workspaces \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \{\{nobreak\}\}leader + gwn & To bring up the telescope window to create a new worktree \tn % Row Count 6 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.8 cm} x{7.2 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Comment}} \tn % Row 0 \SetRowColor{LightBackground} gb & Toggles the region using blockwise comment in visual mode \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} gbc & Toggles the current line using blockwise comment in normal mode \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} gc & Toggles the region using linewise comment in visual mode \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} gcc & Toggles the current line using linewise comment in normal mode \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}