Vim's Tree menu Nerdtree settings

Source: Internet
Author: User

Online comparison of a good article: HTTP://COOLSHELL.CN/ARTICLES/1679.HTMLHTTP://COOLSHELL.CN/ARTICLES/11312.HTML1, VIM installation Nerdtree plug-in: First download, Official website: http://www.vim.org/scripts/script.php?script_id=1658 after decompression, the Plugin/nerd_tree.vim and doc/nerd_tree.txt are copied to ~/respectively. Vim/plugin and ~/.vim/doc directories. 2, use 1, in the Linux command line interface, input vim 2, input:nerdtree, enter.3, enter the current directory of the tree-shaped interface, through the keypad up and down, you can move the selected directory or file 4, the directory is preceded by +, press ENTER will expand the directory, the file is preceded by-number, press Enter in the right window to show the contents of the file, and the focus of the cursor to the right. 5, 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 in the left-right window switch 6, cursor focus to the left of the tree window, press? Pop Nerdtree's help, press again? Turn off Help Display 7, enter: Q Enter, close the cursor in the window attached: Vim settings. VIMRC Settings:

Set number
"Set tab width and use spaces instead of tab
Set shiftwidth=4
Set tabstop=4
Set Expandtab
Set softtabstop=4
Map <F2>: Retab <CR>: wq! <CR>
"Set encoding and file encoding
Set Enc=utf-8
Set Fenc=utf-8
The search results Highlight
Set Hlsearch
The syntax highlighting
Syntax on
"Sets the current directory of the file browser
Set Bsdir=buffer
Set Autoindent
Set Cindent
Set Nopaste
Set Wrap
If $TERM! = "Linux"
Set Mouse=a
endif
"Map the F8 to the Nerdtree plugin

Map <F8>:nerdtree<cr>

Vim's Tree menu Nerdtree settings

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.