Skip to content

Creates an executable script file in the current directory

License

Notifications You must be signed in to change notification settings

nicanordlc/nerdtree-doscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

nerdtree-doscript

Creates an executable script file in the current directory

asciicast

There are two ways to achieve this goal.

By using 👇

  • NERDTreeMenu
  • NERDTreeKeyMap

Installation

With vim-plug:

Plug 'cabaalexander/nerdtree-doscript'

NERDTreeMenu

This adds a new item (do a script (h)ere) to the menu.

Example

NERDTree Menu. Use j/k/enter . or the shortcuts indicated
=========================================================
  (a)dd a childnode
  (m)ove the current node
  (d)elete the current node
  (c)opy the current node
  (l)ist the current node
> do a script (h)ere

NERDTreeKeyMap

This is the mapping added ds, for creating a script with a few key stokes. Below there is an example showing you your custom mappings (Press (?) when nerdtree is open)

Example

" ----------------------------
" Custom mappings
" [c: Jump to prev git hunk
" ]c: Jump to next git hunk
" ds: Create an executable script <

About

Creates an executable script file in the current directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published