-
Horizontal Split -
command + shift + d
-
Vertical Split -
command + d
-
Jump to the beginning of the line -
ctrl + a
-
Jump to the end of the line -
ctrl + e
-
Delete at the cursor position -
ctrl + d
-
Delete from the cursor position to the end of the line -
ctrl + k
-
Delete entire line -
ctrl + u
-
Clear screen -
ctrl + l
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Creating a temporary (local K3s) management cluster. | |
k3d cluster create bootstrapper --servers 1 --agents 2 | |
# Cluster API Operator uses Kubernetes Secrets to store credentials for cloud providers. | |
# Lets create a Kubernetes Secret storing our AWS cloud credentials. | |
# Install clusterawsadm | |
brew install clusterawsadm |
Use ctrl + b + :
to get into command mode.
- Start a new session -
tmux
|tmux new -s session-name
- List existing sessions -
tmux ls
- Attach to a session -
tmux a -t session-name
- Detach from the session -
ctrl + b + d
- Destroy a session -
tmux kill session -i session-name
Anatomy of a motion -
Command + Count + Motion
- Jump to beginning of line -
0
/_
(jumps to the first non-whitespace character) - Jump to end of line -
$
- Move forward by 1 word -
w
(jumps to beginning of the next word) /e
(jumps to end of the next word) - Move backward by 1 word -
b
(jumps to beginning of the previous word) /ge
(jumps to end of the previous word) - Jump to beginning of the file -
gg
- Jump to end of the file -
G
- Move forward to the next instance of the character (
(
in this case) -f(
// NOTE : Repeat motion using,
(for backwards movement) or;
(for forward movement)