mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-26 10:14:20 +08:00
9843fd3686
This commit adds a `NERDTreeCreatePrefix` setting that can be used to prefix the `:edit` command that is used to create the NERDTree tree window. Defaults to "silent", meaning that out of the box the window will be created with "silent edit". Users may wish to configure this to produce other effects. For example, `NERDTreeCreatePrefix` can be set to "silent keepalt keepjumps" in order to make NERDTree create its window with "silent keepalt keepjumps edit". This can be used to create an effect analogous to the `g:netrw_altfile` setting in netrw. An example of why you might want to do this is described here: https://github.com/tpope/vim-vinegar/issues/25 I'm not using vim-vinegar myself, but I am using something like it here: https://github.com/wincent/wincent/blob/3efaa8fa50895/roles/dotfiles/files/.vim/plugin/mappings.vim#L60 And having `NERDTreeCreatePrefix` enables me to map "-" to show the current file in context, and `^-6` to jump back to it. |
||
---|---|---|
.. | ||
NERD_tree.txt |