瀏覽代碼

added cut and paste

Martin Thoma 12 年之前
父節點
當前提交
77e1bd7edd
共有 2 個文件被更改,包括 9 次插入0 次删除
  1. 二進制
      cheat-sheets/vim/vim.pdf
  2. 9 0
      cheat-sheets/vim/vim.tex

二進制
cheat-sheets/vim/vim.pdf


+ 9 - 0
cheat-sheets/vim/vim.tex

@@ -46,6 +46,15 @@
 \keys{e}    & Move to the end of the word \\
 \end{tabular}
 
+\section{Cut and paste}
+\begin{enumerate}
+    \item Position the cursor where you want to begin cutting
+    \item Press \keys{v} (or \keys{V} if you want to cut whole lines)
+    \item Move the cursor to the end of what you want to cut
+    \item Press \keys{d}
+    \item Move to where you would like to paste
+    \item Press \keys{p} to paste after the cursor, or \keys{P} to paste before
+\end{enumerate}
 
 \end{multicols}
 \end{document}