Vim Tree Catalog Plugin Nerdtree installation and simple usage

Source: Internet
Author: User
Tags diff

Turn from:

http://blog.csdn.net/love__coder/article/details/6659103

1, install Nerdtree plug-in

Download First, official website: http://www.vim.org/scripts/script.php?script_id=1658

  

After decompression, copy the Plugin/nerd_tree.vim and Doc/nerd_tree.txt to the ~/.vim/plugin and ~/.vim/doc directories respectively.

If the. Vim does not have these directories, it is created manually.

Or:

/home/wangkongming/download/nerdtreecp-r doc/~/.vim/cp-r doc/~/.vim/

2, using

1. On the Linux command line interface, open a file with vim.

2, Input: Nerdtree, enter

3, enter the current directory of the tree-type interface, through the keypad up and down, you can move the selected directory or file

4, CTR+W+H cursor focus left tree directory, CTRL+W+L cursor focus to the right file display window. Press ctrl+w multiple times, the cursor automatically switches in the left and right window

5, Input: Q Enter, close the window where the cursor

Nerdtree shortcut keys

o Open close file or directory T in the tab open T open in the Background tab! Execute this file p to the upper directory p to the root directory K to the first node J to the last node U open upper directory m display file system menu (add, delete, move operation)? Help Q Close

The attachment is the configuration inside the VIMRC on my computer.

Set Nocompatiblesource $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswinset nobackupset diffexpr =mydiff () function Mydiff () Let opt = '-a--binary ' if &diffopt =~ ' icase ' | Let opt = opt. '-I ' | endif if &diffopt =~ ' Iwhite ' | Let opt = opt. '-B ' | endif let arg1 = v:fname_in if arg1 =~ ' | Let arg1 = ' "'. Arg1. ' ' ' | endif Let arg2 = v:fname_new if arg2 =~ ' | Let arg2 = ' "'. Arg2. ' ' ' | endif Let Arg3 = v:fname_out if Arg3 =~ ' | Let Arg3 = ' "'. Arg3. ' ' ' | endif Let eq = ' if $VIMRUNTIME =~ ' if &sh =~ ' \<cmd ' let cmd = ' "". $VIMRUNTIME. ' \diff ' ' let's eq = ' ' else let cmd = substitute ($VIMRUNTIME, ' ', ' "', '). ' \diff "' endif else let cmd = $VIMRUNTIME. ' \diff ' endif silent execute '! '. Cmd. ‘ ‘ . Opt. Arg1. ‘ ‘ . Arg2. ' > '. Arg3.     Eqendfunction "Display line number set nu! ColorScheme Desert syntax enable syntax on set encoding=utf-8 set Fileencodings=utF-8,chinese,latin-1 if has ("Win32") set Fileencoding=chinese else set Fileencoding=utf-8 endif "solve menu garbled SOURCE $VIMRUNTIME/delmenu.vim Source $VIMRUNTIME/menu.vim "resolve Consle output garbled language messages Zh_cn.utf-8" Nerdtree Shortcut keys Nmap <F2>: Nerdtree <CR> "Nerdtree.vimlet g:nerdtreewinpos=" left "let G:nerdtreewinsize=25let G:  Nerdtreeshowlinenumbers=1let g:neocomplcache_enable_at_startup = 1 "Default maximized window open au guienter * simalt ~x

Vim Tree Catalog Plugin Nerdtree installation and simple usage

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.