46
46
\setminted [bash]{fontsize=\small , tabsize=2, breaklines}
47
47
48
48
\title {Hackerschool: \\ Vim}
49
- \author {Chun Yu }
50
- \date {07 Feb 2024 \\ Slides at \url {https://hckr.cc/ht2425s2-w4-slides}}
49
+ \author {Yadunand Prem }
50
+ \date {15 Aug 2025 \\ Slides at \url {https://hckr.cc/ht2425s2-w4-slides}}
51
51
52
52
\begin {document }
53
53
@@ -65,8 +65,6 @@ \subsection{}
65
65
\end {center }
66
66
67
67
\begin {center }
68
- \textbf {Hackers } Toolbox
69
-
70
68
\textbf {Hack } \& Roll
71
69
72
70
Friday \textbf {Hacks }
@@ -77,11 +75,11 @@ \subsection{}
77
75
\end {frame }
78
76
79
77
\begin {frame }{About Me}
80
- Hi, I'm Chun Yu !
78
+ Hi, I'm Yadunand !
81
79
82
- Year 4 CS undergrad. I don't like anime.
80
+ Year 4 CS undergrad. I like anime.
83
81
84
- I use vim for everything.
82
+ I've been using vim since \textbf { 2017 } and I use it for \textit { almost } everything.
85
83
\end {frame }
86
84
87
85
\begin {frame }{Required Software}
@@ -257,12 +255,6 @@ \subsection{}
257
255
keys to do anything.
258
256
\end {frame }{}
259
257
260
- \begin {frame }{A simple vim config}
261
- Notice that by default, vim looks pretty bad. Let's spice it up a bit with some simple configs.
262
-
263
- Copy this config file to \keys {~/.vimrc}, or modify your existing config: \url {https://hckr.cc/ht-vim-vimrc}
264
- \end {frame }{}
265
-
266
258
\begin {frame }{Normal Mode}
267
259
\begin {tabular }{|c|c|}
268
260
\hline
@@ -289,6 +281,13 @@ \subsection{}
289
281
\end {tabular }{}
290
282
\end {frame }{}
291
283
284
+ \begin {frame }{A simple vim config}
285
+ Notice that by default, vim looks pretty bad. Let's spice it up a bit with some simple configs.
286
+
287
+ Copy this config file to \keys {~/.vimrc}, or modify your existing config: \url {https://hckr.cc/ht-vim-vimrc}
288
+ \end {frame }{}
289
+
290
+
292
291
\begin {frame }{Searching}
293
292
Searching is slightly different in vim, there are two main ways to search something:
294
293
\begin {itemize }
@@ -340,7 +339,7 @@ \subsection{}
340
339
341
340
\begin {frame }{Making small edits - misc. (1/2)}
342
341
\begin {itemize }
343
- \item \keys {y + modifier}, yank a certain portion and puts it in a put buffer (think of ctrl c )
342
+ \item \keys {y + modifier}, yank a certain portion and puts it in a put buffer (think of \keys { ctrl}/ \keys {cmd} \keys {c} )
344
343
\item \keys {yy} - yank entire line
345
344
\item \keys {yw} - yank word
346
345
\item \keys {6yw} - yank 6 words
@@ -394,6 +393,22 @@ \subsection{}
394
393
\end {itemize }{}
395
394
\end {frame }{}
396
395
396
+ \begin {frame }{Registers}
397
+ Whenever you yank or delete text, Vim stores it in \emph {registers } (its clipboards).
398
+
399
+ \begin {itemize }
400
+ \item \keys {:registers} shows all registers and their contents.
401
+ \item Use \keys {"} to choose which register to target:
402
+ \begin {itemize }
403
+ \item \keys {"ayy} -- yank current line into register \texttt {a }
404
+ \item \keys {"ap} -- paste from register \texttt {a }
405
+ \end {itemize }
406
+ \item So this allows you to store multiple items in the clipboard, and choose what you want to paste next!
407
+ \item Registers hold not only text, but also macros (coming next).
408
+ \end {itemize }
409
+ \end {frame }
410
+
411
+
397
412
\begin {frame }{Macros}
398
413
Macros are one of the really powerful features in vim that can significantly speed up your workflow.
399
414
\begin {itemize }
@@ -427,6 +442,7 @@ \subsection{}
427
442
\item \url {https://github.com/preservim/nerdtree}
428
443
\item \url {https://github.com/nvim-telescope/telescope.nvim}
429
444
\item \url {https://github.com/itchyny/calendar.vim}
445
+ \item \url {https://github.com/neovim/neovim}
430
446
\end {itemize }
431
447
These plugins not only try to speed up your vim workflows, but also add additional functionality to vim.
432
448
\end {frame }{}
0 commit comments