{"id":11788,"date":"2023-12-09T22:38:25","date_gmt":"2023-12-09T21:38:25","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=11788"},"modified":"2023-12-09T22:38:27","modified_gmt":"2023-12-09T21:38:27","slug":"lightline-statusleiste-im-stil-von-zsh-fuer-vim","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/12\/09\/lightline-statusleiste-im-stil-von-zsh-fuer-vim\/","title":{"rendered":"LightLine &#8211; Statusleiste im Stil von Zsh f\u00fcr Vim"},"content":{"rendered":"\n<p>Die Statusleiste von <a href=\"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/vim-der-professionelle-editor-fuer-das-terminal-unter-linux-einfuehrung\/\" data-type=\"post\" data-id=\"535\">Vim<\/a> ist unter <a href=\"https:\/\/linux-bibel.at\/index.php\/enzyklopaedie\/linux\/\" target=\"_self\" title=\"Linux ist ein UNIX-artiges Betriebssystem, seine Entwicklung wurde im Jahr 1992 vom Finnen Linus Torwalds gestartet. Im Grunde handelt es sich bei Linux nur um den Kern des Betriebssystems, zum Arbeiten ben&ouml;tigt Linux noch Treiber und Software, nicht unbedingt n&ouml;tig ist eine grafische Oberfl&auml;che.\" class=\"encyclopedia\">Linux<\/a> nicht sonderlich aufdringlich, schnell befindet man sich im falschen Modus und schreibt in den Text, statt etwa einen <a href=\"https:\/\/linux-bibel.at\/index.php\/enzyklopaedie\/befehl\/\" target=\"_self\" title=\"Ein Befehl in Linux ist eine Anweisung, die &uuml;ber die Kommandozeile eingegeben wird, um verschiedene Aktionen auszuf&uuml;hren. Mit Linux-Befehlen k&ouml;nnen Sie Ihr System steuern, Dateien verwalten, Programme ausf&uuml;hren und vieles mehr. Hier sind einige wichtige Linux-Befehle: ls: Zeigt den Inhalt des aktuellen Verzeichnisses an. cd: Wechselt das Verzeichnis. mkdir: Erstellt ein neues Verzeichnis. rm: L&ouml;scht&hellip;\" class=\"encyclopedia\">Befehl<\/a> auszuf&uuml;hren:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-scaled.jpeg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-1024x640.jpeg\" alt=\"\" class=\"wp-image-11789\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/a><\/figure>\n\n\n\n<p><a href=\"https:\/\/vimawesome.com\/plugin\/lightline-vim\">LightLine<\/a> ist hingegen um einiges auff&auml;lliger und zeigt so den aktuellen Modus um einiges besser.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">LightLine installieren<\/h3>\n\n\n\n<p>Sie &ouml;ffnen ganz einfach Ihre versteckte &bdquo;<strong>.vimrc<\/strong>&ldquo; in Ihrem <a href=\"https:\/\/linux-bibel.at\/index.php\/enzyklopaedie\/home\/\" target=\"_self\" title=\"F&uuml;r jeden Benutzer eines GNU\/Linux-Systems wird unter \/home ein eigenes Verzeichnis mit dem Benutzernamen erstellt, f&uuml;r das er s&auml;mtliche Zugriffsrechte besitzt. Mit Ausnahme von root (dem Systemadministrator) k&ouml;nnen Benutzer auf das Home-Verzeichnis eines anderen Benutzers nicht zugreifen. Hier werden die pers&ouml;nlichen Daten und die Konfigurationsdateien der vom betreffenden Benutzer verwendeten Programme abgelegt. Konfigurationsdateien sind gew&ouml;hnlich&hellip;\" class=\"encyclopedia\">Home<\/a>-<a href=\"https:\/\/linux-bibel.at\/index.php\/enzyklopaedie\/verzeichnis\/\" target=\"_self\" title=\"Ein Verzeichnis ist eine Datei, die andere Dateien und Verzeichnisse enth&auml;lt. Linux und Unix verwenden eine hierarchische, baumartige Struktur f&uuml;r das Dateisystem. Das h&ouml;chste Level des Dateisystems ist das Root-Verzeichnis (\/), unter dem alle anderen Dateien und Verzeichnisse existieren. Verzeichnisse sind Dateien und k&ouml;nnen im Root-Verzeichnis oder in anderen Verzeichnissen erstellt werden. Alles ist eine&hellip;\" class=\"encyclopedia\">Verzeichnis<\/a>, etwa ganz einfach gleich mit Vim:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim .vimrc<\/code><\/pre>\n\n\n\n<p>Jetzt f&uuml;gen Sie ganz einfach folgende Zeile hinzu:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Plugin 'itchyny\/lightline.vim'<\/code><\/pre>\n\n\n\n<p>Anschlie&szlig;end <a href=\"https:\/\/linux-bibel.at\/index.php\/enzyklopaedie\/speichern\/\" target=\"_self\" title='Unter \"Speichern\" versteht man das Ablegen von Dateien oder Daten auf einem Speichermedium, wie einer Festplatte oder einem USB-Stick. Beim Speichern wird die Datei oder der Inhalt in einem bestimmten Verzeichnis oder Ordner abgelegt, sodass er sp&auml;ter wieder aufgerufen und verwendet werden kann.' class=\"encyclopedia\">speichern<\/a> Sie die <a href=\"https:\/\/linux-bibel.at\/index.php\/enzyklopaedie\/datei\/\" target=\"_self\" title='Unter \"Datei\" versteht man eine Einheit, die Informationen oder Daten enth&auml;lt. Dateien k&ouml;nnen verschiedene Arten von Inhalten haben, wie Text, Bilder, Audiodateien oder ausf&uuml;hrbare Programme. In Linux werden Dateien in einem hierarchischen Dateisystem organisiert, das &auml;hnlich wie ein Verzeichnisbaum aufgebaut ist. Das Wurzelverzeichnis \"\/\" ist der oberste Knoten des Verzeichnisbaums und enth&auml;lt alle anderen Dateien&hellip;' class=\"encyclopedia\">Datei<\/a> und starten den <a href=\"https:\/\/linux-bibel.at\/index.php\/enzyklopaedie\/befehl\/\" target=\"_self\" title=\"Ein Befehl in Linux ist eine Anweisung, die &uuml;ber die Kommandozeile eingegeben wird, um verschiedene Aktionen auszuf&uuml;hren. Mit Linux-Befehlen k&ouml;nnen Sie Ihr System steuern, Dateien verwalten, Programme ausf&uuml;hren und vieles mehr. Hier sind einige wichtige Linux-Befehle: ls: Zeigt den Inhalt des aktuellen Verzeichnisses an. cd: Wechselt das Verzeichnis. mkdir: Erstellt ein neues Verzeichnis. rm: L&ouml;scht&hellip;\" class=\"encyclopedia\">Befehl<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>:PluginInstall<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-1-scaled.jpeg\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-1-1024x640.jpeg\" alt=\"\" class=\"wp-image-11790\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-1-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-1-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-1-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-1-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-1-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-1-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/a><\/figure>\n\n\n\n<p>Nach der erfolgreichen Installation beenden Sie den Installer mit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>:wq<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-2-scaled.jpeg\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-2-1024x640.jpeg\" alt=\"\" class=\"wp-image-11791\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-2-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-2-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-2-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-2-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-2-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-2-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/a><\/figure>\n\n\n\n<p>Schon zeigt sich LightLine:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-3-1024x640.jpeg\" alt=\"\" class=\"wp-image-11792\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-3-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-3-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-3-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-3-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-3-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/vim-3-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"11788\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"11788\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Die Statusleiste von Vim ist unter Linux nicht sonderlich aufdringlich, schnell befindet man sich im falschen Modus und schreibt in den Text, statt etwa einen Befehl auszuf\u00fchren: LightLine ist hingegen um einiges auff\u00e4lliger und zeigt so den aktuellen Modus um einiges besser. LightLine installieren Sie \u00f6ffnen ganz einfach Ihre versteckte &#8222;.vimrc&#8220; in Ihrem Home-Verzeichnis, etwa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11792,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,740],"tags":[12,7,6,680],"class_list":["post-11788","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terminal","category-vim","tag-kommandozeile","tag-shell","tag-terminal","tag-vim"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/11788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=11788"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/11788\/revisions"}],"predecessor-version":[{"id":11933,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/11788\/revisions\/11933"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/11792"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=11788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=11788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=11788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}