All Projects → PhilRunninger → nerdtree-visual-selection

PhilRunninger / nerdtree-visual-selection

Licence: MIT license
Defines commands that will work on files inside a Visual selection

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to nerdtree-visual-selection

Nerdtree Git Plugin
A plugin of NERDTree showing git status
Stars: ✭ 1,945 (+3952.08%)
Mutual labels:  vim-plugin, nerdtree
YankAssassin.vim
Don't let the cursor move while Yanking in Vim/Neovim
Stars: ✭ 50 (+4.17%)
Mutual labels:  vim-plugin
cake.vim
Utility for CakePHP developers.
Stars: ✭ 35 (-27.08%)
Mutual labels:  vim-plugin
move-less
vim plugin for faster navigation without moving the cursor position (look up/down/middle; scroll up/down/both, fold two distance places permanent together)
Stars: ✭ 36 (-25%)
Mutual labels:  vim-plugin
minimal gdb
🐛 Lightweight vim -> gdb broker which uses .gdbinit gdb config file to export breakpoints
Stars: ✭ 16 (-66.67%)
Mutual labels:  vim-plugin
gh.vim
Vim/Neovim plugin for GitHub
Stars: ✭ 149 (+210.42%)
Mutual labels:  vim-plugin
cmp-rg
ripgrep source for nvim-cmp
Stars: ✭ 165 (+243.75%)
Mutual labels:  vim-plugin
vim-bettergrep
A better way to grep in vim.
Stars: ✭ 15 (-68.75%)
Mutual labels:  vim-plugin
vim-jqplay
Run jq interactively in Vim
Stars: ✭ 56 (+16.67%)
Mutual labels:  vim-plugin
nvim-toggle-terminal
NeoVim plugin that toggles a terminal buffer in the current window maintaining the same shell instance
Stars: ✭ 54 (+12.5%)
Mutual labels:  vim-plugin
vimwasm-try-plugin
Try Vim plugin on your browser without installing it using vim.wasm!
Stars: ✭ 21 (-56.25%)
Mutual labels:  vim-plugin
easybuffer.vim
easybuffer.vim - vim plugin to quickly switch between buffers
Stars: ✭ 50 (+4.17%)
Mutual labels:  vim-plugin
vim-backscratch
Small scratches for Vim, feels nice
Stars: ✭ 20 (-58.33%)
Mutual labels:  vim-plugin
vim-iawriter
iAwriter's Focus mode for vim
Stars: ✭ 23 (-52.08%)
Mutual labels:  vim-plugin
vim-inccomplete
Vim plugin for #include directive completion.
Stars: ✭ 14 (-70.83%)
Mutual labels:  vim-plugin
vim-jukit
Jupyter-Notebook inspired Neovim/Vim Plugin
Stars: ✭ 55 (+14.58%)
Mutual labels:  vim-plugin
vim-syntaxMarkerFold
Markers while using syntax fold method
Stars: ✭ 16 (-66.67%)
Mutual labels:  vim-plugin
gentoo-syntax
[MIRROR] Gentoo Ebuild, Eclass, GLEP, ChangeLog and Portage Files syntax highlighting, filetype and indent settings for Vim
Stars: ✭ 22 (-54.17%)
Mutual labels:  vim-plugin
stan-vim
A Vim plugin for the Stan probabilistic programming language.
Stars: ✭ 41 (-14.58%)
Mutual labels:  vim-plugin
VimConfig
Configuration files for Vi-IMproved.
Stars: ✭ 23 (-52.08%)
Mutual labels:  vim-plugin

nerdtree-visual-selection

This plugin requires NERDTree also to be installed. nerdtree-visual-selection defines key mappings that will work on nodes contained in a Visual selection in NERDTree.

Installation

Use your favorite plugin manager to install this plugin. vim-pathogen, Vundle.vim, vim-plug, neobundle.vim, and dein.vim are some of the more popular ones. A lengthy discussion of these and other managers can be found on vi.stackexchange.com.

If you have no favorite, or want to manage your plugins without 3rd-party dependencies, I recommend using Vim 8 packages, as described in Greg Hurrell's excellent Youtube video: Vim screencast #75: Plugin managers

Known Issue

There are two kinds of NERDTree:

  • TabTree - Opened with :NERDTree, :NERDTreeFocus, :NERDTreeFind, or :NERDTreeToggle
  • WindowTree - Opened with vim . or :e ., among others.

This plugin does not work with WindowTree type trees, because the first file opened by it causes the NERDTree to close, and the other files in the selection to fail to open. These commands are disabled, and an error message is printed, when trying to use them in the wrong type NERDTree.

Configuration

By default, all operations ask to be confirmed with a Yes/No/All/Cancel prompt. All is a Yes answer, while Cancel is a No, for the remainder of the selection. Confirmation for the different operations can be turned off by setting the following aptly-named variables to 0 in your .vimrc.

  • g:nerdtree_vis_confirm_open
  • g:nerdtree_vis_confirm_delete
  • g:nerdtree_vis_confirm_copy
  • g:nerdtree_vis_confirm_move

Mappings

Where applicable, those key mappings match up with NERDTree settings. If not defined in your .vimrc, their default values are used. The mappings are as follows:

NERDTree variable default Purpose
NERDTreeMapActivateNode o Open selected files.
NERDTreeMapOpenSplit i Open selected files in horizontal splits.
NERDTreeMapOpenVSplit s Open selected files in vertical splits.
NERDTreeMapOpenInTab t Open selected files in tabs.
n/a d Delete selected files from disk. If open in Vim, they remain open.
n/a m Move the selected files to another directory. If open in Vim, the buffer still points to its old location.
n/a c Copy selected files to another directory.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].