NERD_tree.txt 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379
  1. *NERD_tree.txt* A tree explorer plugin that owns your momma!
  2. omg its ... ~
  3. ________ ________ _ ____________ ____ __________ ____________~
  4. /_ __/ / / / ____/ / | / / ____/ __ \/ __ \ /_ __/ __ \/ ____/ ____/~
  5. / / / /_/ / __/ / |/ / __/ / /_/ / / / / / / / /_/ / __/ / __/ ~
  6. / / / __ / /___ / /| / /___/ _, _/ /_/ / / / / _, _/ /___/ /___ ~
  7. /_/ /_/ /_/_____/ /_/ |_/_____/_/ |_/_____/ /_/ /_/ |_/_____/_____/ ~
  8. Reference Manual~
  9. ==============================================================================
  10. CONTENTS *NERDTree-contents*
  11. 1.Intro...................................|NERDTree|
  12. 2.Functionality provided..................|NERDTreeFunctionality|
  13. 2.1.Global commands...................|NERDTreeGlobalCommands|
  14. 2.2.Bookmarks.........................|NERDTreeBookmarks|
  15. 2.2.1.The bookmark table..........|NERDTreeBookmarkTable|
  16. 2.2.2.Bookmark commands...........|NERDTreeBookmarkCommands|
  17. 2.2.3.Invalid bookmarks...........|NERDTreeInvalidBookmarks|
  18. 2.3.NERD tree mappings................|NERDTreeMappings|
  19. 2.4.The NERD tree menu................|NERDTreeMenu|
  20. 3.Options.................................|NERDTreeOptions|
  21. 3.1.Option summary....................|NERDTreeOptionSummary|
  22. 3.2.Option details....................|NERDTreeOptionDetails|
  23. 4.The NERD tree API.......................|NERDTreeAPI|
  24. 4.1.Key map API.......................|NERDTreeKeymapAPI|
  25. 4.2.Menu API..........................|NERDTreeMenuAPI|
  26. 5.About...................................|NERDTreeAbout|
  27. 6.Changelog...............................|NERDTreeChangelog|
  28. 7.Credits.................................|NERDTreeCredits|
  29. 8.License.................................|NERDTreeLicense|
  30. ==============================================================================
  31. 1. Intro *NERDTree*
  32. What is this "NERD tree"??
  33. The NERD tree allows you to explore your filesystem and to open files and
  34. directories. It presents the filesystem to you in the form of a tree which you
  35. manipulate with the keyboard and/or mouse. It also allows you to perform
  36. simple filesystem operations.
  37. The following features and functionality are provided by the NERD tree:
  38. * Files and directories are displayed in a hierarchical tree structure
  39. * Different highlighting is provided for the following types of nodes:
  40. * files
  41. * directories
  42. * sym-links
  43. * windows .lnk files
  44. * read-only files
  45. * executable files
  46. * Many (customisable) mappings are provided to manipulate the tree:
  47. * Mappings to open/close/explore directory nodes
  48. * Mappings to open files in new/existing windows/tabs
  49. * Mappings to change the current root of the tree
  50. * Mappings to navigate around the tree
  51. * ...
  52. * Directories and files can be bookmarked.
  53. * Most NERD tree navigation can also be done with the mouse
  54. * Filtering of tree content (can be toggled at runtime)
  55. * custom file filters to prevent e.g. vim backup files being displayed
  56. * optional displaying of hidden files (. files)
  57. * files can be "turned off" so that only directories are displayed
  58. * The position and size of the NERD tree window can be customised
  59. * The order in which the nodes in the tree are listed can be customised.
  60. * A model of your filesystem is created/maintained as you explore it. This
  61. has several advantages:
  62. * All filesystem information is cached and is only re-read on demand
  63. * If you revisit a part of the tree that you left earlier in your
  64. session, the directory nodes will be opened/closed as you left them
  65. * The script remembers the cursor position and window position in the NERD
  66. tree so you can toggle it off (or just close the tree window) and then
  67. reopen it (with NERDTreeToggle) the NERD tree window will appear exactly
  68. as you left it
  69. * You can have a separate NERD tree for each tab, share trees across tabs,
  70. or a mix of both.
  71. * By default the script overrides the default file browser (netrw), so if
  72. you :edit a directory a (slightly modified) NERD tree will appear in the
  73. current window
  74. * A programmable menu system is provided (simulates right clicking on a
  75. node)
  76. * one default menu plugin is provided to perform basic filesystem
  77. operations (create/delete/move/copy files/directories)
  78. * There's an API for adding your own keymappings
  79. ==============================================================================
  80. 2. Functionality provided *NERDTreeFunctionality*
  81. ------------------------------------------------------------------------------
  82. 2.1. Global Commands *NERDTreeGlobalCommands*
  83. :NERDTree [<start-directory> | <bookmark>] *:NERDTree*
  84. Opens a fresh NERD tree. The root of the tree depends on the argument
  85. given. There are 3 cases: If no argument is given, the current directory
  86. will be used. If a directory is given, that will be used. If a bookmark
  87. name is given, the corresponding directory will be used. For example: >
  88. :NERDTree /home/marty/vim7/src
  89. :NERDTree foo (foo is the name of a bookmark)
  90. <
  91. :NERDTreeFromBookmark <bookmark> *:NERDTreeFromBookmark*
  92. Opens a fresh NERD tree with the root initialized to the dir for
  93. <bookmark>. The only reason to use this command over :NERDTree is for
  94. the completion (which is for bookmarks rather than directories).
  95. :NERDTreeToggle [<start-directory> | <bookmark>] *:NERDTreeToggle*
  96. If a NERD tree already exists for this tab, it is reopened and rendered
  97. again. If no NERD tree exists for this tab then this command acts the
  98. same as the |:NERDTree| command.
  99. :NERDTreeMirror *:NERDTreeMirror*
  100. Shares an existing NERD tree, from another tab, in the current tab.
  101. Changes made to one tree are reflected in both as they are actually the
  102. same buffer.
  103. If only one other NERD tree exists, that tree is automatically mirrored. If
  104. more than one exists, the script will ask which tree to mirror.
  105. :NERDTreeClose *:NERDTreeClose*
  106. Close the NERD tree in this tab.
  107. :NERDTreeFind *:NERDTreeFind*
  108. Find the current file in the tree.
  109. If not tree exists and the current file is under vim's CWD, then init a
  110. tree at the CWD and reveal the file. Otherwise init a tree in the current
  111. file's directory.
  112. In any case, the current file is revealed and the cursor is placed on it.
  113. :NERDTreeCWD *:NERDTreeCWD*
  114. Change tree root to current directory. If no NERD tree exists for this
  115. tab, a new tree will be opened.
  116. ------------------------------------------------------------------------------
  117. 2.2. Bookmarks *NERDTreeBookmarks*
  118. Bookmarks in the NERD tree are a way to tag files or directories of interest.
  119. For example, you could use bookmarks to tag all of your project directories.
  120. ------------------------------------------------------------------------------
  121. 2.2.1. The Bookmark Table *NERDTreeBookmarkTable*
  122. If the bookmark table is active (see |NERDTree-B| and
  123. |'NERDTreeShowBookmarks'|), it will be rendered above the tree. You can double
  124. click bookmarks or use the |NERDTree-o| mapping to activate them. See also,
  125. |NERDTree-t| and |NERDTree-T|
  126. ------------------------------------------------------------------------------
  127. 2.2.2. Bookmark commands *NERDTreeBookmarkCommands*
  128. Note that the following commands are only available in the NERD tree buffer.
  129. :Bookmark [<name>]
  130. Bookmark the current node as <name>. If there is already a <name>
  131. bookmark, it is overwritten. <name> must not contain spaces.
  132. If <name> is not provided, it defaults to the file or directory name.
  133. For directories, a trailing slash is present.
  134. :BookmarkToRoot <bookmark>
  135. Make the directory corresponding to <bookmark> the new root. If a treenode
  136. corresponding to <bookmark> is already cached somewhere in the tree then
  137. the current tree will be used, otherwise a fresh tree will be opened.
  138. Note that if <bookmark> points to a file then its parent will be used
  139. instead.
  140. :RevealBookmark <bookmark>
  141. If the node is cached under the current root then it will be revealed
  142. (i.e. directory nodes above it will be opened) and the cursor will be
  143. placed on it.
  144. :OpenBookmark <bookmark>
  145. <bookmark> must point to a file. The file is opened as though |NERDTree-o|
  146. was applied. If the node is cached under the current root then it will be
  147. revealed and the cursor will be placed on it.
  148. :ClearBookmarks [<bookmarks>]
  149. Remove all the given bookmarks. If no bookmarks are given then remove all
  150. bookmarks on the current node.
  151. :ClearAllBookmarks
  152. Remove all bookmarks.
  153. :ReadBookmarks
  154. Re-read the bookmarks in the |'NERDTreeBookmarksFile'|.
  155. See also |:NERDTree| and |:NERDTreeFromBookmark|.
  156. ------------------------------------------------------------------------------
  157. 2.2.3. Invalid Bookmarks *NERDTreeInvalidBookmarks*
  158. If invalid bookmarks are detected, the script will issue an error message and
  159. the invalid bookmarks will become unavailable for use.
  160. These bookmarks will still be stored in the bookmarks file (see
  161. |'NERDTreeBookmarksFile'|), down the bottom. There will always be a blank line
  162. after the valid bookmarks but before the invalid ones.
  163. Each line in the bookmarks file represents one bookmark. The proper format is:
  164. <bookmark name><space><full path to the bookmark location>
  165. After you have corrected any invalid bookmarks, either restart vim, or go
  166. :ReadBookmarks from the NERD tree window.
  167. ------------------------------------------------------------------------------
  168. 2.3. NERD tree Mappings *NERDTreeMappings*
  169. Default Description~ help-tag~
  170. Key~
  171. o.......Open files, directories and bookmarks....................|NERDTree-o|
  172. go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
  173. t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
  174. T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
  175. i.......Open selected file in a split window.....................|NERDTree-i|
  176. gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
  177. s.......Open selected file in a new vsplit.......................|NERDTree-s|
  178. gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|
  179. O.......Recursively open the selected directory..................|NERDTree-O|
  180. x.......Close the current nodes parent...........................|NERDTree-x|
  181. X.......Recursively close all children of the current node.......|NERDTree-X|
  182. e.......Edit the current dir.....................................|NERDTree-e|
  183. <CR>...............same as |NERDTree-o|.
  184. double-click.......same as the |NERDTree-o| map.
  185. middle-click.......same as |NERDTree-i| for files, same as
  186. |NERDTree-e| for dirs.
  187. D.......Delete the current bookmark .............................|NERDTree-D|
  188. P.......Jump to the root node....................................|NERDTree-P|
  189. p.......Jump to current nodes parent.............................|NERDTree-p|
  190. K.......Jump up inside directories at the current tree depth.....|NERDTree-K|
  191. J.......Jump down inside directories at the current tree depth...|NERDTree-J|
  192. <C-J>...Jump down to the next sibling of the current directory...|NERDTree-C-J|
  193. <C-K>...Jump up to the previous sibling of the current directory.|NERDTree-C-K|
  194. C.......Change the tree root to the selected dir.................|NERDTree-C|
  195. u.......Move the tree root up one directory......................|NERDTree-u|
  196. U.......Same as 'u' except the old root node is left open........|NERDTree-U|
  197. r.......Recursively refresh the current directory................|NERDTree-r|
  198. R.......Recursively refresh the current root.....................|NERDTree-R|
  199. m.......Display the NERD tree menu...............................|NERDTree-m|
  200. cd......Change the CWD to the dir of the selected node...........|NERDTree-cd|
  201. CD......Change tree root to the CWD..............................|NERDTree-CD|
  202. I.......Toggle whether hidden files displayed....................|NERDTree-I|
  203. f.......Toggle whether the file filters are used.................|NERDTree-f|
  204. F.......Toggle whether files are displayed.......................|NERDTree-F|
  205. B.......Toggle whether the bookmark table is displayed...........|NERDTree-B|
  206. q.......Close the NERDTree window................................|NERDTree-q|
  207. A.......Zoom (maximize/minimize) the NERDTree window.............|NERDTree-A|
  208. ?.......Toggle the display of the quick help.....................|NERDTree-?|
  209. ------------------------------------------------------------------------------
  210. *NERDTree-o*
  211. Default key: o
  212. Map option: NERDTreeMapActivateNode
  213. Applies to: files and directories.
  214. If a file node is selected, it is opened in the previous window.
  215. If a directory is selected it is opened or closed depending on its current
  216. state.
  217. If a bookmark that links to a directory is selected then that directory
  218. becomes the new root.
  219. If a bookmark that links to a file is selected then that file is opened in the
  220. previous window.
  221. ------------------------------------------------------------------------------
  222. *NERDTree-go*
  223. Default key: go
  224. Map option: None
  225. Applies to: files.
  226. If a file node is selected, it is opened in the previous window, but the
  227. cursor does not move.
  228. The key combo for this mapping is always "g" + NERDTreeMapActivateNode (see
  229. |NERDTree-o|).
  230. ------------------------------------------------------------------------------
  231. *NERDTree-t*
  232. Default key: t
  233. Map option: NERDTreeMapOpenInTab
  234. Applies to: files and directories.
  235. Opens the selected file in a new tab. If a directory is selected, a fresh
  236. NERD Tree for that directory is opened in a new tab.
  237. If a bookmark which points to a directory is selected, open a NERD tree for
  238. that directory in a new tab. If the bookmark points to a file, open that file
  239. in a new tab.
  240. ------------------------------------------------------------------------------
  241. *NERDTree-T*
  242. Default key: T
  243. Map option: NERDTreeMapOpenInTabSilent
  244. Applies to: files and directories.
  245. The same as |NERDTree-t| except that the focus is kept in the current tab.
  246. ------------------------------------------------------------------------------
  247. *NERDTree-i*
  248. Default key: i
  249. Map option: NERDTreeMapOpenSplit
  250. Applies to: files.
  251. Opens the selected file in a new split window and puts the cursor in the new
  252. window.
  253. ------------------------------------------------------------------------------
  254. *NERDTree-gi*
  255. Default key: gi
  256. Map option: None
  257. Applies to: files.
  258. The same as |NERDTree-i| except that the cursor is not moved.
  259. The key combo for this mapping is always "g" + NERDTreeMapOpenSplit (see
  260. |NERDTree-i|).
  261. ------------------------------------------------------------------------------
  262. *NERDTree-s*
  263. Default key: s
  264. Map option: NERDTreeMapOpenVSplit
  265. Applies to: files.
  266. Opens the selected file in a new vertically split window and puts the cursor in
  267. the new window.
  268. ------------------------------------------------------------------------------
  269. *NERDTree-gs*
  270. Default key: gs
  271. Map option: None
  272. Applies to: files.
  273. The same as |NERDTree-s| except that the cursor is not moved.
  274. The key combo for this mapping is always "g" + NERDTreeMapOpenVSplit (see
  275. |NERDTree-s|).
  276. ------------------------------------------------------------------------------
  277. *NERDTree-O*
  278. Default key: O
  279. Map option: NERDTreeMapOpenRecursively
  280. Applies to: directories.
  281. Recursively opens the selected directory.
  282. All files and directories are cached, but if a directory would not be
  283. displayed due to file filters (see |'NERDTreeIgnore'| |NERDTree-f|) or the
  284. hidden file filter (see |'NERDTreeShowHidden'|) then its contents are not
  285. cached. This is handy, especially if you have .svn directories.
  286. ------------------------------------------------------------------------------
  287. *NERDTree-x*
  288. Default key: x
  289. Map option: NERDTreeMapCloseDir
  290. Applies to: files and directories.
  291. Closes the parent of the selected node.
  292. ------------------------------------------------------------------------------
  293. *NERDTree-X*
  294. Default key: X
  295. Map option: NERDTreeMapCloseChildren
  296. Applies to: directories.
  297. Recursively closes all children of the selected directory.
  298. Tip: To quickly "reset" the tree, use |NERDTree-P| with this mapping.
  299. ------------------------------------------------------------------------------
  300. *NERDTree-e*
  301. Default key: e
  302. Map option: NERDTreeMapOpenExpl
  303. Applies to: files and directories.
  304. |:edit|s the selected directory, or the selected file's directory. This could
  305. result in a NERD tree or a netrw being opened, depending on
  306. |'NERDTreeHijackNetrw'|.
  307. ------------------------------------------------------------------------------
  308. *NERDTree-D*
  309. Default key: D
  310. Map option: NERDTreeMapDeleteBookmark
  311. Applies to: lines in the bookmarks table
  312. Deletes the currently selected bookmark.
  313. ------------------------------------------------------------------------------
  314. *NERDTree-P*
  315. Default key: P
  316. Map option: NERDTreeMapJumpRoot
  317. Applies to: no restrictions.
  318. Jump to the tree root.
  319. ------------------------------------------------------------------------------
  320. *NERDTree-p*
  321. Default key: p
  322. Map option: NERDTreeMapJumpParent
  323. Applies to: files and directories.
  324. Jump to the parent node of the selected node.
  325. ------------------------------------------------------------------------------
  326. *NERDTree-K*
  327. Default key: K
  328. Map option: NERDTreeMapJumpFirstChild
  329. Applies to: files and directories.
  330. Jump to the first child of the current nodes parent.
  331. If the cursor is already on the first node then do the following:
  332. * loop back thru the siblings of the current nodes parent until we find an
  333. open dir with children
  334. * go to the first child of that node
  335. ------------------------------------------------------------------------------
  336. *NERDTree-J*
  337. Default key: J
  338. Map option: NERDTreeMapJumpLastChild
  339. Applies to: files and directories.
  340. Jump to the last child of the current nodes parent.
  341. If the cursor is already on the last node then do the following:
  342. * loop forward thru the siblings of the current nodes parent until we find
  343. an open dir with children
  344. * go to the last child of that node
  345. ------------------------------------------------------------------------------
  346. *NERDTree-C-J*
  347. Default key: <C-J>
  348. Map option: NERDTreeMapJumpNextSibling
  349. Applies to: files and directories.
  350. Jump to the next sibling of the selected node.
  351. ------------------------------------------------------------------------------
  352. *NERDTree-C-K*
  353. Default key: <C-K>
  354. Map option: NERDTreeMapJumpPrevSibling
  355. Applies to: files and directories.
  356. Jump to the previous sibling of the selected node.
  357. ------------------------------------------------------------------------------
  358. *NERDTree-C*
  359. Default key: C
  360. Map option: NERDTreeMapChangeRoot
  361. Applies to: files and directories.
  362. Make the selected directory node the new tree root. If a file is selected, its
  363. parent is used.
  364. ------------------------------------------------------------------------------
  365. *NERDTree-u*
  366. Default key: u
  367. Map option: NERDTreeMapUpdir
  368. Applies to: no restrictions.
  369. Move the tree root up a dir (like doing a "cd ..").
  370. ------------------------------------------------------------------------------
  371. *NERDTree-U*
  372. Default key: U
  373. Map option: NERDTreeMapUpdirKeepOpen
  374. Applies to: no restrictions.
  375. Like |NERDTree-u| except that the old tree root is kept open.
  376. ------------------------------------------------------------------------------
  377. *NERDTree-r*
  378. Default key: r
  379. Map option: NERDTreeMapRefresh
  380. Applies to: files and directories.
  381. If a dir is selected, recursively refresh that dir, i.e. scan the filesystem
  382. for changes and represent them in the tree.
  383. If a file node is selected then the above is done on it's parent.
  384. ------------------------------------------------------------------------------
  385. *NERDTree-R*
  386. Default key: R
  387. Map option: NERDTreeMapRefreshRoot
  388. Applies to: no restrictions.
  389. Recursively refresh the tree root.
  390. ------------------------------------------------------------------------------
  391. *NERDTree-m*
  392. Default key: m
  393. Map option: NERDTreeMapMenu
  394. Applies to: files and directories.
  395. Display the NERD tree menu. See |NERDTreeMenu| for details.
  396. ------------------------------------------------------------------------------
  397. *NERDTree-cd*
  398. Default key: cd
  399. Map option: NERDTreeMapChdir
  400. Applies to: files and directories.
  401. Change vims current working directory to that of the selected node.
  402. ------------------------------------------------------------------------------
  403. *NERDTree-CD*
  404. Default key: CD
  405. Map option: NERDTreeMapCWD
  406. Applies to: no restrictions.
  407. Change tree root to vims current working directory.
  408. ------------------------------------------------------------------------------
  409. *NERDTree-I*
  410. Default key: I
  411. Map option: NERDTreeMapToggleHidden
  412. Applies to: no restrictions.
  413. Toggles whether hidden files (i.e. "dot files") are displayed.
  414. ------------------------------------------------------------------------------
  415. *NERDTree-f*
  416. Default key: f
  417. Map option: NERDTreeMapToggleFilters
  418. Applies to: no restrictions.
  419. Toggles whether file filters are used. See |'NERDTreeIgnore'| for details.
  420. ------------------------------------------------------------------------------
  421. *NERDTree-F*
  422. Default key: F
  423. Map option: NERDTreeMapToggleFiles
  424. Applies to: no restrictions.
  425. Toggles whether file nodes are displayed.
  426. ------------------------------------------------------------------------------
  427. *NERDTree-B*
  428. Default key: B
  429. Map option: NERDTreeMapToggleBookmarks
  430. Applies to: no restrictions.
  431. Toggles whether the bookmarks table is displayed.
  432. ------------------------------------------------------------------------------
  433. *NERDTree-q*
  434. Default key: q
  435. Map option: NERDTreeMapQuit
  436. Applies to: no restrictions.
  437. Closes the NERDtree window.
  438. ------------------------------------------------------------------------------
  439. *NERDTree-A*
  440. Default key: A
  441. Map option: NERDTreeMapToggleZoom
  442. Applies to: no restrictions.
  443. Maximize (zoom) and minimize the NERDtree window.
  444. ------------------------------------------------------------------------------
  445. *NERDTree-?*
  446. Default key: ?
  447. Map option: NERDTreeMapHelp
  448. Applies to: no restrictions.
  449. Toggles whether the quickhelp is displayed.
  450. ------------------------------------------------------------------------------
  451. 2.3. The NERD tree menu *NERDTreeMenu*
  452. The NERD tree has a menu that can be programmed via the an API (see
  453. |NERDTreeMenuAPI|). The idea is to simulate the "right click" menus that most
  454. file explorers have.
  455. The script comes with two default menu plugins: exec_menuitem.vim and
  456. fs_menu.vim. fs_menu.vim adds some basic filesystem operations to the menu for
  457. creating/deleting/moving/copying files and dirs. exec_menuitem.vim provides a
  458. menu item to execute executable files.
  459. Related tags: |NERDTree-m| |NERDTreeApi|
  460. ==============================================================================
  461. 3. Customisation *NERDTreeOptions*
  462. ------------------------------------------------------------------------------
  463. 3.1. Customisation summary *NERDTreeOptionSummary*
  464. The script provides the following options that can customise the behaviour the
  465. NERD tree. These options should be set in your vimrc.
  466. |'loaded_nerd_tree'| Turns off the script.
  467. |'NERDTreeAutoCenter'| Controls whether the NERD tree window centers
  468. when the cursor moves within a specified
  469. distance to the top/bottom of the window.
  470. |'NERDTreeAutoCenterThreshold'| Controls the sensitivity of autocentering.
  471. |'NERDTreeCaseSensitiveSort'| Tells the NERD tree whether to be case
  472. sensitive or not when sorting nodes.
  473. |'NERDTreeSortHiddenFirst'| Tells the NERD tree whether to take the dot
  474. at the beginning of the hidden file names
  475. into account when sorting nodes.
  476. |'NERDTreeChDirMode'| Tells the NERD tree if/when it should change
  477. vim's current working directory.
  478. |'NERDTreeHighlightCursorline'| Tell the NERD tree whether to highlight the
  479. current cursor line.
  480. |'NERDTreeHijackNetrw'| Tell the NERD tree whether to replace the netrw
  481. autocommands for exploring local directories.
  482. |'NERDTreeIgnore'| Tells the NERD tree which files to ignore.
  483. |'NERDTreeRespectWildIgnore'| Tells the NERD tree to respect |'wildignore'|.
  484. |'NERDTreeBookmarksFile'| Where the bookmarks are stored.
  485. |'NERDTreeBookmarksSort'| Whether the bookmarks list is sorted on
  486. display.
  487. |'NERDTreeMouseMode'| Tells the NERD tree how to handle mouse
  488. clicks.
  489. |'NERDTreeQuitOnOpen'| Closes the tree window after opening a file.
  490. |'NERDTreeShowBookmarks'| Tells the NERD tree whether to display the
  491. bookmarks table on startup.
  492. |'NERDTreeShowFiles'| Tells the NERD tree whether to display files
  493. in the tree on startup.
  494. |'NERDTreeShowHidden'| Tells the NERD tree whether to display hidden
  495. files on startup.
  496. |'NERDTreeShowLineNumbers'| Tells the NERD tree whether to display line
  497. numbers in the tree window.
  498. |'NERDTreeSortOrder'| Tell the NERD tree how to sort the nodes in
  499. the tree.
  500. |'NERDTreeStatusline'| Set a statusline for NERD tree windows.
  501. |'NERDTreeWinPos'| Tells the script where to put the NERD tree
  502. window.
  503. |'NERDTreeWinSize'| Sets the window size when the NERD tree is
  504. opened.
  505. |'NERDTreeMinimalUI'| Disables display of the 'Bookmarks' label and
  506. 'Press ? for help' text.
  507. |'NERDTreeDirArrows'| Tells the NERD tree to use arrows instead of
  508. + ~ chars when displaying directories.
  509. |'NERDTreeCascadeOpenSingleChildDir'|
  510. Cascade open while selected directory has only
  511. one child that also is a directory.
  512. |'NERDTreeAutoDeleteBuffer'| Tells the NERD tree to automatically remove
  513. a buffer when a file is being deleted or renamed
  514. via a context menu command.
  515. ------------------------------------------------------------------------------
  516. 3.2. Customisation details *NERDTreeOptionDetails*
  517. To enable any of the below options you should put the given line in your
  518. ~/.vimrc
  519. *'loaded_nerd_tree'*
  520. If this plugin is making you feel homicidal, it may be a good idea to turn it
  521. off with this line in your vimrc: >
  522. let loaded_nerd_tree=1
  523. <
  524. ------------------------------------------------------------------------------
  525. *'NERDTreeAutoCenter'*
  526. Values: 0 or 1.
  527. Default: 1
  528. If set to 1, the NERD tree window will center around the cursor if it moves to
  529. within |'NERDTreeAutoCenterThreshold'| lines of the top/bottom of the window.
  530. This is ONLY done in response to tree navigation mappings,
  531. i.e. |NERDTree-J| |NERDTree-K| |NERDTree-C-J| |NERDTree-C-K| |NERDTree-p|
  532. |NERDTree-P|
  533. The centering is done with a |zz| operation.
  534. ------------------------------------------------------------------------------
  535. *'NERDTreeAutoCenterThreshold'*
  536. Values: Any natural number.
  537. Default: 3
  538. This option controls the "sensitivity" of the NERD tree auto centering. See
  539. |'NERDTreeAutoCenter'| for details.
  540. ------------------------------------------------------------------------------
  541. *'NERDTreeCaseSensitiveSort'*
  542. Values: 0 or 1.
  543. Default: 0.
  544. By default the NERD tree does not sort nodes case sensitively, i.e. nodes
  545. could appear like this: >
  546. bar.c
  547. Baz.c
  548. blarg.c
  549. boner.c
  550. Foo.c
  551. <
  552. But, if you set this option to 1 then the case of the nodes will be taken into
  553. account. The above nodes would then be sorted like this: >
  554. Baz.c
  555. Foo.c
  556. bar.c
  557. blarg.c
  558. boner.c
  559. <
  560. ------------------------------------------------------------------------------
  561. *'NERDTreeChDirMode'*
  562. Values: 0, 1 or 2.
  563. Default: 0.
  564. Use this option to tell the script when (if at all) to change the current
  565. working directory (CWD) for vim.
  566. If it is set to 0 then the CWD is never changed by the NERD tree.
  567. If set to 1 then the CWD is changed when the NERD tree is first loaded to the
  568. directory it is initialized in. For example, if you start the NERD tree with >
  569. :NERDTree /home/marty/foobar
  570. <
  571. then the CWD will be changed to /home/marty/foobar and will not be changed
  572. again unless you init another NERD tree with a similar command.
  573. If the option is set to 2 then it behaves the same as if set to 1 except that
  574. the CWD is changed whenever the tree root is changed. For example, if the CWD
  575. is /home/marty/foobar and you make the node for /home/marty/foobar/baz the new
  576. root then the CWD will become /home/marty/foobar/baz.
  577. ------------------------------------------------------------------------------
  578. *'NERDTreeHighlightCursorline'*
  579. Values: 0 or 1.
  580. Default: 1.
  581. If set to 1, the current cursor line in the NERD tree buffer will be
  582. highlighted. This is done using the |'cursorline'| option.
  583. ------------------------------------------------------------------------------
  584. *'NERDTreeHijackNetrw'*
  585. Values: 0 or 1.
  586. Default: 1.
  587. If set to 1, doing a >
  588. :edit <some directory>
  589. <
  590. will open up a "secondary" NERD tree instead of a netrw in the target window.
  591. Secondary NERD trees behaves slightly different from a regular trees in the
  592. following respects:
  593. 1. 'o' will open the selected file in the same window as the tree,
  594. replacing it.
  595. 2. you can have as many secondary tree as you want in the same tab.
  596. ------------------------------------------------------------------------------
  597. *'NERDTreeIgnore'*
  598. Values: a list of regular expressions.
  599. Default: ['\~$'].
  600. This option is used to specify which files the NERD tree should ignore. It
  601. must be a list of regular expressions. When the NERD tree is rendered, any
  602. files/dirs that match any of the regex's in 'NERDTreeIgnore' wont be
  603. displayed.
  604. For example if you put the following line in your vimrc: >
  605. let NERDTreeIgnore=['\.vim$', '\~$']
  606. <
  607. then all files ending in .vim or ~ will be ignored.
  608. There are 2 magic flags that can be appended to the end of each regular
  609. expression to specify that the regex should match only files or only dirs.
  610. These flags are "[[dir]]" and "[[file]]". Example: >
  611. let NERDTreeIgnore=['.d$[[dir]]', '.o$[[file]]']
  612. <
  613. This will cause all dirs ending in ".d" to be ignored and all files ending in
  614. ".o" to be ignored.
  615. Note: to tell the NERD tree not to ignore any files you must use the following
  616. line: >
  617. let NERDTreeIgnore=[]
  618. <
  619. The file filters can be turned on and off dynamically with the |NERDTree-f|
  620. mapping.
  621. ------------------------------------------------------------------------------
  622. *'NERDTreeRespectWildIgnore'*
  623. Values: 0 or 1.
  624. Default: 0.
  625. If set to 1, the |'wildignore'| setting is respected.
  626. ------------------------------------------------------------------------------
  627. *'NERDTreeBookmarksFile'*
  628. Values: a path
  629. Default: $HOME/.NERDTreeBookmarks
  630. This is where bookmarks are saved. See |NERDTreeBookmarkCommands|.
  631. ------------------------------------------------------------------------------
  632. *'NERDTreeBookmarksSort'*
  633. Values: 0 or 1
  634. Default: 1
  635. If set to 0 then the bookmarks list is not sorted.
  636. If set to 1 the bookmarks list is sorted.
  637. ------------------------------------------------------------------------------
  638. *'NERDTreeMouseMode'*
  639. Values: 1, 2 or 3.
  640. Default: 1.
  641. If set to 1 then a double click on a node is required to open it.
  642. If set to 2 then a single click will open directory nodes, while a double
  643. click will still be required for file nodes.
  644. If set to 3 then a single click will open any node.
  645. Note: a double click anywhere on a line that a tree node is on will
  646. activate it, but all single-click activations must be done on name of the node
  647. itself. For example, if you have the following node: >
  648. | | |-application.rb
  649. <
  650. then (to single click activate it) you must click somewhere in
  651. 'application.rb'.
  652. ------------------------------------------------------------------------------
  653. *'NERDTreeQuitOnOpen'*
  654. Values: 0 or 1.
  655. Default: 0
  656. If set to 1, the NERD tree window will close after opening a file with the
  657. |NERDTree-o|, |NERDTree-i|, |NERDTree-t| and |NERDTree-T| mappings.
  658. ------------------------------------------------------------------------------
  659. *'NERDTreeShowBookmarks'*
  660. Values: 0 or 1.
  661. Default: 0.
  662. If this option is set to 1 then the bookmarks table will be displayed.
  663. This option can be toggled dynamically, per tree, with the |NERDTree-B|
  664. mapping.
  665. ------------------------------------------------------------------------------
  666. *'NERDTreeShowFiles'*
  667. Values: 0 or 1.
  668. Default: 1.
  669. If this option is set to 1 then files are displayed in the NERD tree. If it is
  670. set to 0 then only directories are displayed.
  671. This option can be toggled dynamically, per tree, with the |NERDTree-F|
  672. mapping and is useful for drastically shrinking the tree when you are
  673. navigating to a different part of the tree.
  674. ------------------------------------------------------------------------------
  675. *'NERDTreeShowHidden'*
  676. Values: 0 or 1.
  677. Default: 0.
  678. This option tells vim whether to display hidden files by default. This option
  679. can be dynamically toggled, per tree, with the |NERDTree-I| mapping. Use one
  680. of the follow lines to set this option: >
  681. let NERDTreeShowHidden=0
  682. let NERDTreeShowHidden=1
  683. <
  684. ------------------------------------------------------------------------------
  685. *'NERDTreeShowLineNumbers'*
  686. Values: 0 or 1.
  687. Default: 0.
  688. This option tells vim whether to display line numbers for the NERD tree
  689. window. Use one of the follow lines to set this option: >
  690. let NERDTreeShowLineNumbers=0
  691. let NERDTreeShowLineNumbers=1
  692. <
  693. ------------------------------------------------------------------------------
  694. *'NERDTreeSortOrder'*
  695. Values: a list of regular expressions.
  696. Default: ['\/$', '*', '\.swp$', '\.bak$', '\~$']
  697. This option is set to a list of regular expressions which are used to
  698. specify the order of nodes under their parent.
  699. For example, if the option is set to: >
  700. ['\.vim$', '\.c$', '\.h$', '*', 'foobar']
  701. <
  702. then all .vim files will be placed at the top, followed by all .c files then
  703. all .h files. All files containing the string 'foobar' will be placed at the
  704. end. The star is a special flag: it tells the script that every node that
  705. doesnt match any of the other regexps should be placed here.
  706. If no star is present in 'NERDTreeSortOrder' then one is automatically
  707. appended to the array.
  708. The regex '\/$' should be used to match directory nodes.
  709. After this sorting is done, the files in each group are sorted alphabetically.
  710. Other examples: >
  711. (1) ['*', '\/$']
  712. (2) []
  713. (3) ['\/$', '\.rb$', '\.php$', '*', '\.swp$', '\.bak$', '\~$']
  714. <
  715. 1. Directories will appear last, everything else will appear above.
  716. 2. Everything will simply appear in alphabetical order.
  717. 3. Dirs will appear first, then ruby and php. Swap files, bak files and vim
  718. backup files will appear last with everything else preceding them.
  719. ------------------------------------------------------------------------------
  720. *'NERDTreeStatusline'*
  721. Values: Any valid statusline setting.
  722. Default: %{b:NERDTreeRoot.path.strForOS(0)}
  723. Tells the script what to use as the |'statusline'| setting for NERD tree
  724. windows.
  725. Note that the statusline is set using |:let-&| not |:set| so escaping spaces
  726. isn't necessary.
  727. Setting this option to -1 will will deactivate it so that your global
  728. statusline setting is used instead.
  729. ------------------------------------------------------------------------------
  730. *'NERDTreeWinPos'*
  731. Values: "left" or "right"
  732. Default: "left".
  733. This option is used to determine where NERD tree window is placed on the
  734. screen.
  735. This option makes it possible to use two different explorer plugins
  736. simultaneously. For example, you could have the taglist plugin on the left of
  737. the window and the NERD tree on the right.
  738. ------------------------------------------------------------------------------
  739. *'NERDTreeWinSize'*
  740. Values: a positive integer.
  741. Default: 31.
  742. This option is used to change the size of the NERD tree when it is loaded.
  743. ------------------------------------------------------------------------------
  744. *'NERDTreeMinimalUI'*
  745. Values: 0 or 1
  746. Default: 0
  747. This options disables the 'Bookmarks' label 'Press ? for help' text. Use one
  748. of the following lines to set this option: >
  749. let NERDTreeMinimalUI=0
  750. let NERDTreeMinimalUI=1
  751. <
  752. ------------------------------------------------------------------------------
  753. *'NERDTreeDirArrows'*
  754. Values: 0 or 1
  755. Default: 0.
  756. This option is used to change the default look of directory nodes displayed in
  757. the tree. When set to 0 it shows old-school bars (|), + and ~ chars. If set to
  758. 1 it shows right and down arrows. Use one of the follow lines to set this
  759. option: >
  760. let NERDTreeDirArrows=0
  761. let NERDTreeDirArrows=1
  762. <
  763. ------------------------------------------------------------------------------
  764. *'NERDTreeCascadeOpenSingleChildDir'*
  765. Values: 0 or 1
  766. Default: 1.
  767. When opening dir nodes, this option tells NERDTree to recursively open dirs
  768. that have only one child which is also a dir. NERDTree will stop when it finds
  769. a dir that contains anything but another single dir. This option also causes
  770. the |NERDTree-x| mapping to close dirs in the same manner. This option may be
  771. useful for Java projects. Use one of the follow lines to set this option: >
  772. let NERDTreeCascadeOpenSingleChildDir=0
  773. let NERDTreeCascadeOpenSingleChildDir=1
  774. <
  775. ------------------------------------------------------------------------------
  776. *'NERDTreeAutoDeleteBuffer'*
  777. Values: 0 or 1
  778. Default: 0.
  779. When using a context menu to delete or rename a file you may also want to delete
  780. the buffer which is no more valid. If the option is not set you will see a
  781. confirmation if you really want to delete an old buffer. If you always press 'y'
  782. then it worths to set this option to 1. Use one of the follow lines to set this
  783. option: >
  784. let NERDTreeAutoDeleteBuffer=0
  785. let NERDTreeAutoDeleteBuffer=1
  786. <
  787. ==============================================================================
  788. 4. The NERD tree API *NERDTreeAPI*
  789. The NERD tree script allows you to add custom key mappings and menu items via
  790. a set of API calls. Any scripts that use this API should be placed in
  791. ~/.vim/nerdtree_plugin/ (*nix) or ~/vimfiles/nerdtree_plugin (windows).
  792. The script exposes some prototype objects that can be used to manipulate the
  793. tree and/or get information from it: >
  794. g:NERDTreePath
  795. g:NERDTreeDirNode
  796. g:NERDTreeFileNode
  797. g:NERDTreeBookmark
  798. <
  799. See the code/comments in NERD_tree.vim to find how to use these objects. The
  800. following code conventions are used:
  801. * class members start with a capital letter
  802. * instance members start with a lower case letter
  803. * private members start with an underscore
  804. See this blog post for more details:
  805. http://got-ravings.blogspot.com/2008/09/vim-pr0n-prototype-based-objects.html
  806. ------------------------------------------------------------------------------
  807. 4.1. Key map API *NERDTreeKeymapAPI*
  808. NERDTreeAddKeyMap({options}) *NERDTreeAddKeyMap()*
  809. Adds a new keymapping for all NERD tree buffers.
  810. {options} must be a dictionary, and must contain the following keys:
  811. "key" - the trigger key for the new mapping
  812. "callback" - the function the new mapping will be bound to
  813. "quickhelpText" - the text that will appear in the quickhelp (see
  814. |NERDTree-?|)
  815. "override" - if 1 then this new mapping will override whatever previous
  816. mapping was defined for the key/scope combo. Useful for overriding the
  817. default mappings.
  818. Additionally, a "scope" argument may be supplied. This constrains the
  819. mapping so that it is only activated if the cursor is on a certain object.
  820. That object is then passed into the handling method. Possible values are:
  821. "FileNode" - a file node
  822. "DirNode" - a directory node
  823. "Node" - a file or directory node
  824. "Bookmark" - A bookmark
  825. "all" - the keymap is not constrained to any scope (default). When
  826. thei is used, the handling function is not passed any arguments.
  827. Example: >
  828. call NERDTreeAddKeyMap({
  829. \ 'key': 'foo',
  830. \ 'callback': 'NERDTreeCDHandler',
  831. \ 'quickhelpText': 'echo full path of current node',
  832. \ 'scope': 'DirNode' })
  833. function! NERDTreeCDHandler(dirnode)
  834. call a:dirnode.changeToDir()
  835. endfunction
  836. <
  837. This code should sit in a file like ~/.vim/nerdtree_plugin/mymapping.vim.
  838. It adds a (redundant) mapping on 'foo' which changes vim's CWD to that of
  839. the current dir node. Note this mapping will only fire when the cursor is
  840. on a directory node.
  841. ------------------------------------------------------------------------------
  842. 4.2. Menu API *NERDTreeMenuAPI*
  843. NERDTreeAddSubmenu({options}) *NERDTreeAddSubmenu()*
  844. Creates and returns a new submenu.
  845. {options} must be a dictionary and must contain the following keys:
  846. "text" - the text of the submenu that the user will see
  847. "shortcut" - a shortcut key for the submenu (need not be unique)
  848. The following keys are optional:
  849. "isActiveCallback" - a function that will be called to determine whether
  850. this submenu item will be displayed or not. The callback function must return
  851. 0 or 1.
  852. "parent" - the parent submenu of the new submenu (returned from a previous
  853. invocation of NERDTreeAddSubmenu()). If this key is left out then the new
  854. submenu will sit under the top level menu.
  855. See below for an example.
  856. NERDTreeAddMenuItem({options}) *NERDTreeAddMenuItem()*
  857. Adds a new menu item to the NERD tree menu (see |NERDTreeMenu|).
  858. {options} must be a dictionary and must contain the
  859. following keys:
  860. "text" - the text of the menu item which the user will see
  861. "shortcut" - a shortcut key for the menu item (need not be unique)
  862. "callback" - the function that will be called when the user activates the
  863. menu item.
  864. The following keys are optional:
  865. "isActiveCallback" - a function that will be called to determine whether
  866. this menu item will be displayed or not. The callback function must return
  867. 0 or 1.
  868. "parent" - if the menu item belongs under a submenu then this key must be
  869. specified. This value for this key will be the object that
  870. was returned when the submenu was created with |NERDTreeAddSubmenu()|.
  871. See below for an example.
  872. NERDTreeAddMenuSeparator([{options}]) *NERDTreeAddMenuSeparator()*
  873. Adds a menu separator (a row of dashes).
  874. {options} is an optional dictionary that may contain the following keys:
  875. "isActiveCallback" - see description in |NERDTreeAddMenuItem()|.
  876. Below is an example of the menu API in action. >
  877. call NERDTreeAddMenuSeparator()
  878. call NERDTreeAddMenuItem({
  879. \ 'text': 'a (t)op level menu item',
  880. \ 'shortcut': 't',
  881. \ 'callback': 'SomeFunction' })
  882. let submenu = NERDTreeAddSubmenu({
  883. \ 'text': 'a (s)ub menu',
  884. \ 'shortcut': 's' })
  885. call NERDTreeAddMenuItem({
  886. \ 'text': '(n)ested item 1',
  887. \ 'shortcut': 'n',
  888. \ 'callback': 'SomeFunction',
  889. \ 'parent': submenu })
  890. call NERDTreeAddMenuItem({
  891. \ 'text': '(n)ested item 2',
  892. \ 'shortcut': 'n',
  893. \ 'callback': 'SomeFunction',
  894. \ 'parent': submenu })
  895. <
  896. This will create the following menu: >
  897. --------------------
  898. a (t)op level menu item
  899. a (s)ub menu
  900. <
  901. Where selecting "a (s)ub menu" will lead to a second menu: >
  902. (n)ested item 1
  903. (n)ested item 2
  904. <
  905. When any of the 3 concrete menu items are selected the function "SomeFunction"
  906. will be called.
  907. ------------------------------------------------------------------------------
  908. NERDTreeRender() *NERDTreeRender()*
  909. Re-renders the NERD tree buffer. Useful if you change the state of the
  910. tree and you want to it to be reflected in the UI.
  911. ==============================================================================
  912. 5. About *NERDTreeAbout*
  913. The author of the NERD tree is a terrible terrible monster called Martyzilla
  914. who gobbles up small children with milk and sugar for breakfast.
  915. He can be reached at martin.grenfell at gmail dot com. He would love to hear
  916. from you, so feel free to send him suggestions and/or comments about this
  917. plugin. Don't be shy --- the worst he can do is slaughter you and stuff you in
  918. the fridge for later ;)
  919. The latest stable versions can be found at
  920. http://www.vim.org/scripts/script.php?script_id=1658
  921. The latest dev versions are on github
  922. http://github.com/scrooloose/nerdtree
  923. ==============================================================================
  924. 6. Changelog *NERDTreeChangelog*
  925. Next
  926. - add 'scope' argument to the key map API
  927. - add NERDTreeCustomIgnoreFilter hook - needs doc
  928. - add magic [[dir]] and [[file]] flags to NERDTreeIgnore
  929. 4.2.0
  930. - Add NERDTreeDirArrows option to make the UI use pretty arrow chars
  931. instead of the old +~| chars to define the tree structure (sickill)
  932. - shift the syntax highlighting out into its own syntax file (gnap)
  933. - add some mac specific options to the filesystem menu - for macvim
  934. only (andersonfreitas)
  935. - Add NERDTreeMinimalUI option to remove some non functional parts of the
  936. nerdtree ui (camthompson)
  937. - tweak the behaviour of :NERDTreeFind - see :help :NERDTreeFind for the
  938. new behaviour (benjamingeiger)
  939. - if no name is given to :Bookmark, make it default to the name of the
  940. target file/dir (minyoung)
  941. - use 'file' completion when doing copying, create, and move
  942. operations (EvanDotPro)
  943. - lots of misc bug fixes (paddyoloughlin, sdewald, camthompson, Vitaly
  944. Bogdanov, AndrewRadev, mathias, scottstvnsn, kml, wycats, me RAWR!)
  945. 4.1.0
  946. features:
  947. - NERDTreeFind to reveal the node for the current buffer in the tree,
  948. see |NERDTreeFind|. This effectively merges the FindInNERDTree plugin (by
  949. Doug McInnes) into the script.
  950. - make NERDTreeQuitOnOpen apply to the t/T keymaps too. Thanks to Stefan
  951. Ritter and Rémi Prévost.
  952. - truncate the root node if wider than the tree window. Thanks to Victor
  953. Gonzalez.
  954. bugfixes:
  955. - really fix window state restoring
  956. - fix some win32 path escaping issues. Thanks to Stephan Baumeister, Ricky,
  957. jfilip1024, and Chris Chambers
  958. 4.0.0
  959. - add a new programmable menu system (see :help NERDTreeMenu).
  960. - add new APIs to add menus/menu-items to the menu system as well as
  961. custom key mappings to the NERD tree buffer (see :help NERDTreeAPI).
  962. - removed the old API functions
  963. - added a mapping to maximize/restore the size of nerd tree window, thanks
  964. to Guillaume Duranceau for the patch. See :help NERDTree-A for details.
  965. - fix a bug where secondary nerd trees (netrw hijacked trees) and
  966. NERDTreeQuitOnOpen didnt play nicely, thanks to Curtis Harvey.
  967. - fix a bug where the script ignored directories whose name ended in a dot,
  968. thanks to Aggelos Orfanakos for the patch.
  969. - fix a bug when using the x mapping on the tree root, thanks to Bryan
  970. Venteicher for the patch.
  971. - fix a bug where the cursor position/window size of the nerd tree buffer
  972. wasnt being stored on closing the window, thanks to Richard Hart.
  973. - fix a bug where NERDTreeMirror would mirror the wrong tree
  974. 3.1.1
  975. - fix a bug where a non-listed no-name buffer was getting created every
  976. time the tree windows was created, thanks to Derek Wyatt and owen1
  977. - make <CR> behave the same as the 'o' mapping
  978. - some helptag fixes in the doc, thanks strull
  979. - fix a bug when using :set nohidden and opening a file where the previous
  980. buf was modified. Thanks iElectric
  981. - other minor fixes
  982. 3.1.0
  983. New features:
  984. - add mappings to open files in a vsplit, see :help NERDTree-s and :help
  985. NERDTree-gs
  986. - make the statusline for the nerd tree window default to something
  987. hopefully more useful. See :help 'NERDTreeStatusline'
  988. Bugfixes:
  989. - make the hijack netrw functionality work when vim is started with "vim
  990. <some dir>" (thanks to Alf Mikula for the patch).
  991. - fix a bug where the CWD wasnt being changed for some operations even when
  992. NERDTreeChDirMode==2 (thanks to Lucas S. Buchala)
  993. - add -bar to all the nerd tree :commands so they can chain with other
  994. :commands (thanks to tpope)
  995. - fix bugs when ignorecase was set (thanks to nach)
  996. - fix a bug with the relative path code (thanks to nach)
  997. - fix a bug where doing a :cd would cause :NERDTreeToggle to fail (thanks nach)
  998. 3.0.1
  999. Bugfixes:
  1000. - fix bugs with :NERDTreeToggle and :NERDTreeMirror when 'hidden
  1001. was not set
  1002. - fix a bug where :NERDTree <path> would fail if <path> was relative and
  1003. didnt start with a ./ or ../ Thanks to James Kanze.
  1004. - make the q mapping work with secondary (:e <dir> style) trees,
  1005. thanks to jamessan
  1006. - fix a bunch of small bugs with secondary trees
  1007. More insane refactoring.
  1008. 3.0.0
  1009. - hijack netrw so that doing an :edit <directory> will put a NERD tree in
  1010. the window rather than a netrw browser. See :help 'NERDTreeHijackNetrw'
  1011. - allow sharing of trees across tabs, see :help :NERDTreeMirror
  1012. - remove "top" and "bottom" as valid settings for NERDTreeWinPos
  1013. - change the '<tab>' mapping to 'i'
  1014. - change the 'H' mapping to 'I'
  1015. - lots of refactoring
  1016. ==============================================================================
  1017. 7. Credits *NERDTreeCredits*
  1018. Thanks to the following people for testing, bug reports, ideas etc. Without
  1019. you I probably would have got bored of the hacking the NERD tree and
  1020. just downloaded pr0n instead.
  1021. Tim Carey-Smith (halorgium)
  1022. Vigil
  1023. Nick Brettell
  1024. Thomas Scott Urban
  1025. Terrance Cohen
  1026. Yegappan Lakshmanan
  1027. Jason Mills
  1028. Michael Geddes (frogonwheels)
  1029. Yu Jun
  1030. Michael Madsen
  1031. AOYAMA Shotaro
  1032. Zhang Weiwu
  1033. Niels Aan de Brugh
  1034. Olivier Yiptong
  1035. Zhang Shuhan
  1036. Cory Echols
  1037. Piotr Czachur
  1038. Yuan Jiang
  1039. Matan Nassau
  1040. Maxim Kim
  1041. Charlton Wang
  1042. Matt Wozniski (godlygeek)
  1043. knekk
  1044. Sean Chou
  1045. Ryan Penn
  1046. Simon Peter Nicholls
  1047. Michael Foobar
  1048. Tomasz Chomiuk
  1049. Denis Pokataev
  1050. Tim Pope (tpope)
  1051. James Kanze
  1052. James Vega (jamessan)
  1053. Frederic Chanal (nach)
  1054. Alf Mikula
  1055. Lucas S. Buchala
  1056. Curtis Harvey
  1057. Guillaume Duranceau
  1058. Richard Hart (hates)
  1059. Doug McInnes
  1060. Stefan Ritter
  1061. Rémi Prévost
  1062. Victor Gonzalez
  1063. Stephan Baumeister
  1064. Ricky
  1065. jfilip1024
  1066. Chris Chambers
  1067. Vitaly Bogdanov
  1068. Patrick O'Loughlin (paddyoloughlin)
  1069. Cam Thompson (camthompson)
  1070. Marcin Kulik (sickill)
  1071. Steve DeWald (sdewald)
  1072. Ivan Necas (iNecas)
  1073. George Ang (gnap)
  1074. Evan Coury (EvanDotPro)
  1075. Andrew Radev (AndrewRadev)
  1076. Matt Gauger (mathias)
  1077. Scott Stevenson (scottstvnsn)
  1078. Anderson Freitas (andersonfreitas)
  1079. Kamil K. Lemański (kml)
  1080. Yehuda Katz (wycats)
  1081. Min-Young Wu (minyoung)
  1082. Benjamin Geiger (benjamingeiger)
  1083. ==============================================================================
  1084. 8. License *NERDTreeLicense*
  1085. The NERD tree is released under the wtfpl.
  1086. See http://sam.zoy.org/wtfpl/COPYING.