From aeca25b6acedf5fdd31ebddfeb5dfacdf83fa63f Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 16 Jul 2025 22:33:19 +0200 Subject: [PATCH] add cheatsheet --- cheatsheet/cheatsheet.tex | 167 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 cheatsheet/cheatsheet.tex diff --git a/cheatsheet/cheatsheet.tex b/cheatsheet/cheatsheet.tex new file mode 100644 index 0000000..cb4c6cb --- /dev/null +++ b/cheatsheet/cheatsheet.tex @@ -0,0 +1,167 @@ +\documentclass[11pt,a4paper]{article} +\usepackage[utf8]{inputenc} +\usepackage{geometry} +\usepackage{array} +\usepackage{hyperref} +\usepackage{xcolor} +\geometry{margin=2.5cm} + +\title{\Huge LazyVim Cheat Sheet} +\author{} +\date{} + +\begin{document} + +\maketitle + +\section*{Leader Key} +\texttt{} = Leader Key + +\vspace{0.5cm} + +% ----------------- +\section*{Cursor-Bewegungen} + +\begin{tabular}{|>{\raggedright}p{5cm}|p{9cm}|} +\hline +\textbf{Shortcut} & \textbf{Aktion} \\ +\hline +\texttt{h} / \texttt{l} & links/rechts \\ +\hline +\texttt{j} / \texttt{k} & hoch/runter \\ +\hline +\end{tabular} + +\vspace{1cm} +% ----------------- +\section*{Dateien \& Projekt} + +\begin{tabular}{|>{\raggedright}p{5cm}|p{9cm}|} +\hline +\textbf{Shortcut} & \textbf{Aktion} \\ +\hline +\texttt{ f f} & Datei suchen (Telescope) \\ +\hline +\texttt{ f o} & Letzte Dateien (oldfiles) \\ +\hline +\texttt{ f w} & Text suchen (Live Grep) \\ +\hline +\texttt{ f s} & Speichern \\ +\hline +\texttt{ f q} & Neovim schließen \\ +\hline +\texttt{ e} & Dateiexplorer (Neo-Tree) \\ +\hline +\end{tabular} + +\vspace{1cm} + +% ----------------- +\section*{Fenster \& Tabs} + +\begin{tabular}{|>{\raggedright}p{5cm}|p{9cm}|} +\hline +\textbf{Shortcut} & \textbf{Aktion} \\ +\hline +\texttt{} / \texttt{} & Split links/rechts wechseln \\ +\hline +\texttt{} / \texttt{} & Split hoch/runter wechseln \\ +\hline +\texttt{ w s} & Horizontal split \\ +\hline +\texttt{ w v} & Vertikal split \\ +\hline +\texttt{ c} & Split schließen \\ +\hline +\end{tabular} + +\vspace{1cm} + +% ----------------- +\section*{LSP (Language Server)} + +\begin{tabular}{|>{\raggedright}p{5cm}|p{9cm}|} +\hline +\textbf{Shortcut} & \textbf{Aktion} \\ +\hline +\texttt{gd} & Gehe zu Definition \\ +\hline +\texttt{gD} & Gehe zu Deklaration \\ +\hline +\texttt{gi} & Gehe zu Implementierung \\ +\hline +\texttt{gr} & Referenzen suchen \\ +\hline +\texttt{K} & Hover-Info (Dokumentation) \\ +\hline +\texttt{ c a} & Code-Aktion \\ +\hline +\texttt{ c r} & Umbenennen \\ +\hline +\texttt{ c f} & Formatieren \\ +\hline +\end{tabular} + +\vspace{1cm} + +% ----------------- +\section*{Suchen} + +\begin{tabular}{|>{\raggedright}p{5cm}|p{9cm}|} +\hline +\textbf{Shortcut} & \textbf{Aktion} \\ +\hline +\texttt{/} & Suchen \\ +\hline +\texttt{n} / \texttt{N} & Weitersuchen / Rückwärts suchen \\ +\hline +\texttt{ f w} & Live Grep (Telescope) \\ +\hline +\end{tabular} + +\vspace{1cm} + +% ----------------- +\section*{Git} + +\begin{tabular}{|>{\raggedright}p{5cm}|p{9cm}|} +\hline +\textbf{Shortcut} & \textbf{Aktion} \\ +\hline +\texttt{ g g} & LazyGit öffnen \\ +\hline +\texttt{ g s} & Git-Status anzeigen \\ +\hline +\texttt{ g c} & Commit \\ +\hline +\texttt{ g b} & Branches anzeigen \\ +\hline +\end{tabular} + +\vspace{1cm} + +% ----------------- +\section*{Sonstiges} + +\begin{tabular}{|>{\raggedright}p{5cm}|p{9cm}|} +\hline +\textbf{Shortcut} & \textbf{Aktion} \\ +\hline +\texttt{ l} & LazyVim Menü (Lazy.nvim) \\ +\hline +\texttt{ q} & Quickfix öffnen/schließen \\ +\hline +\texttt{ t} & Toggle-Optionen (z. B. relative Zeilen) \\ +\hline +\end{tabular} + +\vspace{1cm} + +\section*{Tipps} + +- Alle LazyVim-Bindings starten oft mit \texttt{}. +- Nutze \texttt{ l} um LazyVim Plugins zu verwalten. +- Nutze \texttt{:Telescope} für viele zusätzliche Suchfunktionen. + +\end{document} +