Files
my-lazyvim-config/cheatsheet/cheatsheet.tex
2025-07-16 22:33:19 +02:00

168 lines
3.3 KiB
TeX

\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{<Space>} = 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{<Space> f f} & Datei suchen (Telescope) \\
\hline
\texttt{<Space> f o} & Letzte Dateien (oldfiles) \\
\hline
\texttt{<Space> f w} & Text suchen (Live Grep) \\
\hline
\texttt{<Space> f s} & Speichern \\
\hline
\texttt{<Space> f q} & Neovim schließen \\
\hline
\texttt{<Space> 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{<C-h>} / \texttt{<C-l>} & Split links/rechts wechseln \\
\hline
\texttt{<C-j>} / \texttt{<C-k>} & Split hoch/runter wechseln \\
\hline
\texttt{<Space> w s} & Horizontal split \\
\hline
\texttt{<Space> w v} & Vertikal split \\
\hline
\texttt{<C-w> 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{<Space> c a} & Code-Aktion \\
\hline
\texttt{<Space> c r} & Umbenennen \\
\hline
\texttt{<Space> 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{<Space> 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{<Space> g g} & LazyGit öffnen \\
\hline
\texttt{<Space> g s} & Git-Status anzeigen \\
\hline
\texttt{<Space> g c} & Commit \\
\hline
\texttt{<Space> 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{<Space> l} & LazyVim Menü (Lazy.nvim) \\
\hline
\texttt{<Space> q} & Quickfix öffnen/schließen \\
\hline
\texttt{<Space> t} & Toggle-Optionen (z. B. relative Zeilen) \\
\hline
\end{tabular}
\vspace{1cm}
\section*{Tipps}
- Alle LazyVim-Bindings starten oft mit \texttt{<Space>}.
- Nutze \texttt{<Space> l} um LazyVim Plugins zu verwalten.
- Nutze \texttt{:Telescope} für viele zusätzliche Suchfunktionen.
\end{document}