From b2971b46a5d0268ef5f7f7f2c08d5f0a8e756e61 Mon Sep 17 00:00:00 2001 From: Bhavishya Mathur Date: Fri, 15 Aug 2014 01:52:06 +0530 Subject: [PATCH] Update vim.tex --- cheat-sheets/vim/vim.tex | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/cheat-sheets/vim/vim.tex b/cheat-sheets/vim/vim.tex index 000cc5c..1b7dbf3 100644 --- a/cheat-sheets/vim/vim.tex +++ b/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}