Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VIM shortcuts shortcuts.md #11

Merged
merged 4 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions shortcuts.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,26 @@ 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
2 changes: 2 additions & 0 deletions technical-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand Down
Loading