Browse Source

Update vim.tex

Bhavishya Mathur 11 years ago
parent
commit
b2971b46a5
1 changed files with 12 additions and 4 deletions
  1. 12 4
      cheat-sheets/vim/vim.tex

+ 12 - 4
cheat-sheets/vim/vim.tex

@@ -48,15 +48,23 @@
 \keys{e}    & Move to the end of the word \\
 \end{tabular}
 
-\section{Cut and paste}
+\section{Cut/Copy and paste}
 \begin{enumerate}
-    \item Position the cursor where you want to begin cutting
+    \item Position the cursor where you want to begin cutting or copying
     \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 the cursor to the end of what you want to cut or copy
+    \item Press \keys{d} or Press \keys{y}
     \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}
+\section{Undo and Repeat}
+\begin{enumerate}
+    \item Enter the command mode
+    \item Press \keys{u} for "undo"
+    \subsection{Redo}
+    \item Best way is to enter "redo" in last line mode
+    \item Another way is to Press \keys{Ctrl}+\keys{r}
+\end{enumerate}
 
 \end{multicols}
 \end{document}