From 89eb38c05087d8f8c20f92ba147ebaf2dbcbc0e0 Mon Sep 17 00:00:00 2001 From: Robert Bittle Date: Sun, 14 Dec 2014 22:43:47 -0500 Subject: [PATCH] Update slides --- demos/{2-macros.js => 1-macros.js} | 0 demos/{phpMacro.vim => 2-phpMacro.vim} | 0 slides/slides.tex | 47 +++++++++----------------- 3 files changed, 16 insertions(+), 31 deletions(-) rename demos/{2-macros.js => 1-macros.js} (100%) rename demos/{phpMacro.vim => 2-phpMacro.vim} (100%) diff --git a/demos/2-macros.js b/demos/1-macros.js similarity index 100% rename from demos/2-macros.js rename to demos/1-macros.js diff --git a/demos/phpMacro.vim b/demos/2-phpMacro.vim similarity index 100% rename from demos/phpMacro.vim rename to demos/2-phpMacro.vim diff --git a/slides/slides.tex b/slides/slides.tex index fbd8112..02d899f 100644 --- a/slides/slides.tex +++ b/slides/slides.tex @@ -24,26 +24,12 @@ % Do you use it regularly? % Is it your primary editor? \subsection{Why Vim?} - \begin{frame}{Why is Vim hard to learn?} + \begin{frame}{Vim is very powerful} \begin{itemize} - \item Vim is extremely complex % This is a pro and a con - \item Vim is full of features that are not imediately discoverable - \item Vim is designed for experienced developers not beginners. - \item Vim throws away everything you've learned about conventional editors and does things in a completely different way. + \item Vim is designed for speed. + \item Vim is designed for developers. + \item Vim is designed to be scriptable. \end{itemize} - % It takes time to learn the complexity, but over time you learn the - % commands and eventually it is all muscle memory. - \end{frame} - \begin{frame}{Why is Vim worth the steep learning curve?} - \begin{itemize} - \item Vim is designed to maximize your productivity potential. - \item Vim can automate the tedious tasks so that text editing doesn't get in the way of coding. - \end{itemize} - % Vim does a little bit to get you started, but it really can be a pain - % to beginners. Learning vim is often done through community. The - % best reason to learn vim is because you've seen someone you know use - % it properly. One of the best motivations to learn vim is know how - % well you saw someone else use it. It may take a while. \end{frame} \begin{frame}{The power of modes} \begin{figure} @@ -53,6 +39,18 @@ % Vim is able to have so many features because in normal mode % all of the keyboard is free for shortcuts. \end{frame} + \begin{frame}{Vim can be difficult to learn} + \begin{itemize} + \item Vim does things very differentely. + \item Mastering Vim takes a large investments of time. + \item Vim should be learned like a programming language. + \end{itemize} + % Vim does a little bit to get you started, but it really can be a pain + % to beginners. Learning vim is often done through community. The + % best reason to learn vim is because you've seen someone you know use + % it properly. One of the best motivations to learn vim is know how + % well you saw someone else use it. It may take a while. + \end{frame} \section{How to learn Vim} % I only have an hour today, so I can only scratch the surface of vim's % capabilities and lets be honest if I only show you a few things that I @@ -127,19 +125,6 @@ \item :help complex-repeat \end{itemize} \end{frame} - \begin{frame}{Tips} - \begin{itemize} - \item Try to start the macro with an operation that will fail after the last iteration. - \item Try to avoid absolute motions. - \item Use search motions, word motions, mark motions, etc. - \end{itemize} - % This definitely calls for a demo. Create a file just for this - % demonstration with the macros spelled out. Maybe even include a - % naive example and show why it doesn't work. Maybe wrap a bunch of - % lines in an html tag. - % - % macros.js - \end{frame} \section{Level up your .vimrc} \subsection{} \begin{frame}{What is a vimrc file?}