Vim Essential Plugin: NERDTree
2013-01-26 15:08
183 查看
原文链接:http://net.tutsplus.com/tutorials/other/vim-essential-plugin-nerdtree/
PS:
启动:NERDTree,
收藏夹快捷键:B,
添加到收藏夹:Bookmark
Begin by downloading the plugin to your Desktop (or any directory,
really), and installing it.
view
plaincopy
to clipboardprint?
cd ~/Desktop
git clone https://github.com/scrooloose/nerdtree.git
cd nerdtree
rake
With those few lines of code, the plugin is now installed! To open a NERDTree panel, in normal mode, we call
At this point, we can open any file by typing
convenient alias, the
this will open the new file directly into the buffer to the right of NERDTree, similar to what you might be used to in a program, like TextMate.
If you ever forget what the correct key is for a particular action, press
display a quickie help buffer.
To expedite the process of navigating through your directory structures, NERDTree allows you to conveniently create bookmarks. Do so by moving the cursor to the directory that you wish to bookmark, and then typing:
:Bookmark <desired bookmark name>
With this in place, you can now bring up your list of available bookmarks by pressing
It’s a huge help!
Press the letter
add, move, copy, and delete nodes (or files). So, for example, if I want to create a new
within a particular directory, I can type
There are plenty more useful shortcuts available, but I’ll leave it to you to discover them. Hint – research the
I use them religiously. Additionally, refer to the screencast above for more shortcuts.
PS:
启动:NERDTree,
收藏夹快捷键:B,
添加到收藏夹:Bookmark
Usage
Begin by downloading the plugin to your Desktop (or any directory,really), and installing it.
view
plaincopy
to clipboardprint?
cd ~/Desktop
git clone https://github.com/scrooloose/nerdtree.git
cd nerdtree
rake
With those few lines of code, the plugin is now installed! To open a NERDTree panel, in normal mode, we call
:NERDTree.
At this point, we can open any file by typing
o, or with the more
convenient alias, the
Enterkey. Unlike the default file browser,
this will open the new file directly into the buffer to the right of NERDTree, similar to what you might be used to in a program, like TextMate.
If you ever forget what the correct key is for a particular action, press
?to
display a quickie help buffer.
Bookmarks
To expedite the process of navigating through your directory structures, NERDTree allows you to conveniently create bookmarks. Do so by moving the cursor to the directory that you wish to bookmark, and then typing::Bookmark <desired bookmark name>
With this in place, you can now bring up your list of available bookmarks by pressing
B.
It’s a huge help!
Menu
Press the letter mto bring up a menu that will allow you to quickly
add, move, copy, and delete nodes (or files). So, for example, if I want to create a new
htmlfile
within a particular directory, I can type
ma newfile.html.
There are plenty more useful shortcuts available, but I’ll leave it to you to discover them. Hint – research the
cdand
Ccommands;
I use them religiously. Additionally, refer to the screencast above for more shortcuts.
相关文章推荐
- Vim Essential Plugin: NERDTree
- vim Mark plugin, Debug 利器
- 130+ essential vim commands
- VIM 文件浏览插件 — NERDTree
- 大神是如何装逼的 之 vim插件使用taglist和nerdtree
- VIM安装 NERDTREE,SOLARIZED 插件
- VIM插件NERDTree
- Vundle is short for Vimbundle and is a Vim plugin manager.
- Vim/Plugin 常用总结
- Vim安装NerdTree插件
- vim - NERDTree插件安装和快捷键设置
- 8 Essential Vim Editor Navigation Fundamentals
- Vim升华之树形目录插件NERDTree安装图解
- Vim-插件NERDTree
- vim 树形目录插件NERDTree安装及简单用法
- vim ruby plugin on mac
- vim 常用 NERDTree 快捷键
- IdeaVim插件使用技巧--JetBrains Plugin Vim
- vim的树形菜单NERDTREE的设置
- vim 树形目录插件NERDTree安装及简单用法