\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{chingli} \pdfinfo{ /Title (helix-editor.pdf) /Creator (Cheatography) /Author (chingli) /Subject (Helix Editor 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}{A3A3A3} \definecolor{LightBackground}{HTML}{F3F3F3} \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 Editor Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{chingli} via \textcolor{DarkBackground}{\uline{cheatography.com/189986/cs/39602/}}} \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}chingli \\ \uline{cheatography.com/chingli} \\ \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 22nd July, 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*}{3} \begin{tabularx}{5.377cm}{x{1.64241 cm} x{3.33459 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{移动}} \tn % Row 0 \SetRowColor{LightBackground} h, ← & 向左移动 \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} l, → & 向右移动 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} j, ↓ & 向下移动 \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} k, ↑ & 向上移动 \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} w & \seqsplit{移到下一小单词的开头} \tn % Row Count 6 (+ 2) % Row 5 \SetRowColor{white} b & \seqsplit{移到上一小单词的开头} \tn % Row Count 8 (+ 2) % Row 6 \SetRowColor{LightBackground} e & \seqsplit{移到下一小单词的结尾} \tn % Row Count 10 (+ 2) % Row 7 \SetRowColor{white} W & \seqsplit{移到下一大单词的开头} \tn % Row Count 12 (+ 2) % Row 8 \SetRowColor{LightBackground} B & \seqsplit{移到上一大单词的开头} \tn % Row Count 14 (+ 2) % Row 9 \SetRowColor{white} E & \seqsplit{移到下一大单词的结尾} \tn % Row Count 16 (+ 2) % Row 10 \SetRowColor{LightBackground} t & \seqsplit{搜索到下一个字符前} \tn % Row Count 18 (+ 2) % Row 11 \SetRowColor{white} f & 搜索下一个字符 \tn % Row Count 19 (+ 1) % Row 12 \SetRowColor{LightBackground} T & \seqsplit{搜索到上一个字符后} \tn % Row Count 21 (+ 2) % Row 13 \SetRowColor{white} F & 搜索上一个字符 \tn % Row Count 22 (+ 1) % Row 14 \SetRowColor{LightBackground} G & 转到第 \textless{}n\textgreater{} 行 \tn % Row Count 23 (+ 1) % Row 15 \SetRowColor{white} Alt-. & 重复上次移动 (f, t 或 m) \tn % Row Count 25 (+ 2) % Row 16 \SetRowColor{LightBackground} Home & 移到行首 \tn % Row Count 26 (+ 1) % Row 17 \SetRowColor{white} End & 移到行尾 \tn % Row Count 27 (+ 1) % Row 18 \SetRowColor{LightBackground} Ctrl-b, PageUp & 上移一页 \tn % Row Count 29 (+ 2) % Row 19 \SetRowColor{white} Ctrl-f, PageDown & 下移一页 \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.64241 cm} x{3.33459 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{移动 (cont)}} \tn % Row 20 \SetRowColor{LightBackground} Ctrl-u & 上移半页 \tn % Row Count 1 (+ 1) % Row 21 \SetRowColor{white} Ctrl-d & 下移半页 \tn % Row Count 2 (+ 1) % Row 22 \SetRowColor{LightBackground} Ctrl-i & 向前跳转 \tn % Row Count 3 (+ 1) % Row 23 \SetRowColor{white} Ctrl-o & 向后跳转 \tn % Row Count 4 (+ 1) % Row 24 \SetRowColor{LightBackground} Ctrl-s & \seqsplit{将当前选区存到跳转列表} \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{\seqsplit{在常规模式下移动光标}.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.89586 cm} x{4.08114 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{子模式}} \tn % Row 0 \SetRowColor{LightBackground} v & \seqsplit{进入选择/扩展模式} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} g & 进入转到模式 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} m & 进入配对模式 \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} : & 进入命令模式 \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} z & 进入查看模式 \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} Z & \seqsplit{进入常驻的查看模式} \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} Ctrl-w & 进入窗口模式 \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} Space & 进入空格模式 \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{从常规模式进入, \seqsplit{一般在完成一条命令后返回常规模式}.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{空格模式}} \tn % Row 0 \SetRowColor{LightBackground} f & 打开文件选择器 \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} F & \seqsplit{在当前工作目录打开文件选择器} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} b & 打开缓冲区选择器 \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} j & \seqsplit{打开跳转列表选择器} \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} g & 调试 (试验性) \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} k & \seqsplit{在一个弹出框显示光标所在项的文档} ({\bf{LSP}}) \tn % Row Count 8 (+ 2) % Row 6 \SetRowColor{LightBackground} s & \seqsplit{打开文档符号选择器} ({\bf{LSP}}) \tn % Row Count 10 (+ 2) % Row 7 \SetRowColor{white} S & \seqsplit{打开工作空间符号选择器} ({\bf{LSP}}) \tn % Row Count 12 (+ 2) % Row 8 \SetRowColor{LightBackground} d & \seqsplit{打开文档诊断选择器} ({\bf{LSP}}) \tn % Row Count 14 (+ 2) % Row 9 \SetRowColor{white} D & \seqsplit{打开工作空间诊断选择器} ({\bf{LSP}}) \tn % Row Count 16 (+ 2) % Row 10 \SetRowColor{LightBackground} r & 重命名符号 ({\bf{LSP}}) \tn % Row Count 17 (+ 1) % Row 11 \SetRowColor{white} a & 应用代码行为 ({\bf{LSP}}) \tn % Row Count 18 (+ 1) % Row 12 \SetRowColor{LightBackground} h & 选中符号引用 ({\bf{LSP}}) \tn % Row Count 19 (+ 1) % Row 13 \SetRowColor{white} ' & \seqsplit{打开最近的模糊选择器} \tn % Row Count 20 (+ 1) % Row 14 \SetRowColor{LightBackground} w & 进入窗口模式 \tn % Row Count 21 (+ 1) % Row 15 \SetRowColor{white} p & \seqsplit{在选区后方粘贴系统剪贴板} \tn % Row Count 22 (+ 1) % Row 16 \SetRowColor{LightBackground} P & \seqsplit{在选区前方粘贴系统剪贴板} \tn % Row Count 23 (+ 1) % Row 17 \SetRowColor{white} y & 拼接选区, \seqsplit{并复制到系统剪贴板} \tn % Row Count 25 (+ 2) % Row 18 \SetRowColor{LightBackground} Y & \seqsplit{复制主选区到系统剪贴板} \tn % Row Count 26 (+ 1) % Row 19 \SetRowColor{white} R & \seqsplit{用系统剪贴板内容替换选区} \tn % Row Count 27 (+ 1) % Row 20 \SetRowColor{LightBackground} / & \seqsplit{在工作空间目录全局搜索} \tn % Row Count 28 (+ 1) % Row 21 \SetRowColor{white} ? & 打开命令面板 \tn % Row Count 29 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{\seqsplit{在常规模式下按空格键访问空格模式}.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.24425 cm} x{3.73275 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{配对模式}} \tn % Row 0 \SetRowColor{LightBackground} m & 转到配对的括号 ({\bf{TS}}) \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} s \textless{}char\textgreater{} & 同字符 \textless{}char\textgreater{} 包围选区 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} r \textless{}from\textgreater{}\textless{}to\textgreater{} & 将包围字符从 \textless{}from\textgreater{} 改为\textless{}to\textgreater{} \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} d \textless{}char\textgreater{} & 删除包围字符 \textless{}char\textgreater{} \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} a \textless{}object\textgreater{} & \seqsplit{选中周围的文本对象} \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} i \textless{}object\textgreater{} & \seqsplit{选中内部的文本对象} \tn % Row Count 7 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{在常规模式下键入 `m` 进入配对模式.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.54747 cm} x{4.42953 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Shell}} \tn % Row 0 \SetRowColor{LightBackground} | & \seqsplit{通过管道将每个选区提供给} shell 命令, 替换为输出 \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Alt-| & \seqsplit{通过管道将每个选区提供给} shell 命令, 忽略输出 \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} ! & 运行 shell 命令, \seqsplit{在每个选区前插入输出} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Alt-! & 运行 shell 命令, \seqsplit{在每个选区后追加输出} \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \$ & \seqsplit{通过管道将每个选区提供给} shell 命令, 当返回值为 0 时保持选区 \tn % Row Count 11 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{将选区内容提供给 shell 命令, \seqsplit{并用输出更改选区.}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.64701 cm} x{4.32999 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{更改}} \tn % Row 0 \SetRowColor{LightBackground} r & 用一个字符替换 \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} R & 用复制的文本替换 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \textasciitilde{} & \seqsplit{翻转选中文本的大小写} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} ` & \seqsplit{将选中的文本变为小写} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Alt-` & \seqsplit{将选中的文本变为大写} \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} i & 在选区前插入 \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} a & 在选区后插入 (追加) \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} I & 在行首插入 \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} A & 在行尾插入 \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} o & \seqsplit{在选区下方插入新行} \tn % Row Count 10 (+ 1) % Row 10 \SetRowColor{LightBackground} O & \seqsplit{在选区上方插入新行} \tn % Row Count 11 (+ 1) % Row 11 \SetRowColor{white} . & 重复上次插入 \tn % Row Count 12 (+ 1) % Row 12 \SetRowColor{LightBackground} u & 撤销 \tn % Row Count 13 (+ 1) % Row 13 \SetRowColor{white} U & 重做 \tn % Row Count 14 (+ 1) % Row 14 \SetRowColor{LightBackground} Alt-u & \seqsplit{移动到前一历史位置} \tn % Row Count 15 (+ 1) % Row 15 \SetRowColor{white} Alt-U & \seqsplit{移动到后一历史位置} \tn % Row Count 16 (+ 1) % Row 16 \SetRowColor{LightBackground} y & 复制选区 \tn % Row Count 17 (+ 1) % Row 17 \SetRowColor{white} p & 在选区后粘贴 \tn % Row Count 18 (+ 1) % Row 18 \SetRowColor{LightBackground} P & 在选区前粘贴 \tn % Row Count 19 (+ 1) % Row 19 \SetRowColor{white} "\textless{}reg\textgreater{} & \seqsplit{对特定寄存器复制或粘贴} \tn % Row Count 21 (+ 2) % Row 20 \SetRowColor{LightBackground} \textgreater{} & 增加选区缩进 \tn % Row Count 22 (+ 1) % Row 21 \SetRowColor{white} \textless{} & 减少选区缩进 \tn % Row Count 23 (+ 1) % Row 22 \SetRowColor{LightBackground} = & 根据 {\bf{LSP}} 格式化选区 (当前不可用) \tn % Row Count 25 (+ 2) % Row 23 \SetRowColor{white} d & 删除选区 \tn % Row Count 26 (+ 1) % Row 24 \SetRowColor{LightBackground} Alt-d & 删除选区, 但不复制 \tn % Row Count 27 (+ 1) % Row 25 \SetRowColor{white} c & 更改选区 \seqsplit{(删除并进入插入模式)} \tn % Row Count 29 (+ 2) % Row 26 \SetRowColor{LightBackground} Alt-c & 更改选区 (删除, 进入插入模式, 但不复制) \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{p{0.64701 cm} x{4.32999 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{更改 (cont)}} \tn % Row 27 \SetRowColor{LightBackground} \seqsplit{Ctrl-a} & 在光标处递增对象 (数目) \tn % Row Count 2 (+ 2) % Row 28 \SetRowColor{white} \seqsplit{Ctrl-x} & 在光标处递减对象 (数目) \tn % Row Count 4 (+ 2) % Row 29 \SetRowColor{LightBackground} Q & \seqsplit{启动/停止到选定寄存器的宏记录} (实验性) \tn % Row Count 6 (+ 2) % Row 30 \SetRowColor{white} q & \seqsplit{从选定的寄存器回放宏记录} (实验性) \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{\seqsplit{在常规模式下进行更改}.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.74195 cm} x{3.23505 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{查看模式}} \tn % Row 0 \SetRowColor{LightBackground} z, c & 将当前行垂直居中 \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} t & \seqsplit{将当前行置于屏幕上方} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} b & \seqsplit{将当前行置于屏幕下方} \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} m & \seqsplit{将当前内容水平居中} \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} j, down & 向下滚动 \tn % Row Count 8 (+ 1) % Row 5 \SetRowColor{white} k, up & 向上滚动 \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} Ctrl-f, PageDown & 向下移动页面 \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} Ctrl-b, PageUp & 向上移动页面 \tn % Row Count 12 (+ 1) % Row 8 \SetRowColor{LightBackground} Ctrl-d & 向下移动半个页面 \tn % Row Count 13 (+ 1) % Row 9 \SetRowColor{white} Ctrl-u & 向上移动半个页面 \tn % Row Count 14 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{在常规模式下键入 `z` 可访问查看模式, 键入大写的 `Z` \seqsplit{可进入常驻的查看模式}.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.78712 cm} x{2.18988 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{插入模式}} \tn % Row 0 \SetRowColor{LightBackground} Escape & \seqsplit{切换到常规模式} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Ctrl-s & \seqsplit{提交撤销的检查点} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Ctrl-x & 自动完成 \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} Ctrl-r & \seqsplit{插入一个寄存器内容} \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} Ctrl-w, Alt-Backspace & \seqsplit{删除上一个单词} \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} Alt-d, Alt-Delete & \seqsplit{删除下一个单词} \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} Ctrl-u & 删除到行首 \tn % Row Count 12 (+ 1) % Row 7 \SetRowColor{white} Ctrl-k & 删除到行尾 \tn % Row Count 13 (+ 1) % Row 8 \SetRowColor{LightBackground} Ctrl-h, Backspace, Shift-Backspace & \seqsplit{删除前一个字符} \tn % Row Count 15 (+ 2) % Row 9 \SetRowColor{white} Ctrl-d, Delete & \seqsplit{删除下一个字符} \tn % Row Count 17 (+ 2) % Row 10 \SetRowColor{LightBackground} Ctrl-j, Enter & 插入新行 \tn % Row Count 18 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{从常规模式键入 `i` 进入插入模式.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.18988 cm} x{2.78712 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{选择器}} \tn % Row 0 \SetRowColor{LightBackground} Shift-Tab, Up, Ctrl-p & 上一项 \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Tab, Down, Ctrl-n & 下一项 \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} PageUp, Ctrl-u & 上一页 \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} PageDown, Ctrl-d & 下一页 \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} Home & 转到第一项 \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} End & 转到最后项 \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} Enter & 打开所选 \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} Ctrl-s & \seqsplit{在水平分割窗口打开} \tn % Row Count 10 (+ 2) % Row 8 \SetRowColor{LightBackground} Ctrl-v & \seqsplit{在垂直分割窗口打开} \tn % Row Count 12 (+ 2) % Row 9 \SetRowColor{white} Ctrl-t & 切换预览 \tn % Row Count 13 (+ 1) % Row 10 \SetRowColor{LightBackground} Escape, Ctrl-c & 关闭选择器 \tn % Row Count 14 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{\seqsplit{可通过空格模式打开编辑器}.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{1.64241 cm} x{3.33459 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{弹出}} \tn % Row 0 \SetRowColor{LightBackground} Ctrl-u & 向上翻页 \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Ctrl-d & 向下翻页 \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{\seqsplit{显示光标所在项的文档}.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.44333 cm} x{3.53367 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{选区操作}} \tn % Row 0 \SetRowColor{LightBackground} s & \seqsplit{在选区内选中所有正则匹配} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} S & \seqsplit{在正则匹配处将选区分割为子选区} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Alt-s & \seqsplit{从换行符处分割选区} \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} Alt-minus & 合并多个选区 \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} Alt-\_ & 合并连续的选区 \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} \& & 在各列处对齐选区 \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} \_ & 修剪选区中的空白 \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} ; & \seqsplit{将选区折叠到单个光标} \tn % Row Count 11 (+ 2) % Row 8 \SetRowColor{LightBackground} Alt-; & \seqsplit{翻转选区光标和锚点} \tn % Row Count 12 (+ 1) % Row 9 \SetRowColor{white} Alt-: & 确保选区是向前的 \tn % Row Count 13 (+ 1) % Row 10 \SetRowColor{LightBackground} , & 仅保留主选区 \tn % Row Count 14 (+ 1) % Row 11 \SetRowColor{white} Alt-, & 移除主选区 \tn % Row Count 15 (+ 1) % Row 12 \SetRowColor{LightBackground} C & \seqsplit{将选区复现到下一行} (在下方添加光标) \tn % Row Count 17 (+ 2) % Row 13 \SetRowColor{white} Alt-C & \seqsplit{将选区复现到上一行} (在上方添加光标) \tn % Row Count 19 (+ 2) % Row 14 \SetRowColor{LightBackground} ( & 向后旋转主选区 \tn % Row Count 20 (+ 1) % Row 15 \SetRowColor{white} ) & 向前旋转主选区 \tn % Row Count 21 (+ 1) % Row 16 \SetRowColor{LightBackground} Alt-( & \seqsplit{向后旋转主选区内容} \tn % Row Count 22 (+ 1) % Row 17 \SetRowColor{white} Alt-) & \seqsplit{向前旋转主选区内容} \tn % Row Count 23 (+ 1) % Row 18 \SetRowColor{LightBackground} \% & 选中整个文件 \tn % Row Count 24 (+ 1) % Row 19 \SetRowColor{white} x & 选中当前行, 如果已选, 扩展选区到下一行 \tn % Row Count 26 (+ 2) % Row 20 \SetRowColor{LightBackground} X & 扩展选区到行范围 \tn % Row Count 27 (+ 1) % Row 21 \SetRowColor{white} Alt-x & 收缩选区到行范围 \tn % Row Count 28 (+ 1) % Row 22 \SetRowColor{LightBackground} J & 在选区内合并行 \tn % Row Count 29 (+ 1) % Row 23 \SetRowColor{white} Alt-J & \seqsplit{在选区内合并行并选中插入的空格} \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.44333 cm} x{3.53367 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{选区操作 (cont)}} \tn % Row 24 \SetRowColor{LightBackground} K & \seqsplit{保留与正则匹配的选区} \tn % Row Count 2 (+ 2) % Row 25 \SetRowColor{white} Alt-K & \seqsplit{移除与正则匹配的选区} \tn % Row Count 4 (+ 2) % Row 26 \SetRowColor{LightBackground} Ctrl-c & \seqsplit{注释/取消注释选区} \tn % Row Count 5 (+ 1) % Row 27 \SetRowColor{white} Alt-o, Alt-up & \seqsplit{扩展选区到父语法节点} ({\bf{TS}}) \tn % Row Count 7 (+ 2) % Row 28 \SetRowColor{LightBackground} Alt-i, Alt-down & \seqsplit{收缩语法树对象选区} ({\bf{TS}}) \tn % Row Count 9 (+ 2) % Row 29 \SetRowColor{white} Alt-p, Alt-left & \seqsplit{选中语法树中的上一个兄弟节点} ({\bf{TS}}) \tn % Row Count 11 (+ 2) % Row 30 \SetRowColor{LightBackground} Alt-n, Alt-right & \seqsplit{选中语法树中的下一个兄弟节点} ({\bf{TS}}) \tn % Row Count 13 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{\seqsplit{在常规模式下操作选区}.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{转到模式}} \tn % Row 0 \SetRowColor{LightBackground} g & 转到第 \textless{}n\textgreater{} 或文件开头 \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} e & 转到文件末尾 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} f & 转到选区中的文件 \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} h & 转到行首 \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} l & 转到行尾 \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} s & \seqsplit{转到当前行的第一个非空白字符} \tn % Row Count 7 (+ 2) % Row 6 \SetRowColor{LightBackground} t & 转到屏幕顶部 \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} c & 转到屏幕中部 \tn % Row Count 9 (+ 1) % Row 8 \SetRowColor{LightBackground} b & 转到屏幕底部 \tn % Row Count 10 (+ 1) % Row 9 \SetRowColor{white} d & 转到定义 ({\bf{LSP}}) \tn % Row Count 11 (+ 1) % Row 10 \SetRowColor{LightBackground} y & 转到类型定义 ({\bf{LSP}}) \tn % Row Count 12 (+ 1) % Row 11 \SetRowColor{white} r & 转到引用 ({\bf{LSP}}) \tn % Row Count 13 (+ 1) % Row 12 \SetRowColor{LightBackground} i & 转到实现 ({\bf{LSP}}) \tn % Row Count 14 (+ 1) % Row 13 \SetRowColor{white} a & \seqsplit{转到最近访问/轮换的文件} \tn % Row Count 15 (+ 1) % Row 14 \SetRowColor{LightBackground} m & \seqsplit{转到最近修改/轮换的文件} \tn % Row Count 16 (+ 1) % Row 15 \SetRowColor{white} n & 转到下一个缓冲区 \tn % Row Count 17 (+ 1) % Row 16 \SetRowColor{LightBackground} p & 转到上一个缓冲区 \tn % Row Count 18 (+ 1) % Row 17 \SetRowColor{white} . & \seqsplit{转到当前文件的最近修改位置} \tn % Row Count 20 (+ 2) % Row 18 \SetRowColor{LightBackground} j & 向下移动文本行 (非可视行) \tn % Row Count 21 (+ 1) % Row 19 \SetRowColor{white} k & 向上移动文本行 (非可视行) \tn % Row Count 22 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{在常规模式下键入 `g` 以进入转到模式.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{搜索}} \tn % Row 0 \SetRowColor{LightBackground} / & 向后正则搜索 \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ? & 向前正则搜索 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} n & \seqsplit{选中下一个匹配的搜索结果} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} N & \seqsplit{选中上一个匹配的搜索结果} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} * & \seqsplit{使用当前选区作为搜索模式} \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{\seqsplit{从常规模式下进行搜索}. \seqsplit{搜索命令默认作用于} `/` 寄存器. \seqsplit{要使用不同的寄存器}, 请使用 `"\textless{}char\textgreater{}`.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.44333 cm} x{3.53367 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{窗口模式}} \tn % Row 0 \SetRowColor{LightBackground} w, Ctrl-w & 转到下一个窗口 \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} v, Ctrl-v & \seqsplit{用垂线左右分割窗口} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} s, Ctrl-s & \seqsplit{用水平线上下分割窗口} \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} f & \seqsplit{使用水平分割转到选区中的文件} \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} F & \seqsplit{使用垂直分割转到选区中的文件} \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} h, Ctrl-h, Left & \seqsplit{转到左侧的分割窗口} \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} l, Ctrl-l, Right & \seqsplit{转到右侧的分割窗口} \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} k, Ctrl-k, Up & \seqsplit{转到上方的分割窗口} \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} j, Ctrl-j, Down & \seqsplit{转到下方的分割窗口} \tn % Row Count 16 (+ 2) % Row 9 \SetRowColor{white} q, Ctrl-q & 关闭当前窗口 \tn % Row Count 17 (+ 1) % Row 10 \SetRowColor{LightBackground} o, Ctrl-o & 保留当前窗口, 关闭其他窗口 \tn % Row Count 19 (+ 2) % Row 11 \SetRowColor{white} H & 将窗口互换值左侧 \tn % Row Count 20 (+ 1) % Row 12 \SetRowColor{LightBackground} L & 将窗口互换值右侧 \tn % Row Count 21 (+ 1) % Row 13 \SetRowColor{white} K & 将窗口互换值上方 \tn % Row Count 22 (+ 1) % Row 14 \SetRowColor{LightBackground} J & 将窗口互换值下方 \tn % Row Count 23 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{在常规模式下键入 `Ctrl-w` 访问窗口模式.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}