Vim Tree Catalog plugin Nerdtree installation and use

Source: Internet
Author: User
Tags parent directory


  • Installation process:
    cd ~
    mkdir nerdtree
    cd nerdtree
    wget http://www.vim.org/scripts/download_script.php?src_id=17123 -O nerdtree.zip 
    unzip nerdtree.zip
    mkdir -p ~/.vim/{plugin,doc}
    cp plugin/NERD_tree.vim ~/.vim/plugin/
    cp doc/NERD_tree.txt ~/.vim/doc/
    vim ~/.vimrc
    加入:map <F5> :NERDTreeToggle<CR>

  • Then open a file and press F5 to trigger the tree directory.
    Shown below





    • Nerdtree help command
      CTRL + W + H cursor focus left tree
      CTRL + W + L cursor focus right file display window
      CTRL + W + W cursor automatically switches between left and right windows
      CTRL + W + R moves the layout position of the current window
      O open a file, directory, or bookmark in an existing window and jump to it
      Go opens a file, directory, or bookmark in an existing window, but does not jump to it
      TOpen the selected file / bookmark in the new tab and skip to the new tab
      T opens the selected file / bookmark in the new tab, but does not jump to the new tab
      I split a new window opens the selected file and jumps to it
      GI split a new window opens the selected file but does not jump to it
      VSplit a new window opens the selected file and jumps to it
      GS VSplit a new window opens the selected file but does not jump to it
      ! execute current file
      O recursively open all directories under the selected node
      X collapses the parent directory of the selected node
      X recursively collapses all directories under the selected node
      e       Edit the current dif
      Double clicking is equivalent to nerdtree-o
      The middle key pair file is equivalent to nerdtree-i and the directory is equivalent to nerdtree-e
      D delete current bookmark
      P jumps to root
      P jumps to the parent node
      K jumps to the first node of the same level in the current directory
      J jumps to the last node of the same level in the current directory
      K jumps to the previous node of the same level in the current directory
      J jumps to the next node of the same level in the current directory
      C sets the parent directory of the selected directory or file as the root node
      U sets the parent directory of the current root node as the root directory, and becomes the original root node
      U sets the parent of the current root as the root, but keeps expanding the original root
      R recursively refresh the selected directory
      R recursively refresh root
      M display file system menu
      CD sets CWD as the selected directory
      I toggle whether hidden files are shown
      F switch whether to use file filter
      F switch whether to display files
      B toggle whether bookmarks are displayed
      Q close the nerdtree window
      ? toggle whether quick help is displayed
      : tabnew [+ + opt option] [+ CMD] file creates a new tab for the specified file
      : tabcclose the current tab
      : Tabo close all other tabs
      : tabs view all open tabs
      : tabbpprevious tab
      : tab n next tab 


    Vim Tree Catalog Plug-in Nerdtree installation and use


    Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.