2020-07-12 19:57:13 +02:00
|
|
|
# dotfiles
|
|
|
|
|
2022-07-07 21:46:52 +02:00
|
|
|
|
|
|
|
## vim
|
2021-12-21 21:17:28 +01:00
|
|
|
|
2021-11-30 08:39:30 +01:00
|
|
|
Leader = `,`
|
2021-12-21 21:17:28 +01:00
|
|
|
|
2022-07-07 21:46:52 +02:00
|
|
|
| Keybinding | Aktion | |
|
|
|
|
| --------------- | ----------------------------------------------------------------------------- | ------ |
|
|
|
|
| Leader+z | Toggle Line Numbers | |
|
|
|
|
| Leader+m | Toggle Markdown Preview | |
|
|
|
|
| Leader+p | Toggle Paste-Mode | |
|
|
|
|
| Leader+h | Toggle Cursorline | |
|
|
|
|
| Leader+dh | Setze Highlighting + Suche neu | |
|
|
|
|
| Leader+sc | Öffnet ShellCheck; gb öffnet die Definition auf github | |
|
|
|
|
| Leader+cn/cp | Wechsle durch Quickfix-Windows hoch/runter | |
|
|
|
|
| Ctrl+j/k | wechsle Buffer ab/aufwärts | |
|
|
|
|
| Ctrl+s | Speichern | |
|
|
|
|
| Ctrl+w | Schließen | |
|
|
|
|
| Ctrl+f | Fuzzy Search nach Dateien | |
|
|
|
|
| Ctrl+l | Fuzzy Search nach Zeilen in Datei | |
|
|
|
|
| Ctrl+k/l | wechsle Buffer ab/aufwärts | |
|
|
|
|
| \\\\\ | Setze mehrfachen Cursor oder Ctrl-n dann Enter pro Cursor | # 3x \ |
|
|
|
|
| * | Suche Wort unter dem Cursor | |
|
|
|
|
| `s<char><char>` | Sucht nach dem nächsten Vorkommen der beiden Buchstaben, Wiederholung mit `s` | |
|
|
|
|
|
|
|
|
### Tipps
|
|
|
|
|
|
|
|
| Aktion | Erklärung |
|
|
|
|
| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
| `viw/vi'/vi$/vaX` | Visual Selection bis x |
|
|
|
|
| ```args `find . -type f -name *.sh` danach argsdo %s/suche/ersetze/ge``` | Suchen ersetzen in allen Dateien |
|
|
|
|
| In `Visual-Mode` `ga` | öffnet EasyAlign |
|
|
|
|
| In `Visual-Mode` `:sort` oder `:sort u` | sortieren/sortieren und doppelte löschen |
|
|
|
|
| In `Visual-Block` `I` <Zeichen> `Esc` | Text ein/auskommentieren |
|
|
|
|
| mark setzen `m<zeichen>`, hinspringen `'<zeichen>'` | Marks |
|
|
|
|
| cs"' // ds" // ysiw" | Tausche Anführunsgzeichen um Wort gegen Ticks, entferne umschließende Anführungszeichen, füge umschließende Anführungszeichen hinzu |
|
|
|
|
|
|
|
|
|
|
|
|
## tmux
|
2021-12-21 21:17:28 +01:00
|
|
|
|
2022-04-10 14:34:16 +02:00
|
|
|
| Shortcut | Befehl |
|
|
|
|
| ------------------ | ------------------------------------------------------------------- |
|
|
|
|
| Präfix+w | Schließe Windows |
|
|
|
|
| Präfix+c/t | Öffne Windows |
|
|
|
|
| Präfix+f | Suche in Pane Buffer |
|
|
|
|
| Präfix :attach -d | Hängt sich and die Session und entfernt alle anderen Sessions daran |
|
|
|
|
| Präfix+<Leertaste> | Wechselt zwischen vertikalen/horizontalen Layout |
|
2022-07-07 21:46:52 +02:00
|
|
|
|
|
|
|
# i3 Keybindings
|
|
|
|
|
|
|
|
- mod1 = Win/Super
|
|
|
|
- mod2 = Alt
|
|
|
|
|
|
|
|
### Normal-Mode
|
|
|
|
|
|
|
|
| mod1 + l | Lock Screen | Bemerkung |
|
|
|
|
| ------------------------------- | ----------------------------------------------------------------------------- | ----------- |
|
|
|
|
| Maus + mod1 | Move floating Window | |
|
|
|
|
| mod2 + F4 | kill Window | |
|
|
|
|
| mod1+shift+q | kill Window | |
|
|
|
|
| mod1 + d | rofi | |
|
|
|
|
| mod1 + p | Screenshot Full Screen | |
|
|
|
|
| mod1 + shift + p | Open Flameshot | |
|
|
|
|
| mod1 + hjkl/pfeiltasten | change focus | |
|
|
|
|
| mod1 + shift + hjkl/pfeiltasten | move focused window | |
|
|
|
|
| mod1+Strg+hjkl/pfeiltasten | resize focused window | |
|
|
|
|
| mod1 + v | Split horizontal | # umbelegen |
|
|
|
|
| mod1 + h | split vertical | # umbelegen |
|
|
|
|
| mod1 + Strg + </> | move Workspace to on the left/right | |
|
|
|
|
| mod1 + f | fullscreen | |
|
|
|
|
| mod1+t/s | change container layout (tabbed, toggle split) | |
|
|
|
|
| mod1+shift+<leertaste> | toggle tiling / floating | |
|
|
|
|
| mod1 + <leertaste> | change focus between tiling / floating windows | |
|
|
|
|
| mod1+a | focus the parent container | |
|
|
|
|
| mod1+{1..0} | switch to workspace 1-10 | |
|
|
|
|
| mod1+shift+{1..0} | move focused container to workspace | |
|
|
|
|
| mod1+ctrl+{1..0} | move focused container to workspace and follow it | |
|
|
|
|
| mod1+Shift+c | reload the configuration file | |
|
|
|
|
| mod1+Shift+r | restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | |
|
|
|
|
| mod1+Shift+e | exit i3 | |
|
|
|
|
| mod1+e | starte filemanager | |
|
|
|
|
| mod1+r/mod1 + enter | starte alacritty | |
|
|
|
|
| mod1 + Shift + Pfeiltasten | Tausche Fenster | |
|