\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{aauukerochan} \pdfinfo{ /Title (ultimate-vim.pdf) /Creator (Cheatography) /Author (aauukerochan) /Subject (ultimate 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}{9A17A3} \definecolor{LightBackground}{HTML}{F8F0F9} \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{ultimate vim Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{aauukerochan} via \textcolor{DarkBackground}{\uline{cheatography.com/51373/cs/14060/}}} \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}aauukerochan \\ \uline{cheatography.com/aauukerochan} \\ \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 21st December, 2017.\\ 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*}{3} \begin{tabularx}{5.377cm}{x{4.23045 cm} p{0.74655 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{General}} \tn % Row 0 \SetRowColor{LightBackground} Leader Key & , \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Fast Saving & ,w \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Sudo Saving & :W \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.53367 cm} x{1.44333 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Visual Mode}} \tn % Row 0 \SetRowColor{LightBackground} Search for Current Selection & * or \# \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Search Forwards & \textless{}space\textgreater{} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Search Backwards & Ctrl-\textless{}Space\textgreater{} \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} Ack Text (search for Text) & ,gv \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} Search \& Replace Selected Text & ,r \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} Surround selection in ( ) & \$1 \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} Surround selection in {[} {]} & \$2 \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} Surround selection in \{ \} & \$3 \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} Surround selection in " " & \$\$ or \$e \tn % Row Count 11 (+ 1) % Row 9 \SetRowColor{white} Surround selection in ' ' & \$q \tn % Row Count 12 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.13091 cm} p{0.84609 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Insert Mode}} \tn % Row 0 \SetRowColor{LightBackground} Insert ( ) & \$1 \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Insert {[} {]} & \$2 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Insert \{ \} & \$3 \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Insert ' ' & \$q \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Insert " " & \$e \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} Insert \textless{} \textgreater{} & \$t \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{Date format: \%d/\%m/\%y \%H:\%M:\%S} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.93183 cm} p{1.04517 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Windows}} \tn % Row 0 \SetRowColor{LightBackground} Move to Upper Window & Ctrl-j \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Move to Lower Window & Ctrl-k \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Move to Lefter Window & Ctrl-h \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Move to Righter Window & Ctrl-l \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.32999 cm} p{0.64701 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Buffers}} \tn % Row 0 \SetRowColor{LightBackground} Close Current Buffer & ,bd \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Close All Buffers & ,ba \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Go to Next Buffer & ,l \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Go to Previous Buffer & ,h \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.4793 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Tabs}} \tn % Row 0 \SetRowColor{LightBackground} Open New Tab & ,tn \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Close All Other Tabs & ,to \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Close Current Tab & ,tc \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Move Current Tab & ,tm \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Go to Next Tab & ,t, \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} Toggle b/w This Tab and Previous Tab & ,t1 \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} Open New Tab w/ Current Buffer's Path & ,te \tn % Row Count 8 (+ 2) % Row 7 \SetRowColor{white} Switch CWD to Open Buffer's Directory & ,cd \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.18068 cm} p{0.79632 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Editing}} \tn % Row 0 \SetRowColor{LightBackground} Go to First Non-blank Char & 0 \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Move Line of Text Down & Alt-j \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Move Line of Text Up & Alt-k \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.4793 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Spell Checking}} \tn % Row 0 \SetRowColor{LightBackground} Toggle Spell Checking & ,ss \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Move to Next Misspelled Word & ,sn \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Move to Previous Misspelled Word & ,sp \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Add Word to Dictionary & ,sa \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Suggest Spellings for Word & ,s? \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.4793 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Misc}} \tn % Row 0 \SetRowColor{LightBackground} Remove \textasciicircum{}M & ,m \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Open Buffer for Notes & ,q \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Open Markdown Buffer for Notes & ,x \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Toggle Paste Mode & ,pp \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Open File Under Cursor & gf \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.4793 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{bufExplorer Plugin}} \tn % Row 0 \SetRowColor{LightBackground} Open bufExplorer & ,o \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Normal Open & \textbackslash{}be \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Force Horizontal Split Open & \textbackslash{}bs \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Force Vertical Split Open & \textbackslash{}bv \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{Once the bufexplorer window is open you can use the normal movement keys (hjkl) to move around and then use \textless{}Enter\textgreater{} or \textless{}Left-Mouse-Click\textgreater{} to select the buffer you would like to open. \newline If you would like to have the selected buffer opened in a new tab, simply press either \textless{}Shift-Enter\textgreater{} or 't'.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.9862 cm} x{1.9908 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Most Recently Used (MRU)}} \tn % Row 0 \SetRowColor{LightBackground} Open MRU & ,f \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Open File in Current Window & \textless{}Enter\textgreater{} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} Open File in New Window & o or \textless{}Shift-Enter\textgreater{} \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} Open File in Read-only Mode & v \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} Open File in New Tab & t \tn % Row Count 8 (+ 1) % Row 5 \SetRowColor{white} Update File List & u \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} Close MRU & q or \textless{}Esc\textgreater{} \tn % Row Count 10 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{You can open multiple files from the MRU window by specifying a count before pressing '\textless{}Enter\textgreater{}' or 'v' or 'o' or 't'. You can also visually (using linewise visual mode) select multiple filenames and invoke the commands to open the files. Each selected file will be opened in a separate window or tab.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.32999 cm} p{0.64701 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{CTRL-P (Full Path Fuzzy \_ Finder)}} \tn % Row 0 \SetRowColor{LightBackground} Open CTRL-P / Find File & \seqsplit{Ctrl-f} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Find Buffer/MRU & \seqsplit{Ctrl-b} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Update Results & \textless{}F5\textgreater{} \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} Filename Only & \seqsplit{Ctrl-d} \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} RegExp Mode & \seqsplit{Ctrl-r} \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} Go Down & \seqsplit{Ctrl-j} \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} Go Up & \seqsplit{Ctrl-k} \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} Open in New Tab & \seqsplit{Ctrl-t} \tn % Row Count 15 (+ 2) % Row 8 \SetRowColor{LightBackground} Open in New Tab (Vertical Split) & \seqsplit{Ctrl-v} \tn % Row Count 17 (+ 2) % Row 9 \SetRowColor{white} Open in New Tab (Horizontal Split) & \seqsplit{Ctrl-x} \tn % Row Count 19 (+ 2) % Row 10 \SetRowColor{LightBackground} Select Next String in History & \seqsplit{Ctrl-n} \tn % Row Count 21 (+ 2) % Row 11 \SetRowColor{white} Select Previous String in History & \seqsplit{Ctrl-p} \tn % Row Count 23 (+ 2) % Row 12 \SetRowColor{LightBackground} Create New File (and parent directories) & \seqsplit{Ctrl-y} \tn % Row Count 25 (+ 2) % Row 13 \SetRowColor{white} Mark/Unmark Multiple Files & \seqsplit{Ctrl-z} \tn % Row Count 27 (+ 2) % Row 14 \SetRowColor{LightBackground} Open File & \seqsplit{Ctrl-o} \tn % Row Count 29 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{Run :help ctrlp-mappings or submit ? in CtrlP for more mapping help. \newline \newline Submit two or more dots .. to go up the directory tree by one or multiple levels. \newline \newline End the input string with a colon : followed by a command to execute it on the opening file(s): Use :25 to jump to line 25. Use :diffthis when opening multiple files to run :diffthis on the first 4 files.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.37976 cm} p{0.59724 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Cope}} \tn % Row 0 \SetRowColor{LightBackground} Open Error List Window & ,cc \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Close Error List Window & :ccl \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Go to Next Search Results & ,n \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Go to Previous Search Results & ,p \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{Use :help cope to learn about cope \newline When searching in Ack.vim, display results in cope with ,cc} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.37976 cm} p{0.59724 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{NERDTree (File Directory Tree)}} \tn % Row 0 \SetRowColor{LightBackground} Toggle NERDTree & ,nn \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} NERDTree from Bookmark & ,nb \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} NERDTree Find & ,nf \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.08114 cm} p{0.89586 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{SnipMate}} \tn % Row 0 \SetRowColor{LightBackground} Insert/Navigate Snippet & \textless{}Tab\textgreater{} \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.23045 cm} p{0.74655 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{VIM Multiple Cursors}} \tn % Row 0 \SetRowColor{LightBackground} Add Cursor & \seqsplit{Ctrl-n} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Remove Current Cursor (Go to Prev) & \seqsplit{Ctrl-p} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Remove Current Cursor (Go to Next) & \seqsplit{Ctrl-x} \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.18528 cm} x{1.79172 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{surround.vim}} \tn % Row 0 \SetRowColor{LightBackground} Change Surroundings & cs\textless{}old\textgreater{}\textless{}new\textgreater{} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Remove Surroundings & ds\textless{}old\textgreater{} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Revert Surroundings & cst\textless{}new\textgreater{} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Wrap Text Object & ysiw\textless{}new\textgreater{} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Wrap Line & yss\textless{}new\textgreater{} \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} Wrap (In Visual mode) & S\textless{}new\textgreater{} \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.13091 cm} p{0.84609 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Vimroom (Distraction-free Editing)}} \tn % Row 0 \SetRowColor{LightBackground} Embrace the Zen & ,z \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Abandon the Zen & ,z! \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.42953 cm} p{0.54747 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Git Gutter}} \tn % Row 0 \SetRowColor{LightBackground} Toggle Git Gutter & ,d \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.9816 cm} p{0.9954 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Ack (super fast grep for searching)}} \tn % Row 0 \SetRowColor{LightBackground} Open Ack & ,g \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{:Ack {[}options{]} \{pattern\} {[}\{directories\}{]} \newline Use :Ack! if you don't want to jump to first result automatically \newline \newline Must enclose pattern in ' ' if it has whitespace. \newline Must escape \# -\textgreater{} \textbackslash{}\textbackslash{}\textbackslash{}\# \newline ? a quick summary of shortcuts, repeat to close} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.4793 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Vim-Commentary}} \tn % Row 0 \SetRowColor{LightBackground} Comment out a line (takes a count) & gcc \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Comment out target of a motion & gc \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Uncomment adjacent commented lines & gcu \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{Repeat command to toggle} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.4793 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Vim-Expand-Region}} \tn % Row 0 \SetRowColor{LightBackground} Expand Visual Selection & + \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Shrink Visual Selection & - \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.63321 cm} x{1.34379 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Git Fugitive}} \tn % Row 0 \SetRowColor{LightBackground} View x in Repository & :Gedit x \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Diff files against repository & :Gdiff \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} git status (- to add/reset changes, p to add/reset -{}-patch) & :Gstatus \tn % Row Count 5 (+ 3) % Row 3 \SetRowColor{white} git commit & :Gcommit \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} git blame & :Gblame \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} git mv & :Gmove \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} git grep & :Ggrep \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} git log & :Glog \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} git checkout -{}- filename (on buffer) & :Gread \tn % Row Count 12 (+ 2) % Row 9 \SetRowColor{white} git add/checkout & :Gwrite \tn % Row Count 13 (+ 1) % Row 10 \SetRowColor{LightBackground} Open file on Web (ex. github) & :Gbrowse \tn % Row Count 14 (+ 1) % Row 11 \SetRowColor{white} git \textless{}command\textgreater{} & :Git \textless{}command\textgreater{} \tn % Row Count 16 (+ 2) % Row 12 \SetRowColor{LightBackground} git \textless{}command\textgreater{} with open output in new file & :Git! \textless{}command\textgreater{} \tn % Row Count 18 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{Preface regular vim commands with G to do the git version. \newline Ex: :Gtabedit will open up the blob/tree/commit/tag in a new tab} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}