From 1ab6f0937432ce09decd04770d58413a89171fa7 Mon Sep 17 00:00:00 2001
From: Daniel Bengl <53896675+CuddlyBunion341@users.noreply.github.com>
Date: Tue, 5 Mar 2024 16:46:33 +0100
Subject: [PATCH 1/3] Add VIM shortcuts shortcuts.md
---
shortcuts.md | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/shortcuts.md b/shortcuts.md
index d3a3abf..b5619b2 100644
--- a/shortcuts.md
+++ b/shortcuts.md
@@ -56,3 +56,24 @@ Here are some useful macOS shortcuts to help you work more efficiently.
- **⌘ + ⇧ + R**: Reload your current page, ignoring cached content. Useful for developers or when updating content doesn't seem to appear.
- **⌘ + P**: Print the current page. For when you need a physical copy of a webpage.
- **⌘ + F**: Open the find bar to search for text within the current page. Helps locate specific information on a webpage quickly.
+
+## VIM
+
+- **:wq**: Save and close editor.
+- **:56**: Jump to line 56
+- **fa**: Jump forward to letter 'a' on same line
+- **⌃ + D**: Jump down half a page
+- **^ + U**: Jump up half a page
+- **vit**: Select inside tag
+- **vat**: Select around tag
+- **cit**: Change inside tag
+- **dat**: Delte around tag
+
+- **Find and Replace**
+- **/foo**: Search for Foo
+- **n**: Next occurence
+- **N**: Previous occurence
+
+- [surround.vim](https://github.com/tpope/vim-surround)
+- **cs"'**: Change " to '
+- **ds"**: Remove " around selection
From 90dbf1e7e27b5b3d19e666fa0513474b1ee90ad1 Mon Sep 17 00:00:00 2001
From: Pascal Andermatt
Date: Thu, 14 Mar 2024 13:31:17 +0100
Subject: [PATCH 2/3] Update shortcuts.md
---
shortcuts.md | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/shortcuts.md b/shortcuts.md
index 1ddc02e..e7e186c 100644
--- a/shortcuts.md
+++ b/shortcuts.md
@@ -69,11 +69,13 @@ Here are some useful macOS shortcuts to help you work more efficiently.
- **cit**: Change inside tag
- **dat**: Delte around tag
-- **Find and Replace**
+**Find and Replace**
+
- **/foo**: Search for Foo
- **n**: Next occurence
- **N**: Previous occurence
-- [surround.vim](https://github.com/tpope/vim-surround)
+[surround.vim](https://github.com/tpope/vim-surround)
+
- **cs"'**: Change " to '
- **ds"**: Remove " around selection
From 985b70e3a4232ed95cada7433fa0ab9849d12111 Mon Sep 17 00:00:00 2001
From: Pascal Andermatt
Date: Thu, 14 Mar 2024 13:33:24 +0100
Subject: [PATCH 3/3] add link
---
technical-setup.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/technical-setup.md b/technical-setup.md
index 66f8756..d061e7b 100644
--- a/technical-setup.md
+++ b/technical-setup.md
@@ -71,6 +71,8 @@ This is a highly configurable console editor which can be expected to be present
In the following sections we need to create and edit a lot of files. We will use Vim for this. If you are not familiar with Vim, you can use Visual Studio Code for example.
+Checkout [VIM Shortcuts](/shortcuts.md#vim) for a quick introduction.
+
### Visual Studio Code (Recommended for Interns)
Download and install [Visual Studio Code](https://code.visualstudio.com/).