{"id":11317,"date":"2023-11-26T19:33:45","date_gmt":"2023-11-26T18:33:45","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=11317"},"modified":"2023-12-10T08:10:05","modified_gmt":"2023-12-10T07:10:05","slug":"nerdtree-dateimanager-fuer-vim","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/11\/26\/nerdtree-dateimanager-fuer-vim\/","title":{"rendered":"NERDTree &#8211; Dateimanager f\u00fcr Vim"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">NERDTree ist ein Dateimanager f\u00fcr den professionellen Terminal-Editor <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> unter Linux, mit diesem ist es einfacher im Dateisystem zu navigieren.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">NERDTree installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Grunds\u00e4tzlich finden Sie schon im ersten Link dieses Beitrages, wie Sie Plugins installieren &#8211; wir wiederholen dies hier aber kurz noch einmal. Erst erstellen Sie in Ihrem Home-Verzeichnis die versteckte Datei &#8222;.vimrc&#8220;, anschlie\u00dfend f\u00fchren Sie bei aktiver Internetverbindung folgenden Befehl aus:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fLo ~\/.vim\/autoload\/plug.vim --create-dirs https:\/\/raw.githubusercontent.com\/junegunn\/vim-plug\/master\/plug.vim<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Damit wird in Ihrem Home-Verzeichnis die passende Dateistruktur erstellt &#8211; jetzt \u00f6ffnen Sie die erstellte Datei, passend gleich einmal mit Vim am Terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim .vimrc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend f\u00fcgen Sie folgenden Code hinzu:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>call plug#begin()\nPlug 'preservim\/NERDTree'\ncall plug#end()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Sie speichern und schlie\u00dfen die Datei mit <kbd>Esc<\/kbd> und der Eingabe von:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>:wq<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt \u00f6ffnen Sie Vim mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Und geben folgenden Befehl im Befehlsmodus ein:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>:PlugInstall<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim1-scaled.jpeg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim1-1024x640.jpeg\" alt=\"\" class=\"wp-image-11318\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim1-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim1-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim1-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim1-768x480.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim1-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim1-2048x1280.jpeg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Sie best\u00e4tigen mit <kbd>Eingabe<\/kbd>, das war es auch schon:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-2-scaled.jpeg\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-2-1024x640.jpeg\" alt=\"\" class=\"wp-image-11319\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-2-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-2-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-2-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-2-768x480.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-2-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-2-2048x1280.jpeg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Mit <code>:q<\/code> schlie\u00dfen Sie die Installation ab.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">NERDTree nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Nach der Installation \u00f6ffnen Sie NERDTree mit folgendem Befehl im Eingabemodus:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>:NERDTree<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-3-scaled.jpeg\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-3-1024x640.jpeg\" alt=\"\" class=\"wp-image-11320\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-3-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-3-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-3-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-3-768x480.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-3-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-3-2048x1280.jpeg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Mit den <kbd>Pfeiltasten<\/kbd> navigieren Sie auf und ab, mit <kbd>Eingabe<\/kbd> \u00f6ffnen und schlie\u00dfen Sie ein Unterverzeichnis:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-4-scaled.jpeg\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-4-1024x640.jpeg\" alt=\"\" class=\"wp-image-11321\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-4-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-4-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-4-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-4-768x480.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-4-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-4-2048x1280.jpeg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ebenso \u00f6ffnen Sie eine Textdatei mit <kbd>Eingabe<\/kbd>. Mit <code>:q<\/code> schlie\u00dfen Sie das Men\u00fc, ohne eine Datei zu \u00f6ffnen. Mit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>:help NERDTree<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u00d6ffnen Sie die Hilfe:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-5-scaled.jpeg\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-5-1024x640.jpeg\" alt=\"\" class=\"wp-image-11322\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-5-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-5-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-5-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-5-768x480.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-5-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/11\/vim-5-2048x1280.jpeg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/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=\"11317\" 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\">0    <\/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=\"11317\" 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\">0<\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>NERDTree ist ein Dateimanager f\u00fcr den professionellen Terminal-Editor Vim unter Linux, mit diesem ist es einfacher im Dateisystem zu navigieren. NERDTree installieren Grunds\u00e4tzlich finden Sie schon im ersten Link dieses Beitrages, wie Sie Plugins installieren &#8211; wir wiederholen dies hier aber kurz noch einmal. Erst erstellen Sie in Ihrem Home-Verzeichnis die versteckte Datei &#8222;.vimrc&#8220;, anschlie\u00dfend [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11321,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,740],"tags":[12,7,6],"class_list":["post-11317","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terminal","category-vim","tag-kommandozeile","tag-shell","tag-terminal"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/11317","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=11317"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/11317\/revisions"}],"predecessor-version":[{"id":11323,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/11317\/revisions\/11323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/11321"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=11317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=11317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=11317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}